Touch method and device, electronic equipment and storage medium
By analyzing the touch point displacement ratio and differences of touch devices, and using multiple thresholds and algorithms to determine touch point identification, the problems of touch lag and connection issues in complex scenarios are solved, improving the accuracy of touch recognition and user experience.
Patent Information
- Application Number
- CN202410955171.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2026-01-16
AI Technical Summary
In complex touch scenarios, users often encounter unresponsive touch controls and inexplicable connection problems, which affect the user experience.
By analyzing the touch point displacement in the current frame and the previous three frames, the touch trajectory to which the touch point belongs is determined by the displacement ratio and displacement difference. Multiple thresholds and algorithms are used to determine the touch point identifier to ensure the accuracy of touch recognition.
It improves the accuracy of touch recognition, reduces touch lag and inexplicable connection problems, and enhances the user experience.
Smart Images

Figure CN121349320A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of touch scanning, in particular to a touch method, a touch device, an electronic device and a storage medium. BACKGROUND
[0002] With the rapid development and popularity of touch devices such as smart phones and tablets, the use scenarios of touch modules as the most important medium for human-computer interaction are also increasing. Therefore, the touch experience of touch devices becomes an important factor directly affecting the user experience, and how to improve the touch effect becomes an important starting point for device manufacturers to improve the user experience.
[0003] In the related art, when a user is in a complex scenario of frequent touch operation, such as playing games or drawing, and multiple touch points, serious problems such as touch not following the hand and appearing mysterious lines often occur, which greatly affects the user experience. SUMMARY
[0004] To overcome the problems in the related art, the present disclosure provides a touch method, a touch device, an electronic device and a storage medium.
[0005] The first aspect of the present disclosure provides a touch method, comprising:
[0006] According to the touch points collected in the current frame and the touch points collected in the previous three frames, determine a first displacement, a second displacement and a third displacement from front to back and continuously, wherein the touch points collected in the previous three frames belong to the same touch trajectory, and the displacement represents the displacement amount of the touch points in adjacent frames;
[0007] According to the first displacement, the second displacement and the third displacement, determine the touch trajectory to which the touch point collected in the current frame belongs.
[0008] Optionally, the determining the touch trajectory to which the touch point collected in the current frame belongs according to the first displacement, the second displacement and the third displacement comprises:
[0009] According to the first displacement ratio and the second displacement ratio, determine the touch trajectory to which the touch point collected in the current frame belongs, wherein the first displacement ratio represents the ratio of the second displacement to the first displacement, and the second displacement ratio represents the ratio of the third displacement to the second displacement.
[0010] Optionally, the determining the touch trajectory to which the touch point collected in the current frame belongs according to the first displacement ratio and the second displacement ratio comprises:
[0011] In response to the first displacement ratio being greater than a first threshold and the second displacement ratio being less than a second threshold, it is determined that the touch point captured in the current frame is not the same touch point identifier as the touch points captured in the previous three frames, wherein the first threshold is used to measure whether the first displacement ratio satisfies a preset trajectory update condition, and the second threshold is used to measure whether the second displacement ratio satisfies the preset trajectory update condition.
[0012] Optionally, a difference between the first threshold and the second threshold is greater than a third threshold, wherein the third threshold is used to make the difference between the first threshold and the second threshold satisfy a preset threshold configuration condition.
[0013] Optionally, the determining of the touch control trajectory to which the touch point captured in the current frame belongs according to the first displacement ratio and the second displacement ratio comprises:
[0014] The touch control trajectory to which the touch point captured in the current frame belongs is determined according to the first displacement ratio and the second displacement ratio.
[0015] Optionally, the determining of the touch control trajectory to which the touch point captured in the current frame belongs according to the first displacement ratio and the second displacement ratio comprises:
[0016] In response to the ratio of the first displacement ratio to the second displacement ratio being greater than a fourth threshold, it is determined that the touch point captured in the current frame is not the same touch point identifier as the touch points captured in the previous three frames, wherein the fourth threshold is used to measure whether the ratio of the first displacement ratio to the second displacement ratio satisfies a preset trajectory update condition.
[0017] Optionally, the determining of the touch control trajectory to which the touch point captured in the current frame belongs according to the first displacement ratio and the second displacement ratio comprises:
[0018] In response to the ratio of the first displacement ratio to the second displacement ratio not being greater than the fourth threshold, it is determined that the touch point captured in the current frame is the same touch point identifier as the touch points captured in the previous three frames.
[0019] Optionally, the determining of the touch control trajectory to which the touch point captured in the current frame belongs according to the first displacement ratio and the second displacement ratio comprises:
[0020] In response to a difference between the first displacement ratio and the second displacement ratio being greater than a fifth threshold, it is determined that the touch point captured in the current frame is not the same touch point identifier as the touch points captured in the previous three frames, wherein the fifth threshold is used to measure whether the difference between the first displacement ratio and the second displacement ratio satisfies a preset trajectory update condition.
[0021] Optionally, the determining of the touch control trajectory to which the touch point captured in the current frame belongs according to the first displacement ratio and the second displacement ratio comprises:
[0022] In response to the difference between the first displacement ratio and the second displacement ratio being not greater than the fifth threshold value, it is determined that the touch point captured in the current frame is the same touch point as the touch points captured in the previous three frames.
[0023] Optionally, the method further comprises:
[0024] In response to the second displacement ratio being greater than a sixth threshold value, it is determined that the touch point captured in the current frame is not the same touch point as the touch points captured in the previous three frames, wherein the sixth threshold value is used to measure whether the second displacement ratio satisfies a preset trajectory update condition.
[0025] Optionally, the method further comprises:
[0026] Based on an assignment algorithm, a corresponding relationship between each touch point captured in the current frame and the previous touch control trajectories is determined.
[0027] The first displacement, the second displacement and the third displacement are determined according to the touch point captured in the current frame and the touch points captured in the previous three frames, and the touch points captured in the previous three frames belong to the same touch control trajectory.
[0028] The first displacement, the second displacement and the third displacement are determined according to the touch point captured in the current frame and the corresponding touch points captured in the previous three frames.
[0029] The second aspect of the present disclosure provides a touch control device, and the device comprises:
[0030] A displacement determination module is configured to determine the first displacement, the second displacement and the third displacement according to the touch point captured in the current frame and the touch points captured in the previous three frames, wherein the touch points captured in the previous three frames belong to the same touch control trajectory, and the displacements represent the displacement amounts of the touch points in adjacent frames.
[0031] A touch point identification determination module is configured to determine the touch control trajectory to which the touch point captured in the current frame belongs according to the first displacement, the second displacement and the third displacement.
[0032] Optionally, the touch point identification determination module is configured to, when determining the touch control trajectory to which the touch point captured in the current frame belongs according to the first displacement, the second displacement and the third displacement, determine the touch control trajectory to which the touch point captured in the current frame belongs according to the first displacement ratio and the second displacement ratio.
[0033] The touch control trajectory to which the touch point captured in the current frame belongs is determined according to the first displacement ratio and the second displacement ratio, wherein the first displacement ratio represents the ratio of the second displacement to the first displacement, and the second displacement ratio represents the ratio of the third displacement to the second displacement.
[0034] Optionally, the contact identifier determination module is configured to, when determining the touch control track to which the contact captured in the current frame belongs according to the first displacement ratio and the second displacement ratio, be configured to:
[0035] in response to the first displacement ratio being greater than a first threshold value and the second displacement ratio being less than a second threshold value, determine that the contact captured in the current frame is not the same contact identifier as the contact captured in the previous three frames, wherein the first threshold value is used to measure whether the first displacement ratio satisfies a preset track update condition, and the second threshold value is used to measure whether the second displacement ratio satisfies a preset track update condition.
[0036] Optionally, a difference between the first threshold value and the second threshold value is greater than a third threshold value, wherein the third threshold value is used to make the difference between the first threshold value and the second threshold value satisfy a preset threshold value configuration condition.
[0037] Optionally, the contact identifier determination module is configured to, when determining the touch control track to which the contact captured in the current frame belongs according to the first displacement ratio and the second displacement ratio, be configured to:
[0038] in response to a ratio of the first displacement ratio to the second displacement ratio being greater than a fourth threshold value, determine that the contact captured in the current frame is not the same contact identifier as the contact captured in the previous three frames, wherein the fourth threshold value is used to measure whether the ratio of the first displacement ratio to the second displacement ratio satisfies a preset track update condition.
[0039] Optionally, the contact identifier determination module is configured to, when determining the touch control track to which the contact captured in the current frame belongs according to the first displacement ratio and the second displacement ratio, be configured to:
[0040] in response to the ratio of the first displacement ratio to the second displacement ratio not being greater than the fourth threshold value, determine that the contact captured in the current frame is the same contact identifier as the contact captured in the previous three frames.
[0041] Optionally, the contact identifier determination module is configured to, when determining the touch control track to which the contact captured in the current frame belongs according to the first displacement ratio and the second displacement ratio, be configured to:
[0042] in response to a difference between the first displacement ratio and the second displacement ratio being greater than a fifth threshold value, determine that the contact captured in the current frame is not the same contact identifier as the contact captured in the previous three frames, wherein the fifth threshold value is used to measure whether the difference between the first displacement ratio and the second displacement ratio satisfies a preset track update condition.
[0043] Optionally, the contact identifier determination module is configured to, when determining the touch control track to which the contact captured in the current frame belongs according to the first displacement ratio and the second displacement ratio, be configured to:
[0044] In response to the difference between the first displacement ratio and the second displacement ratio being not greater than the fifth threshold value, it is determined that the touch point collected in the current frame is the same touch point as the touch points collected in the previous three frames.
[0045] Optionally, the apparatus further comprises:
[0046] The displacement ratio determining module is configured to, in response to the second displacement ratio being greater than a sixth threshold value, determine that each touch point collected in the current frame is not the same touch point as the touch points collected in the previous three frames, wherein the sixth threshold value is used to measure whether the second displacement ratio satisfies a preset trajectory update condition.
[0047] Optionally, the apparatus further comprises:
[0048] The touch point assigning module is configured to determine, based on an assigning algorithm, a correspondence between each touch point collected in the current frame and the previous touch control trajectories.
[0049] The displacement determining module is configured to, when the first displacement, the second displacement and the third displacement are determined according to the touch point collected in the current frame and the touch points collected in the previous three frames, determine:
[0050] The displacement determining module is configured to, when the first displacement, the second displacement and the third displacement are determined according to the touch point collected in the current frame and the touch points collected in the previous three frames, determine:
[0051] The third aspect of the present disclosure provides a computer program product, comprising computer programs / instructions, which, when executed by a processor, implement the method of the first aspect.
[0052] The fourth aspect of the present disclosure provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the method of the first aspect when executing the program.
[0053] The fifth aspect of the present disclosure provides a computer-readable storage medium, which stores a computer program, and the program, when executed by a processor, implements the method of the first aspect.
[0054] The technical solution provided by the embodiments of the present disclosure can have the following beneficial effects:
[0055] In the embodiments of the present disclosure, first, the first displacement, the second displacement and the third displacement are determined according to the touch point collected in the current frame and the touch points collected in the previous three frames, and then the touch control trajectory to which the touch point collected in the current frame belongs is determined according to the above three displacements. Based on the above steps, the accuracy of touch control recognition is improved, thereby improving the user experience.
[0056] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF DRAWINGS
[0057] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and serve to explain the principles of the disclosure, in which, like reference numerals designate corresponding parts throughout the several views.
[0058] Figure 1 is a flow chart of a touch method according to some example embodiments.
[0059] Figure 2 is an application diagram of a touch method according to some example embodiments.
[0060] Figure 3 is a diagram of a touch track according to some example embodiments.
[0061] Figure 4 is a block diagram of a touch device according to some example embodiments.
[0062] Figure 5 is a hardware structure diagram of an electronic device according to some example embodiments. DETAILED DESCRIPTION
[0063] The example embodiments will be described in detail herein with reference to the attached drawings. In the following description, like reference numerals refer to like elements throughout the description. The following description is not intended to represent all embodiments in accordance with the present disclosure. Rather, they merely represent example embodiments in accordance with some aspects of the present disclosure as detailed in the appended claims.
[0064] With the rapid development and popularity of touch devices such as smart phones and tablets, the touch module as the most important medium for human-computer interaction is used in more and more scenarios. Therefore, the touch experience of the touch device becomes an important factor directly affecting the user experience, and how to improve the touch effect becomes an important starting point for device manufacturers to improve the user experience.
[0065] In the related art, when the user is in a complex scenario with frequent touch operations such as playing games and drawing, and multiple touch points, serious problems such as not following the hand, appearing mysterious lines (for example, in the case of lifting one finger and dropping another finger, the latter dropped finger will be connected with the former lifted finger, thus generating a large moving track, but this moving track actually does not exist) and the like often occur, which greatly affects the user experience.
[0066] Therefore, the present disclosure provides a touch method, a touch device, an electronic device and a storage medium. Next, the embodiments of the present disclosure are described in detail.
[0067] The first aspect of the present disclosure provides a touch method. Please refer to Figure 1 which can include steps S101-S102.
[0068] In step S101, according to the touch point collected in the current frame and the touch points collected in the previous three frames, first, second and third displacements from front to back and in succession are determined, wherein the touch points collected in the previous three frames belong to the same touch track, and the displacements represent the displacement amount of the touch points in adjacent frames.
[0069] In the touch device, the touch module usually samples and scans the touch point position on the touch module at a known frame rate, and determines the touch point information (such as the touch point position, in addition to which the touch force of the touch point can also be included) of each touch point in the current scanning frame. The concept of "frame" in S101 can include one or more scanning frames. In addition, it should be understood that the above-mentioned "three frames" concept is only a basis, that is, there are at least three frames of collected touch points in total; when there are more frames of collected touch points, it does not affect the implementation of the embodiments of the present disclosure, and the original technical effects.
[0070] In step S102, according to the first, second and third displacements, the touch track to which the touch point collected in the current frame belongs is determined.
[0071] Specifically, in order to realize continuous touch operations such as sliding operation and multi-finger pinch operation, the touch device usually assigns a touch point identifier (also referred to as touch point ID, touch ID, etc.) to each touch point, which represents the touch process to which the touch point belongs (the touch process is the process from falling to lifting of a trigger, which usually corresponds to a touch track, wherein the trigger can be a capacitive pen or a certain finger of a user, etc.).
[0072] For example, in a typical lateral (left-right) two-finger pinch operation, the touch device will collect two touch points in each of the frames, i.e. the two touch points exist continuously in the frames, and the two touch points actually present a continuous state that the left touch point gradually moves to the right and the right touch point gradually moves to the left, and the distance between the two touch points gradually decreases. In order for the touch device to recognize this continuous state, the touch device can assign a touch point identifier to the two touch points after collecting the two touch points, and then when a new touch point is collected in the next frame, the touch device determines the relationship between the new touch point and the previous touch points, i.e. whether each new touch point belongs to the same touch point identifier as any of the previous touch points; if so, it is considered that the new touch point and the any of the previous touch points are actually a continuous touch control process, i.e. it is considered that the new touch point is actually an embodiment of the any of the previous touch points in the next frame: the new touch point and the any of the previous touch points are touch points of the same trigger collected by the touch control module in a continuous (i.e. not leaving the touch control module) movement process. Based on this, the touch device can recognize the continuous touch control state of the above two touch points, and thus determine that the two touch points are actually completing a lateral two-finger pinch operation.
[0073] It can be seen that accurately assigning a touch point identifier to a touch point is an important prerequisite for accurately identifying a continuous touch control process, and assigning a touch point identifier requires determining whether a touch point collected in a current frame belongs to an existing touch control trajectory, if so, assigning the touch point identifier corresponding to the touch control trajectory to the touch point, otherwise, assigning a new touch point identifier to the touch point, which is a process of "determining the touch control trajectory to which a touch point belongs". For example, in the above example, among the two touch points collected in the frames, multiple left touch points should be assigned to the same touch point identifier, and multiple right touch points should be assigned to another same touch point identifier. Next, the touch device can determine the connection between the touch points (i.e. determine the complete touch control trajectory to which the touch points belong) according to the specific positions of the touch points in the frames and the touch point identifiers to which the touch points belong, so as to determine how the touch points move in the frames, and further infer the actual operation process of the user, such as the process of moving the same finger from the left to the right. However, the above process is often affected by many factors such as too many touch points (e.g. in special scenarios such as playing games), false touch, virtual press (from the user's perspective, i.e. sometimes a touch point corresponding to a finger is present and sometimes it is not), one finger lifting and the other finger falling, etc., and it is difficult to obtain high accuracy.
[0074] In an exemplary embodiment, the determining the touch track to which the touch point collected in the current frame belongs according to the first displacement, the second displacement and the third displacement comprises: determining the touch track to which the touch point collected in the current frame belongs according to a first displacement ratio and a second displacement ratio, wherein the first displacement ratio represents a ratio of the second displacement to the first displacement, and the second displacement ratio represents a ratio of the third displacement to the second displacement.
[0075] Referring to Figure 2 In time sequence, the touch point P1, the touch point P2, the touch point P3 and the touch point P4 are touch points collected by the touch module in F1 (the third frame before), F2 (the second frame before), F3 (the first frame before) and F4 (the current frame) respectively, and the time interval between the four frames is known as Δt. Among them, P1, P2 and P3 have been determined as the same touch point identifier, and P4 is the touch point collected in the current frame, so it is necessary to determine whether P4 belongs to the same touch point identifier as P1, P2 and P3. Then, the first displacement L1 from P1 to P2, the second displacement L2 from P2 to P3 and the third displacement L3 from P3 to P4 can be determined in step S101, and in step S102, the first displacement ratio The second displacement ratio Determine whether P4 belongs to the same touch point identifier as P1, P2 and P3.
[0076] In the actual operation process of the user, the case that one finger is lifted (or virtually pressed) and the other finger just falls down is an important reason for causing the mysterious connection line (i.e. the touch point corresponding to the other finger is incorrectly judged as the same touch control process as the touch point corresponding to the finger that is just lifted, thus causing an incorrect connection line), and further causing the touch point identifier allocation confusion and the touch control not following the hand problem. Since the fingers of a person must have a certain distance, and the fingers cannot suddenly have a large distance displacement (especially the first segment displacement after falling down), in a variety of special cases including the above case, the touch control device often collects the case that the speed suddenly becomes small in a displacement process with a relatively high acceleration or always maintaining a high speed (for example Figure 2 The case shown is a typical touch point posture that can occur when one finger is lifted and the other finger falls down); or collects the case that the speed suddenly increases in a displacement process with a relatively low acceleration or always maintaining a low speed.
[0077] Since the touch sampling frequency is known, the acceleration of the touch point in the touch process can be directly reflected by the ratio of two displacements, i.e., the above-mentioned various special cases can be perceived by judging the change between the ratios of two displacements. In the steps provided by the embodiments of the present disclosure, instead of considering only two displacements, the assignment scheme of the touch point identification is specifically determined according to two displacement ratios generated by three consecutive displacements, so that the above-mentioned embodiments can well adapt to and distinguish various special cases that may cause incorrect connection in actual application, thereby performing more accurate touch point identification assignment; even in complex scenarios such as playing games, drawing, and other frequent touch operations, it is not easy to cause touch not to follow the hand, and to cause mysterious connection problems, greatly improving the accuracy of touch recognition, thereby improving the user experience.
[0078] Further exemplarily, according to the first displacement, the second displacement, and the third displacement, the process of determining the touch trajectory to which the touch point collected in the current frame belongs can also be determined by determining an intermediate variable other than the first displacement ratio and the second displacement ratio. For example, the first intermediate variable can be the difference, average difference, standard deviation, covariance, and Pearson correlation coefficient between the first displacement and the second displacement, and the second intermediate variable can be the difference, average difference, standard deviation, covariance, and Pearson correlation coefficient obtained by calculating the second displacement and the third displacement in the same manner (of course, the first displacement, the second displacement, and the third displacement can also be calculated to obtain the above-mentioned mathematical quantities). The overall idea in the above-mentioned embodiments has been adapted to the above-mentioned objective principle, and the process of calculating and judging the first displacement, the second displacement, and the third displacement only needs to have a cooperation and adaptation relationship with each other, which does not affect the technical effects obtained based on the improved idea provided by the above-mentioned embodiments. Optionally, if one or more intermediate variables other than the first displacement ratio and the second displacement ratio are used to assist in performing step S102, these intermediate variables can be used to represent the speed change relationship between different displacements (for example, the speed change relationship in the first displacement to the second displacement, in the second displacement to the third displacement, and in the first displacement to the third displacement), thereby better adapting to the above-mentioned principle.
[0079] In addition, in the case where there are more than three touch points collected in the current frame, more than three displacements can also be determined according to these touch points in step S101, and then the touch trajectory of the touch point is comprehensively determined according to the determined displacements in S102, which is not limited by the present disclosure.
[0080] In some embodiments of the present disclosure, step S102 has a further exemplary implementation.
[0081] For example, the determining whether the touch point captured in the current frame and the touch points captured in the previous three frames are the same touch point identifier according to the first displacement ratio and the second displacement ratio can include: in response to the first displacement ratio being greater than a first threshold and the second displacement ratio being less than a second threshold, determining that the touch point captured in the current frame and the touch points captured in the previous three frames are not the same touch point identifier, wherein the first threshold is used to measure whether the first displacement ratio satisfies a preset trajectory update condition, and the second threshold is used to measure whether the second displacement ratio satisfies the preset trajectory update condition.
[0082] In other words, the specific manner of determining the touch point identifier assignment scheme according to the first displacement ratio and the second displacement ratio can be to compare the first displacement ratio and the second displacement ratio with the first threshold and the second threshold respectively, and the trajectory update condition, i.e., the condition under which the touch control ID switching should be performed (i.e., regarding the touch point as a new touch control trajectory instead of connecting the touch point to the touch control trajectory of the touch points captured in the previous three frames), can be determined according to the principles and typical scenarios described in the foregoing disclosure. Specifically, since the displacement ratio can actually represent the acceleration of the touch point when moving between three frames, when the first displacement ratio is greater than the first threshold and the second displacement ratio is less than the second threshold, it can be considered that if P1, P2, P3, and P4 are assigned the same touch point identifier, then the continuous touch control process actually occurs at a large acceleration followed by a small acceleration. According to the characteristic that speed and acceleration cannot change abruptly, it can be determined at this time that the touch point captured in the current frame and the touch points captured in the previous three frames are not the same touch point identifier, and a new touch point identifier is assigned to P4 (on the contrary, P1, P2, P3, and P4 can also be considered to have the same touch point identifier when the above condition is not met). When it is determined that P4 and P3 are not the same touch point identifier, the up event of the touch point identifier corresponding to P3 can be triggered (i.e., it is considered that the trigger of the movement trajectory of P1, P2, and P3 has left the touch control module), and the down event of the touch point identifier corresponding to P4 can be triggered (i.e., the trigger has started the touch control operation).
[0083] In the above judgment process, optionally, a difference between the first threshold value and the second threshold value can be greater than a third threshold value, wherein the third threshold value is used to make the difference between the first threshold value and the second threshold value satisfy a preset threshold value configuration condition (i.e. a condition that the threshold value should satisfy when the threshold value is configured, which can be determined according to the principles and typical scenarios presented in the disclosure) ; that is, the first threshold value is greater (even much greater) than the second threshold value, and under the condition that the above condition is satisfied, it can be further determined that if P1, P2, P3, P4 have the same contact identifier, the movement trajectory thereof is not reasonable, and at this time (in the current frame), P4 can be determined as another contact identifier, and P3 and P4 are not connected. Alternatively, the first threshold value can be greater than the second threshold value, and the second threshold value and the inverse of the first threshold value have a multiple relationship, that is, let Where C is a positive number (for example, a smaller positive integer such as 2 or 3 can be taken as C), so as to further improve the accuracy of touch recognition.
[0084] It should be understood that there are some ratio calculations in the disclosure, and in order to make the ratio calculation have mathematical meaning, a constant can be added to the denominator (or numerator and denominator) when the ratio calculation is performed to avoid it being 0 (the threshold value can also be adaptively adjusted) ; Alternatively, step S102 can be executed when L1 and L2 are greater than 0 or other threshold values. In addition, the method shown in the embodiments of the disclosure can also be executed when the Jitter (jitter) characteristics of the touch module are disabled and start to track the movement of the touch point. Specifically, because the user's finger can be jittered and the hardware scanning can have errors, a jitter range (Jitter) is usually set in the touch-related logic. When the movement of the touch point in the adjacent frames does not exceed the jitter range, it is defaulted that the touch point does not displace, that is, it is determined that the touch point positions in the two frames are the same and the displacement is 0. For example, the jitter range is 10 (in the disclosure, the same dimension data has the same unit, so the unit of the numerical value is ignored), and the actual coordinate positions of the user's finger in 5 frames (for example, one-dimensional coordinates) are 0, 8, 16, 24 and 32 respectively. The actual touch point can be 0, 0, 6, 24 and 32: 8 of the second frame is less than 10, so the touch point is still 0, and 16 exceeds 10, so it can be corrected based on the Jitter characteristics (16 is reduced by 10 to obtain 6). Next, the Jitter is disabled and the movement of the real coordinates of the touch point is tracked, that is, 24 is reported as 24 and 32 is reported as 32, until the displacement between several consecutive frames is less than another threshold value (for example, 3), and then the Jitter is started again.
[0085] For example, the determining whether the touch point captured in the current frame is the same touch point as the touch points captured in the three previous frames according to the first displacement ratio and the second displacement ratio can include: determining whether the touch point captured in the current frame is the same touch point as the touch points captured in the three previous frames according to a difference between the first displacement ratio and the second displacement ratio.
[0086] That is, the assignment scheme of the touch point identifier can be determined according to the difference between the first displacement ratio S1 and the second displacement ratio S2. The difference can be embodied by a ratio or a difference between S1 and S2. When the difference is large, it can be considered that the touch point captured in the current frame is not the same touch point as the touch points captured in the three previous frames; on the contrary, when the difference is small, it is considered that the change is reasonable, that is, there is no sudden change between the accelerations, and it can be considered that the touch point captured in the current frame is the same touch point as the touch points captured in the three previous frames.
[0087] Taking the ratio between S1 and S2 as an example, the determining whether the touch point captured in the current frame is the same touch point as the touch points captured in the three previous frames according to the difference between the first displacement ratio and the second displacement ratio can include: in response to the ratio of the first displacement ratio to the second displacement ratio being greater than the fourth threshold value, determining that the touch point captured in the current frame is not the same touch point as the touch points captured in the three previous frames. That is, under the condition that “the ratio of the first displacement ratio to the second displacement ratio is greater than the fourth threshold value”, it can be considered that the difference between the first displacement ratio and the second displacement ratio is large.
[0088] On the contrary, the determining whether the touch point captured in the current frame is the same touch point as the touch points captured in the three previous frames according to the difference between the first displacement ratio and the second displacement ratio can also include: in response to the ratio of the first displacement ratio to the second displacement ratio not being greater than the fourth threshold value, determining that the touch point captured in the current frame is the same touch point as the touch points captured in the three previous frames. That is, under the condition that “the ratio of the first displacement ratio to the second displacement ratio is not greater than the fourth threshold value”, it can be considered that the difference between the first displacement ratio and the second displacement ratio is small.
[0089] Since the ratio between S1 and S2 can directly determine the change relationship between S1 and S2 without considering the specific value of S1 and S2, based on the above judgment condition, the embodiments provided by the present disclosure can adapt to a wide range of trigger movement speeds, and further adapt to a wide range of application scenarios, while continuing the foregoing idea, and achieving the consideration of application scenarios and algorithm accuracy.
[0090] Taking a difference between S1 and S2 as an example, the determining, according to a difference between the first displacement ratio and the second displacement ratio, whether the touch point captured in the current frame is the same touch point as the touch points captured in the previous three frames can include: in response to the difference between the first displacement ratio and the second displacement ratio being greater than a fifth threshold value, determining that the touch point captured in the current frame is not the same touch point as the touch points captured in the previous three frames, where the fifth threshold value is used to measure whether the difference between the first displacement ratio and the second displacement ratio satisfies a preset trajectory update condition. That is, under the condition that "the difference between the first displacement ratio and the second displacement ratio is greater than the fifth threshold value", it can be considered that the difference between the first displacement ratio and the second displacement ratio is large.
[0091] On the contrary, the determining, according to a difference between the first displacement ratio and the second displacement ratio, whether the touch point captured in the current frame is the same touch point as the touch points captured in the previous three frames can include: in response to the difference between the first displacement ratio and the second displacement ratio not being greater than the fifth threshold value, determining that the touch point captured in the current frame is the same touch point as the touch points captured in the previous three frames. That is, under the condition that "the difference between the first displacement ratio and the second displacement ratio is not greater than the fifth threshold value", it can be considered that the difference between the first displacement ratio and the second displacement ratio is small.
[0092] Since the application scenarios of touch devices such as mobile phones and tablets are relatively fixed, and the moving speed and moving habits of the fingers of most users can be determined in advance by device manufacturers, or are derived based on deep learning models, preset algorithms, and the like according to the usual use habits of the users, therefore, the touch point identification assignment scheme determined according to the difference between the first displacement ratio and the second displacement ratio can be more in line with the actual use process of the users, and the accuracy of the method is improved.
[0093] In addition to the conditions described above, in the present disclosure, the process of determining the touch point identification assignment strategy can also have other optional ways.
[0094] For example, the method can also include: in response to the second displacement ratio being greater than a sixth threshold value, determining that the touch point captured in the current frame is not the same touch point as the touch points captured in the previous three frames, where the sixth threshold value is used to measure whether the second displacement ratio satisfies a preset trajectory update condition.
[0095] That is, when the acceleration corresponding to the current frame, i.e. the value of S2, is too large, it can be directly determined that the connection is disconnected (i.e. not the same touch point identifier), and no further determination is performed. This is because, for a common touch scenario, if a very large acceleration suddenly appears during movement, it can be considered that such an acceleration process cannot be completed by a human finger under normal touch conditions. In this case, directly determining that the connection is disconnected can minimize the algorithm execution time required for determining the touch point identifier and reduce the execution cost of the method. Further, when the value of S2 is not too large, further determination of the other conditions provided in the foregoing embodiments can make the touch point identifier assignment algorithm have the characteristics of multi-level determination, taking into account the accuracy and time overhead of the algorithm.
[0096] For another example, the method can further include: in the case where the second displacement is greater than a seventh threshold value, determining that the touch point collected in the current frame and the touch points collected in the previous three frames are not the same touch point identifier in response to the second displacement ratio being less than an eighth threshold value, wherein the seventh threshold value is greater than or equal to zero. Since the case where the second displacement is large and the second displacement ratio is small can also reflect the characteristics of the foregoing exemplary special cases to some extent, switching the touch point ID in this case can also improve the accuracy of the method.
[0097] It should be understood that in the present disclosure, the values of the first threshold value, the second threshold value,..., and the eighth threshold value can be values obtained based on previous experiments or expected requirements, which are suitable for the principles of the above-mentioned touch method. In the above, the principles on which the above-mentioned embodiments achieve their technical effects, and the typical situations that can be encountered in the application process have been described in detail; then the exact values of the threshold values obtained according to these principles and exemplary typical situations can be determined according to experiments, and can also be freely set according to specific product requirements, and the present disclosure will not repeat them.
[0098] In the application process of the touch device, multi-finger touch is a common touch scenario, and for this scenario, the present disclosure further provides a pre-step of step S101. That is, before step S101, the method further includes: determining, based on the assignment algorithm, a correspondence between each touch point collected in the current frame and a plurality of previous touch trajectories. The determination of the first displacement, the second displacement, and the third displacement from front to back and in sequence according to the touch point collected in the current frame and the touch points collected in the previous three frames includes: determining the first displacement, the second displacement, and the third displacement from front to back and in sequence according to the touch point collected in the current frame and the corresponding touch points of the corresponding touch control trajectories in the previous three frames.
[0099] The assignment algorithm (also referred to as a task assignment algorithm) can refer to an algorithm for solving the assignment problem, for example, the Hungarian algorithm which can adapt to different numbers of contacts and touch trajectories and has good flexibility and low algorithm overhead, in addition, the minimum cost flow algorithm can also be used. In a new frame, the touch module can collect multiple contacts, but the touch device does not know whether the contacts have a continuous relationship with the contacts collected in the previous frame. At this time, the assignment algorithm can be used to assign the contacts collected in the current frame, that is, it is considered that a certain point on the display module is likely to be a continuation of multiple contacts in multiple previous frames which have been judged to be the same touch ID, so steps S101 to S102 are executed to determine whether the prediction is correct. In other words, in step S101, there are a series of contacts with a continuous relationship, and all the contacts in the frames except the contacts in the current frame have been determined to be the same touch ID.
[0100] Please refer to Figure 3 In the figure, the solid circle represents a contact collected in the past multiple frames and having a touch ID; the hollow circle represents a contact collected in the current frame and not having a touch ID. P0 is a contact collected in the fourth frame (F0) before the current frame, P1 and P1' are contacts collected in the third frame (F1) before the current frame, P2 and P2' are contacts collected in the second frame (F2) before the current frame, P3 and P3' are contacts collected in the first frame (F3) before the current frame, and the current frame (F4) collects three contacts P4, P4' and P4''. P0, P1, P2 and P3 have the same touch ID and are a continuous touch process of the same trigger; P1', P2' and P3' have another touch ID and are a continuous touch process of another trigger.
[0101] After collecting the three contacts P4, P4' and P4'', the touch device can first determine that the contact corresponding to the touch trajectory 1 should be P4, that is, P4 is most likely to be a continuation of the touch trajectory 1; the contact corresponding to the touch trajectory 2 should be P4', that is, P4' is most likely to be a continuation of the touch trajectory 2; and P4'' should not be a continuation of any touch trajectory, so a new touch ID can be directly assigned to P4''. Next, steps S101 to S102 can be performed for the four contacts P1, P2, P3 and P4 to determine whether P4 should have the same touch ID as P1, P2 and P3; P1', P2', P3' and P4' are the same.
[0102] Corresponding to the embodiments of the foregoing method, the disclosure also provides embodiments of a device and a terminal to which the device is applied.
[0103] The second aspect of the present disclosure provides a touch device, please refer to Figure 4 , the device comprises:
[0104] The displacement determination module 401 is configured to determine, according to the touch point collected in the current frame and the touch points collected in the previous three frames, a first displacement, a second displacement and a third displacement from front to back and continuously, wherein the touch points collected in the previous three frames belong to the same touch track, and the displacements represent the displacement amount of the touch points in adjacent frames.
[0105] The touch point identification determination module 402 is configured to determine, according to the first displacement, the second displacement and the third displacement, the touch track to which the touch point collected in the current frame belongs.
[0106] Optionally, the touch point identification determination module is configured to, when determining, according to the first displacement, the second displacement and the third displacement, the touch track to which the touch point collected in the current frame belongs, be configured to:
[0107] Determine, according to the first displacement ratio and the second displacement ratio, the touch track to which the touch point collected in the current frame belongs, wherein the first displacement ratio represents the ratio of the second displacement to the first displacement, and the second displacement ratio represents the ratio of the third displacement to the second displacement.
[0108] Optionally, the touch point identification determination module is configured to, when determining, according to the first displacement ratio and the second displacement ratio, the touch track to which the touch point collected in the current frame belongs, be configured to:
[0109] In response to the first displacement ratio being greater than a first threshold value and the second displacement ratio being less than a second threshold value, determine that the touch point collected in the current frame and the touch points collected in the previous three frames are not the same touch point identification, wherein the first threshold value is used to measure whether the first displacement ratio satisfies a preset track update condition, and the second threshold value is used to measure whether the second displacement ratio satisfies a preset track update condition.
[0110] Optionally, the difference between the first threshold value and the second threshold value is greater than a third threshold value, wherein the third threshold value is used to make the difference between the first threshold value and the second threshold value satisfy a preset threshold value configuration condition.
[0111] Optionally, the touch point identification determination module is configured to, when determining, according to the first displacement ratio and the second displacement ratio, the touch track to which the touch point collected in the current frame belongs, be configured to:
[0112] in response to the ratio of the first displacement ratio and the second displacement ratio being greater than a fourth threshold value, determining that the touch point captured in the current frame is not the same touch point identifier as the touch points captured in the previous three frames, wherein the fourth threshold value is used to measure whether the ratio of the first displacement ratio and the second displacement ratio satisfies a preset trajectory update condition.
[0113] Optionally, the touch point identifier determination module is configured to, when determining the touch control trajectory to which the touch point captured in the current frame belongs according to the first displacement ratio and the second displacement ratio, be configured to:
[0114] in response to the ratio of the first displacement ratio and the second displacement ratio being not greater than the fourth threshold value, determining that the touch point captured in the current frame is the same touch point identifier as the touch points captured in the previous three frames.
[0115] Optionally, the touch point identifier determination module is configured to, when determining the touch control trajectory to which the touch point captured in the current frame belongs according to the first displacement ratio and the second displacement ratio, be configured to:
[0116] in response to the difference between the first displacement ratio and the second displacement ratio being greater than a fifth threshold value, determining that the touch point captured in the current frame is not the same touch point identifier as the touch points captured in the previous three frames, wherein the fifth threshold value is used to measure whether the difference between the first displacement ratio and the second displacement ratio satisfies a preset trajectory update condition.
[0117] Optionally, the touch point identifier determination module is configured to, when determining the touch control trajectory to which the touch point captured in the current frame belongs according to the first displacement ratio and the second displacement ratio, be configured to:
[0118] in response to the difference between the first displacement ratio and the second displacement ratio being not greater than the fifth threshold value, determining that the touch point captured in the current frame is the same touch point identifier as the touch points captured in the previous three frames.
[0119] Optionally, the apparatus further comprises:
[0120] a displacement ratio determination module configured to, in response to the second displacement ratio being greater than a sixth threshold value, determine that the touch point captured in the current frame is not the same touch point identifier as the touch points captured in the previous three frames, wherein the sixth threshold value is used to measure whether the second displacement ratio satisfies a preset trajectory update condition.
[0121] Optionally, the apparatus further comprises:
[0122] a touch point assignment module configured to determine, based on an assignment algorithm, a corresponding relationship between each of the plurality of touch points captured in the current frame and the plurality of touch control trajectories before the current frame;
[0123] The displacement determination module is configured to determine, according to the touch point of the current frame and the touch points of the previous three frames, a first displacement, a second displacement and a third displacement in sequence from front to back, for:
[0124] The displacement determination module is configured to determine, according to the touch point of the current frame and the touch points of the previous three frames, a first displacement, a second displacement and a third displacement in sequence from front to back, for:
[0125] The functions and effects of the modules in the above device are specifically described in the implementation process of the corresponding steps in the above method, and will not be repeated here.
[0126] The third aspect of the present disclosure provides a computer program product, comprising computer programs / instructions, which, when executed by a processor, implement the method of the first aspect.
[0127] For the device embodiment and the computer program product embodiment, since they basically correspond to the method embodiment, the relevant parts are described in the part of the method embodiment. In addition, the above-described device embodiment is only illustrative, and the modules described as separate components can or can not be physically separated, and the components displayed as modules can or can not be physical modules, i.e., they can be located in one place or distributed on multiple network modules. Some or all of the modules can be selected to achieve the purpose of the present disclosure according to actual needs. Those skilled in the art can understand and implement it without creative labor.
[0128] In the fourth aspect, the embodiment of the touch device provided by the present disclosure can be applied to an electronic device. Please refer to Figure 5 which shows an exemplary hardware schematic diagram of an electronic device. For example, the device 500 can 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, a vehicle-mounted terminal, a wearable device (such as a smart watch, a smart bracelet, etc.), etc.
[0129] The device 500 can include one or more of the following components: a processing component 501, a memory 502, a power supply 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.
[0130] The processing component 501 generally controls the overall operations of the device 500, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 501 can include one or more processors 509 to execute instructions and to complete all or part of steps of the above-described methods. In addition, the processing component 501 can include one or more modules to facilitate the interaction between the processing component 501 and other components. For example, the processing component 501 can include a multimedia module to facilitate the interaction between the multimedia component 504 and the processing component 501.
[0131] The memory 502 is configured to store various types of data to support operations of the device 500. Examples of these data include instructions for any application or methods operating on the device 500, contact data, phonebook data, messages, pictures, videos, and so on. The memory 502 can be implemented by any type of volatile or non-volatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk, or optical disk.
[0132] The power component 503 provides power to the various components of the device 500. The power component 503 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.
[0133] The multimedia component 504 includes a screen providing an output interface between the device 500 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes the touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, slide, and gesture on the touch panel. The touch sensors can not only sense a boundary of a touch or slide action, but also detect duration and pressure related to the touch or slide action. In some embodiments, the multimedia component 504 includes a front camera and / or a rear camera. The front and / or rear camera can receive external multimedia data when the device 500 is in an operating mode, such as a shooting mode or a video mode. Each of the front and rear camera can be a fixed optical lens system or have a focal length and optical zoom capability.
[0134] The audio component 505 is configured to output and / or input audio signals. For example, the audio component 505 includes a microphone (MIC) that is configured to receive an external audio signal when the device 500 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 502 or transmitted via the communication component 508. In some embodiments, the audio component 505 also includes a speaker for outputting an audio signal.
[0135] The I / O interface 506 provides an interface between the processing component 501 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.
[0136] The sensor component 507 includes one or more sensors for providing status assessments for various aspects of the device 500. For example, the sensor component 507 can detect an open / closed position of the device 500, relative positioning of components, such as a display and a keypad of the device 500, a change of position of the device 500 or a component of the device 500, presence or absence of user contact with the device 500, orientation or acceleration / deceleration / g-force and temperature of the device 500. The sensor component 507 can also include proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 507 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 507 can also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0137] The communication component 508 is configured to facilitate wired or wireless communication between the device 500 and another device. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, 4G or 5G, or a combination thereof. In an example embodiment, the communication component 508 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an example 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) techniques, infrared data association (IrDA) techniques, ultra-wideband (UWB) techniques, Bluetooth (BT) techniques, and other techniques.
[0138] In exemplary embodiments, the device 500 can 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, micro-controllers, microprocessors or other electronic elements for performing the touch method of the electronic device described above.
[0139] In a fifth aspect, the present disclosure also provides, in exemplary embodiments, a non-transitory computer readable storage medium including instructions, such as the memory 502 including instructions, which can be executed by the processor 509 of the device 500 to complete the touch method of the electronic device described above. 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 and an optical data storage device, etc.
[0140] The specific embodiments of the present disclosure have been described. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous.
[0141] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the application disclosed here. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure following, in general, the principles of the present disclosure and including such departures from the present disclosure that come within known or customary practice in the art to which the present disclosure pertains. The specification and examples are to be regarded as illustrative only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0142] It should be understood that the present disclosure is not limited to the precise structures described and shown in the drawings, and that changes can be made to the embodiments described and shown without departing from the scope of the present disclosure. The scope of the present disclosure is limited only by the claims appended hereto.
[0143] The above-described embodiments are merely possible examples of the present disclosure, and do not limit the present disclosure. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.
Claims
1. A touch method, characterized in that, The method comprises: determining, according to the touch point collected in the current frame and the touch points collected in the previous three frames, a first displacement, a second displacement and a third displacement from front to back and continuously, wherein the touch points collected in the previous three frames belong to the same touch track, and the displacements represent the displacement amounts of the touch points in adjacent frames; determining, according to the first displacement, the second displacement and the third displacement, the touch track to which the touch point collected in the current frame belongs. 2.The touch method according to claim 1, characterized in that, The determining, according to the first displacement, the second displacement and the third displacement, the touch track to which the touch point collected in the current frame belongs, comprises: determining, according to a first displacement ratio and a second displacement ratio, the touch track to which the touch point collected in the current frame belongs, wherein the first displacement ratio represents the ratio of the second displacement to the first displacement, and the second displacement ratio represents the ratio of the third displacement to the second displacement. 3.The touch method according to claim 2, characterized in that, The determining, according to the first displacement ratio and the second displacement ratio, the touch track to which the touch point collected in the current frame belongs, comprises: in response to the first displacement ratio being greater than a first threshold value and the second displacement ratio being less than a second threshold value, determining that the touch point collected in the current frame is not the same touch point identifier as the touch points collected in the previous three frames, wherein the first threshold value is used to measure whether the first displacement ratio satisfies a preset track updating condition, and the second threshold value is used to measure whether the second displacement ratio satisfies the preset track updating condition. 4.The touch method according to claim 3, characterized in that, The difference between the first threshold value and the second threshold value is greater than a third threshold value, wherein the third threshold value is used to make the difference between the first threshold value and the second threshold value satisfy a preset threshold value configuration condition. 5.The touch method according to claim 2, characterized in that, The determining, according to the first displacement ratio and the second displacement ratio, the touch track to which the touch point collected in the current frame belongs, comprises: in response to the ratio of the first displacement ratio to the second displacement ratio being greater than a fourth threshold value, determining that the touch point collected in the current frame is not the same touch point identifier as the touch points collected in the previous three frames, wherein the fourth threshold value is used to measure whether the ratio of the first displacement ratio to the second displacement ratio satisfies a preset track updating condition. 6.The touch method according to claim 5, characterized in that, The determining, according to the first displacement ratio and the second displacement ratio, the touch track to which the touch point collected in the current frame belongs, comprises: in response to the ratio of the first displacement ratio to the second displacement ratio not being greater than the fourth threshold value, determining that the touch point collected in the current frame is the same touch point identifier as the touch points collected in the previous three frames. 7.The touch method according to claim 2, characterized in that, The determining, according to the first displacement ratio and the second displacement ratio, the touch track to which the touch point collected in the current frame belongs, comprises: in response to the difference between the first displacement ratio and the second displacement ratio being greater than a fifth threshold value, determining that the touch point collected in the current frame is not the same touch point identifier as the touch points collected in the previous three frames, wherein the fifth threshold value is used to measure whether the difference between the first displacement ratio and the second displacement ratio satisfies a preset track updating condition. 8.The touch method according to claim 7, characterized in that, The determining, according to the first displacement ratio and the second displacement ratio, the touch track to which the touch point collected in the current frame belongs, comprises: in response to the difference between the first displacement ratio and the second displacement ratio not being greater than the fifth threshold value, determining that the touch point collected in the current frame is the same touch point identifier as the touch points collected in the previous three frames. 9.The touch method according to claim 2, characterized in that, The method further comprises: In response to the second displacement ratio being greater than a sixth threshold value, it is determined that the touch point collected in the current frame is not the same touch point identifier as the touch points collected in the previous three frames, wherein the sixth threshold value is used to measure whether the second displacement ratio satisfies a preset trajectory update condition. 10.The touch method according to claim 1, characterized in that, The method further comprises: determining, based on an assignment algorithm, a correspondence between each touch point collected in the current frame and the previous touch control trajectories; determining, based on the touch point collected in the current frame and the touch points collected in the previous three frames, a first displacement, a second displacement and a third displacement in sequence and continuity, comprises: determining, based on the touch point collected in the current frame and the corresponding touch points of the corresponding touch control trajectories in the previous three frames, a first displacement, a second displacement and a third displacement in sequence and continuity.
11. A touch device, comprising: The apparatus comprises: a displacement determination module configured to determine, based on the touch point collected in the current frame and the touch points collected in the previous three frames, a first displacement, a second displacement and a third displacement in sequence and continuity, wherein the touch points collected in the previous three frames belong to the same touch control trajectory, and the displacements represent the displacement amounts of the touch points in adjacent frames; a touch point identifier determination module configured to determine, based on the first displacement ratio and the second displacement ratio, the touch control trajectory to which the touch point collected in the current frame belongs.
12. A computer program product comprising computer programs / instructions, characterized in that, The computer program / instructions, when executed by a processor, implement the method of any one of claims 1 to 10.
13. An electronic device, comprising: A computer program product comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 10 when executing the program.
14. A computer readable storage medium having stored thereon a computer program, characterized in that, The program, when executed by a processor, implements the method of any one of claims 1 to 10. The program, when executed by a processor, implements the method of any one of claims 1 to 10.