CN117827034B - Touch screen coordinate filtering method based on motion direction decomposition - Google Patents
Touch screen coordinate filtering method based on motion direction decomposition Download PDFInfo
- Publication number
- CN117827034B CN117827034B CN202410239997.XA CN202410239997A CN117827034B CN 117827034 B CN117827034 B CN 117827034B CN 202410239997 A CN202410239997 A CN 202410239997A CN 117827034 B CN117827034 B CN 117827034B
- Authority
- CN
- China
- Prior art keywords
- filtering
- motion
- coordinate
- touch screen
- original
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/0416—Control or interface arrangements specially adapted for digitisers
- G06F3/0418—Control or interface arrangements specially adapted for digitisers for error correction or compensation, e.g. based on parallax, calibration or alignment
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/041—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
- G06F3/044—Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means by capacitive means
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
Abstract
The invention discloses a touch screen coordinate filtering method based on motion direction decomposition, which comprises the following steps of S1, calculating a weighted average value of a touch coordinate point moving distance and a historical moving distance of a current frame, and taking the weighted average value as a reference for setting filtering intensity th; s2, decomposing a motion vector of a touch coordinate point of the current frame along a historical motion direction and a vertical direction of the motion vector to obtain two motion components and calculating respective original motion distances; s3, calculating the ratio of the original moving distance in the moving direction to the original moving distance in the vertical direction, and judging the current state according to the comparison of the ratio and the threshold value; and S4, setting the filtering strength th according to the current state, and calculating the coordinates of the touch point after filtering. The method and the device can solve the problem that the filtered coordinates are difficult to maintain good performance in both linearity and following performance when the original calculated coordinates of the capacitive touch screen shake.
Description
Technical Field
The invention relates to the technical field of touch control, in particular to a touch screen coordinate filtering method based on motion direction decomposition.
Background
With the development of technology, touch screens are widely used in various intelligent terminals, and more entertainment, learning and other applications also put higher and higher requirements on the performance of human-computer interaction of the touch screens. Among them, real-time performance, stability, and smoothness of touch trajectory of multi-finger touch coordinates are important aspects.
The touch screen calculates the touch coordinates by sampling the capacitance of different areas on the screen, and due to factors such as technical reasons, electromagnetic interference in the practical application environment and the like, the acquired capacitance value always has a certain error, so that the touch coordinates deviate, and jitter is shown. To keep the coordinate points stable, the calculated coordinates are typically filtered. For example, for processing several beats of data, the prior art generally performs weighted average processing by assigning a certain weight ratio, or performs filtering by using an algorithm such as bessel interpolation. However, these conventional filtering means only generate the same filtering strength for the interference component and the actual motion component, so that the following performance is often poor under the filtering configuration with better linearity, and the linearity is poor after the following performance is improved by adjusting the configuration, so that the linearity and the following performance are difficult to be compatible.
Therefore, it is desirable to provide a touch screen coordinate filtering method based on motion direction decomposition to solve the above problems.
Disclosure of Invention
The invention aims to provide a touch screen coordinate filtering method based on motion direction decomposition, which can solve the problem that the filtered coordinates are difficult to maintain good performance in both linearity and following performance when the original calculated coordinates of a capacitive touch screen shake.
In order to solve the technical problems, the invention provides a touch screen coordinate filtering method based on motion direction decomposition, which comprises the following steps:
s1, calculating a weighted average value of the moving distance of the touch coordinate point and the historical moving distance of the current frame, and taking the weighted average value as a reference for setting the filtering intensity th;
S2, decomposing the motion vector of the touch coordinate point of the current frame along the historical motion direction and the vertical direction of the motion vector to obtain two motion components and calculating the original motion distance of each motion component;
s3, calculating the ratio of the movement direction to the original movement distance in the vertical direction, and judging the current state according to the comparison of the ratio and a threshold value;
and S4, setting the filtering strength th according to the current state, and calculating the coordinates of the touch point after filtering.
Further, in step S1, the method specifically includes: (px 0, py 0) represents the current frame original coordinates, (x 1, y 1) represents the previous frame filtered coordinates, (Dx 0, dy 0) = (px 0-x1, py0-y 1), represents the current frame provided speed information, N, M represents the current frame and the history information respectively with different weighted proportion and N > M; the variables Dx and Dy are created, and the difference values of the x coordinate and the y coordinate between two frames are respectively stored to represent the movement speeds in two directions, wherein the formula is as follows:
Dx=(Dx×M+Dx0×(N-M))/N;
Dy=(Dy×M+Dy0×(N-M))/N。
further, the motion rate estimation value Dz is calculated according to the following formula and used as a reference for setting the filtering intensity th to be described later: dz=sqrt (dx×dx+dy×dy).
Furthermore, according to the calculation capability of the actual chip, if the evolution calculation takes too long, the following formula is adopted for calculation:
Dz=Max(abs(Dx),abs(Dy))+3×Min(abs(Dx),abs(Dy))/8。
Further, in step S2, the method specifically includes: coordinate decomposition is carried out on the original coordinates (px 0, py 0) of the touch point relative to the historical motion direction, wherein the historical motion direction is the connecting line direction from (x 2, y 2) to (x 1, y 1), and the decomposition is realized by solving the drop foot point (xt, yt) projected from (px 0, py 0) to the motion direction; the original coordinate movement vector (xt-x 1, yt-y 1) of the motion direction and the original coordinate movement vector (px 0-xt, py 0-yt) of the vertical direction are obtained after decomposition; where (x 1, y 1) and (x 2, y 2) filter coordinates for the previous two frames of touch points.
Further, the calculation process of the drop foot points (xt, yt) is as follows: first, variables kx, ky and kz are created for storing the following information:
kx=(x2-x1)×(x2-x1);
ky=(y2-y1)×(y2-y1);
kz=(y2-y1)×(x2-x1);
If kx=0, (xt, yt) = (px 0, py 0) is taken directly, otherwise calculated as follows:
xt=(ky×x1+kx×px0+kz×(py0-y1))/(kx+ky);
yt=y1+((y2-y1)×(xt-x1))/(x2-x1);
Where (px 0, py 0) represents the current frame original coordinates.
Further, in step S3, the method specifically includes: creating two variables dv and dh, respectively storing the moving distances of the two directions obtained after the motion decomposition in the step S2, and according to the following formula:
dh=sqrt((xt-x1)×(xt-x1)+(yt-y1)×(yt-y1));
dv=sqrt((px0-xt)×(px0-xt)+(py0-yt)×(py0-yt))。
further, in step S3, the method further includes: setting a proportion threshold Tr, and when dh/dv is smaller than Tr, considering that the vehicle is in a turning state currently, or else, the vehicle is in a linear or approximately linear movement state; the smaller the threshold Tr, the stronger the overall filtering process suppresses the lateral interference.
Further, in step S4, the method specifically includes: the filter strength th along the motion direction is determined according to the motion rate estimated value Dz calculated in the step S1, and the calculation formula is as follows: th=tmin+dz; wherein Tmin is the lower limit value of the filtering strength th which is set according to actual requirements; and an upper limit value Tmax of the filtering strength th is set, and if th > Tmax is found, th=tmax is forced.
Further, if step S3 determines that the vehicle is currently in a turning state, determining the filtering strength tv=th in the vertical direction, otherwise solving the following formula: tv=a×th, where the coefficient a <1 is used to enhance the filtering strength tv in the vertical direction.
Through the technical scheme, the invention has the following beneficial effects:
Calculating a weighted average value of the moving distance of the touch coordinate point of the current frame and the historical moving distance, and taking the weighted average value as a reference for setting the filtering intensity th; decomposing a motion vector of a touch coordinate point of the current frame along a historical motion direction and a vertical direction of the motion vector to obtain two motion components and calculating respective original motion distances; calculating the ratio of the original moving distance between the moving direction and the vertical direction, and judging the current state according to the comparison of the ratio and the threshold value; and setting the filtering strength th according to the current state, and calculating the coordinates of the filtered touch points. The method can solve the problem that the filtered coordinates are difficult to maintain good performance in both linearity and following performance when the original calculated coordinates of the capacitive touch screen shake.
Drawings
FIG. 1 is a flowchart of a touch screen coordinate filtering method based on motion direction decomposition according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a touch screen coordinate filtering method based on motion direction decomposition according to an embodiment of the invention;
FIG. 3 is a schematic diagram of basic 2-order Bessel interpolation filtering of a touch screen coordinate filtering method based on motion direction decomposition according to an embodiment of the present invention;
FIG. 4 is a schematic diagram showing the effect of increasing the filtering strength th of the coordinate y-axis direction compared with the x-axis direction of the touch screen coordinate filtering method based on motion direction decomposition according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating the decomposition of coordinate points along the moving direction and the vertical direction of a touch screen coordinate filtering method based on the decomposition of the moving direction according to an embodiment of the present invention;
fig. 6 is a schematic diagram of motion decomposition during a curved track of a touch screen coordinate filtering method based on motion direction decomposition according to an embodiment of the present invention.
Detailed Description
A touch screen coordinate filtering method based on motion direction decomposition of the present invention will be described in more detail below with reference to the accompanying drawings, in which preferred embodiments of the present invention are shown, it being understood that one skilled in the art can modify the invention described herein while still achieving the advantageous effects of the invention. Accordingly, the following description is to be construed as broadly known to those skilled in the art and not as limiting the invention.
The invention is more particularly described by way of example in the following paragraphs with reference to the drawings. The advantages and features of the present invention will become more apparent from the following description. It should be noted that the drawings are in a very simplified form and are all to a non-precise scale, merely for convenience and clarity in aiding in the description of embodiments of the invention.
As shown in fig. 1-2, an embodiment of the present invention provides a touch screen coordinate filtering method based on motion direction decomposition, including the following steps:
s1, calculating a weighted average value of the moving distance of the touch coordinate point and the historical moving distance of the current frame, and taking the weighted average value as a reference for setting the filtering intensity th;
S2, decomposing the motion vector of the touch coordinate point of the current frame along the historical motion direction and the vertical direction of the motion vector to obtain two motion components and calculating the original motion distance of each motion component;
s3, calculating the ratio of the movement direction to the original movement distance in the vertical direction, and judging the current state according to the comparison of the ratio and a threshold value;
and S4, setting the filtering strength th according to the current state, and calculating the coordinates of the touch point after filtering.
In an embodiment, the filtering scheme of the present embodiment is characterized in that motion decomposition and stronger filtering is adopted on the vertical motion direction relative to the motion direction to suppress interference, and the filtering scheme can be combined with various conventional filtering schemes, and taking 2-order bessel interpolation filtering as an example below: the 2-order Bessel interpolation filtering depends on the original coordinates (px 0, py 0) of the touch point of the current frame and the filtered coordinates (x 1, y 1) and (x 2, y 2) of the touch point of the last two frames, wherein the calculation formula of the filtered coordinates of the current frame is as follows :x0=((TM-t)×(TM-t)×x2+2×t×(TM-t)×x1+t×t×px0)/(TM×TM);y0=((TM-t)×(TM-t)×y2+2×t×(TM-t)×y1+t×t×py0)/(TM×TM).
The filtering effect is shown in fig. 3, where (px 0, py 0) is the original coordinates of the touch point, (x 1, y 1), (x 2, y 2), and (x 3, y 3) are the previous three frames of the coordinates of the touch point, and (x 0, y 0) is the current frame of the coordinates of the touch point. In addition, in order to clearly express the movement trend of the history trace, (x 3, y 3) is added in fig. 3 to 6, and the calculation mode of (x 3, y 3) can be calculated according to the calculation modes of (x 1, y 1), (x 2, y 2). Where (xd, yd) is the ideal coordinate of the touch point of the current frame, the larger the variable t is, the smaller the filtering strength th is, TM is the maximum value possible to be taken by t, and t=tm represents the condition of no filtering. If the value of t is too large, the filtering following performance is good but the interference suppression capability is poor, whereas if the value of t is too large, the interference can be better suppressed but a larger hysteresis is generated.
As shown in fig. 4, if the axis x of the historical motion direction coordinate is parallel, the deviation caused by interference plays a main role in the y-axis direction, so that the following performance can be ensured by adopting weaker filtering strength th in the x-axis direction, and meanwhile, stronger filtering is adopted in the y-axis direction to better inhibit interference, so that a better filtering result is obtained. In other cases of the historical movement direction, as shown in fig. 5, coordinate decomposition may be performed on (px 0, py 0) along the movement direction to find the foot drop (xt, yt) in the movement direction. Thus, an original coordinate moving vector Rh in the moving direction and an original coordinate moving vector Rv in the vertical direction are obtained, and then in the linear or approximate linear drawing process, the following performance is ensured by adopting weaker filtering strength th for Rh, and meanwhile stronger filtering is adopted for Rv so as to better inhibit interference.
More specifically, in step S1, specifically, the method includes: (px 0, py 0) represents the current frame original coordinates, (x 1, y 1) represents the previous frame filtered coordinates, (Dx 0, dy 0) = (px 0-x1, py0-y 1), represents the current frame provided speed information, N, M represents the current frame and the history information respectively with different weighted proportion and N > M; two variables Dx and Dy are created, and the difference between the x coordinate and the y coordinate of the two frames is respectively saved to represent the motion speeds of the two directions (the speed is not only dependent on the information of certain two frames, but the weighted accumulated value of multi-frame information represents the trend of the historical motion speed and the estimation of the current motion speed), and the formula is as follows: dx= (dx×m+dx0× (N-M))/N; dy= (dy×m+dy0× (N-M))/N. Wherein, the right side of the equal sign represents the weighting of the current Dx and the newly added information Dx0, and the left side of the equal sign is the updated Dx; the right side of the equal sign indicates the weighting of the current Dy and newly added information Dy0, and the left side of the equal sign is updated Dy.
The motion rate estimate Dz is calculated as a reference for the subsequent setting of the filter strength th according to the following formula: dz=sqrt (dx×dx+dy×dy).
Furthermore, according to the calculation capability of the actual chip, if the evolution calculation takes too long, the following formula is adopted for calculation: dz=max (abs (Dx), abs (Dy)) +3×min (abs (Dx), abs (Dy))/8. By calculating the weighted average of the moving distance of the touch coordinate point and the historical moving distance of the current frame, the proper reference filtering strength th can be determined, and the filtered touch coordinate point is ensured to have better following performance.
In step S2, by decomposing the movement of the coordinate point in the historical movement direction and the vertical direction, it is possible to suppress the disturbance maintaining linearity by enhancing the vertical direction filter strength th while not impairing the following performance in the movement direction. The method specifically comprises the following steps: coordinate decomposition is carried out on the original coordinates (px 0, py 0) of the touch point relative to the historical motion direction, wherein the historical motion direction is the connecting line direction from (x 2, y 2) to (x 1, y 1), and the decomposition is realized by solving the drop foot point (xt, yt) projected from (px 0, py 0) to the motion direction; the original coordinate movement vector (xt-x 1, yt-y 1) of the motion direction and the original coordinate movement vector (px 0-xt, py 0-yt) of the vertical direction are obtained after decomposition; where (x 1, y 1) and (x 2, y 2) filter coordinates for the previous two frames of touch points.
Wherein, the calculation process of the drop foot points (xt, yt) is as follows: first, variables kx, ky and kz are created for storing the following information: kx= (x 2-x 1) × (x 2-x 1); ky= (y 2-y 1) × (y 2-y 1); kz= (y 2-y 1) × (x 2-x 1); if kx=0, (xt, yt) = (px 0, py 0) is taken directly, otherwise calculated as follows: xt= (ky x1+ kx x px0+ kz x (py 0-y 1))/(kx + ky); yt=y1+ ((y 2-y 1) × (xt-x 1))/(x 2-x 1); where (px 0, py 0) represents the current frame original coordinates.
In step S3, a ratio of the original moving distance in the moving direction to the original moving distance in the vertical direction is calculated, and the current turning state is judged by comparing the ratio with a threshold value, otherwise, the current turning state is in a straight line or an approximate straight line stroking state. The method specifically comprises the following steps: creating two variables dv and dh, respectively storing the moving distances of the two directions obtained after the motion decomposition in the step S2, and according to the following formula: dh=sqrt ((xt-x 1) × (xt-x 1) + (yt-y 1) × (yt-y 1)); dv=sqrt ((px 0-xt) × (px 0-xt) + (py 0-yt) × (py 0-yt)).
To prevent the problem of excessive filtering of the lateral motion component during the curved motion or when the scribe line turns as shown in fig. 6, the method further includes, in step S3: setting a proportion threshold Tr, and when dh/dv is smaller than Tr, considering that the vehicle is in a turning state currently, or else, the vehicle is in a linear or approximately linear movement state; the smaller the threshold Tr, the stronger the suppression of the overall filtering process to the lateral interference, and the setting can be performed according to the severity of the deviation possibly caused by the interference, but the general recommended value is not less than 2, otherwise, the problem of curve track deformation will be difficult to avoid. In addition, if the vehicle is currently in a turning state, the two sub-directions are set as the reference filtering strength th, otherwise, the filtering strength tv in the vertical direction is increased by a certain proportion. According to the embodiment, the current turning state is judged according to the fact that the ratio of the motion direction to the original moving distance in the vertical direction is smaller than a certain threshold value, and curve sliding track deformation caused by different filtering strengths in the two directions can be effectively avoided by disabling the filtering enhancement in the vertical direction.
In step S4, the filtered touch point coordinates are calculated according to the formula of the selected filter using the previously set filtering strength th. The method specifically comprises the following steps: the filter strength th along the motion direction is determined according to the motion rate estimated value Dz calculated in the step S1, and the calculation formula is as follows: th=tmin+dz; wherein Tmin is the lower limit value of the filtering strength th set according to actual requirements; and sets a filter strength th upper limit Tmax, if the found th > Tmax, then th=tmax is forced.
Further, if step S3 determines that the vehicle is currently in a turning state, determining the filtering strength tv=th in the vertical direction, otherwise solving the following formula: tv=a×th, where the coefficient a <1 is used to enhance the filtering strength tv in the vertical direction, which can be set according to the actual scene needs.
In a specific example, in step S4, specifically includes: according to the touch point coordinates (i.e. the filtered touch point coordinates calculated by the filter coefficients of the two directions obtained in step S4), firstly defining two intermediate variables xt0 and yt0 for storing the intermediate point coordinates filtered along the motion direction; the calculation formula (for example, derived according to a 2-order bessel interpolation filter interpolation algorithm, which may also be derived by adopting other filter algorithms according to actual requirements) is shown in the following :xt0=((TM-th)×(TM-th)×x2+2×t×(TM-th)×x1+th×th×xt)/(TM×TM);yt0=((TM-th)×(TM-th)×y2+2×t×(TM-th)×y1+th×th×yt)/(TM×TM)., and the filtered touch point coordinates are calculated by overlapping the filtering results in the vertical direction, where the formula is as follows: x0=xt0+ ((px 0-xt) ×tv×tv)/(tm×tm); y0=yt0+ ((py 0-yt) ×tv×tv)/(tm×tm). Where TM is the maximum value that t may take, setting TM separately from Tmax may increase flexibility in filter adjustment, or may combine these two variables as needed. TM is larger than or equal to Tmax, and is the theoretical maximum value of the filtering intensity th; when filtering in the vertical direction, according to the direction definition, the projection components of (x 2, y 2) and (x 1, y 1) in the vertical direction are all 0, resulting in xt=px 0, yt=py 0, and thus the filtering result only contains the component related to (px 0, py 0). Therefore, the filtering scheme of the present embodiment is not much different from the conventional filtering scheme in terms of the calculation amount except for the process of calculating the drop foot point.
In this embodiment, a weighted average of the moving distance of the touch coordinate point and the historical moving distance of the current frame is calculated, so as to determine a suitable reference filtering strength th, and ensure that the coordinate point has better following performance after filtering. And decomposing the motion vector of the coordinate point of the current frame along the historical motion direction and the vertical direction of the motion vector to obtain two motion components and calculating the original motion distance of each motion component. And calculating the ratio of the original moving distance in the moving direction and the vertical direction, judging that the current state is in a turning state when the ratio is larger than or smaller than a threshold value, and otherwise, judging that the current state is in a linear or approximate linear stroking state. If the vehicle is in a turning state, the two sub-directions are set as the reference filtering strength th, otherwise, the filtering strength tv in the vertical direction is increased according to a certain proportion. And calculating the coordinates of the touch points after filtering according to the formula of the selected filter by adopting the preset filtering strength th.
In summary, the touch screen coordinate filtering method based on motion direction decomposition provided by the invention has the following advantages:
Calculating a weighted average value of the moving distance of the touch coordinate point of the current frame and the historical moving distance, and taking the weighted average value as a reference for setting the filtering intensity th; decomposing a motion vector of a touch coordinate point of the current frame along a historical motion direction and a vertical direction of the motion vector to obtain two motion components and calculating respective original motion distances; calculating the ratio of the original moving distance between the moving direction and the vertical direction, and judging the current state according to the comparison of the ratio and the threshold value; and setting the filtering strength th according to the current state, and calculating the coordinates of the filtered touch points. The method can solve the problem that the filtered coordinates are difficult to maintain good performance in both linearity and following performance when the original calculated coordinates of the capacitive touch screen shake.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.
Claims (10)
1. The touch screen coordinate filtering method based on the motion direction decomposition is characterized by comprising the following steps of:
S1, calculating a weighted average of a touch coordinate point moving distance and a historical moving distance of a current frame, and taking the weighted average as a reference for setting filtering strength th, wherein the touch coordinate point moving distance of the current frame refers to: the moving distance of the current frame original filtering coordinate relative to the filtering coordinate of a few frames closest to the current frame original filtering coordinate or the filtering coordinate of the previous frame, and the historical moving distance refers to: historical movement distances of a few frames nearest to the original filtering coordinates of the current frame;
S2, decomposing the motion vector of the touch coordinate point of the current frame along the historical motion direction and the vertical direction of the motion vector, obtaining two motion components and calculating the respective original motion distances, wherein the vertical direction refers to the vertical direction of the motion vector of the touch coordinate point of the current frame;
s3, calculating the ratio of the movement direction to the original movement distance in the vertical direction, and judging the current state according to the comparison of the ratio and a threshold value;
and S4, setting the filtering strength th according to the current state, and calculating the coordinates of the touch point after filtering.
2. The method for filtering touch screen coordinates based on motion direction decomposition according to claim 1, wherein in step S1, specifically comprising: (px 0, py 0) represents the current frame original coordinates, (x 1, y 1) represents the previous frame filtered coordinates, (Dx 0, dy 0) = (px 0-x1, py0-y 1), represents the current frame provided speed information, N, M represents the current frame and the history information respectively with different weighted proportion and N > M; the variables Dx and Dy are created, and the difference values of the x coordinate and the y coordinate between two frames are respectively stored to represent the movement speeds in two directions, wherein the formula is as follows:
dx= (dx×m+dx0× (N-M))/N; wherein, the right side of the equal sign represents the weighting of the current Dx and the newly added information Dx0, and the left side of the equal sign is the updated Dx;
Dy= (dy×m+dy0× (N-M))/N; wherein, the right side of the equal sign represents the weighting of the current Dy and the newly added information Dy0, and the left side of the equal sign is updated Dy.
3. The method for filtering touch screen coordinates based on motion direction decomposition according to claim 2, wherein the motion rate estimation Dz is calculated according to the following formula to be used as a reference for the subsequent setting of the filtering intensity th: dz=sqrt (dx×dx+dy×dy).
4. The touch screen coordinate filtering method based on motion direction decomposition according to claim 3, wherein if the evolution operation takes too long according to the operation capability of the actual chip, the following formula is adopted for operation:
Dz=Max(abs(Dx),abs(Dy))+3×Min(abs(Dx),abs(Dy))/8。
5. The method for filtering touch screen coordinates based on motion direction decomposition according to claim 4, wherein in step S2, specifically comprising: coordinate decomposition is carried out on the original coordinates (px 0, py 0) of the touch point relative to the historical motion direction, wherein the historical motion direction is the connecting line direction from (x 2, y 2) to (x 1, y 1), and the decomposition is realized by solving the drop foot point (xt, yt) projected from (px 0, py 0) to the motion direction; the original coordinate movement vector (xt-x 1, yt-y 1) of the motion direction and the original coordinate movement vector (px 0-xt, py 0-yt) of the vertical direction are obtained after decomposition; where (x 1, y 1) and (x 2, y 2) filter coordinates for the previous two frames of touch points.
6. The method for filtering touch screen coordinates based on motion direction decomposition according to claim 5, wherein said drop foot point (xt, yt) is calculated as follows: first, variables kx, ky and kz are created for storing the following information:
kx=(x2-x1)×(x2-x1);
ky=(y2-y1)×(y2-y1);
kz=(y2-y1)×(x2-x1);
If kx=0, (xt, yt) = (px 0, py 0) is taken directly, otherwise calculated as follows:
xt=(ky×x1+kx×px0+kz×(py0-y1))/(kx+ky);
yt=y1+((y2-y1)×(xt-x1))/(x2-x1);
Where (px 0, py 0) represents the current frame original coordinates.
7. The method for filtering touch screen coordinates based on motion direction decomposition according to claim 6, wherein in step S3, specifically comprising: creating two variables dv and dh, respectively storing the moving distances of the two directions obtained after the motion decomposition in the step S2, and according to the following formula:
dh=sqrt((xt-x1)×(xt-x1)+(yt-y1)×(yt-y1));
dv=sqrt((px0-xt)×(px0-xt)+(py0-yt)×(py0-yt))。
8. The method for filtering touch screen coordinates based on motion direction decomposition according to claim 7, further comprising, in step S3: setting a proportion threshold Tr, and when dh/dv is smaller than Tr, considering that the vehicle is in a turning state currently, or else, the vehicle is in a linear or approximately linear movement state; the smaller the threshold Tr, the stronger the overall filtering process suppresses the lateral interference.
9. The method for filtering touch screen coordinates based on motion direction decomposition according to claim 8, wherein in step S4, specifically comprising: the filter strength th along the motion direction is determined according to the motion rate estimated value Dz calculated in the step S1, and the calculation formula is as follows: th=tmin+dz; wherein Tmin is the lower limit value of the filtering strength th which is set according to actual requirements; and an upper limit value Tmax of the filtering strength th is set, and if th > Tmax is found, th=tmax is forced.
10. The method for filtering touch screen coordinates based on motion direction decomposition according to claim 9, wherein if step S3 determines that the touch screen is currently in a turning state, determining a filtering strength tv=th in a vertical direction, otherwise solving according to the following formula: tv=a×th, where the coefficient a <1 is used to enhance the filtering strength tv in the vertical direction.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410239997.XA CN117827034B (en) | 2024-03-04 | 2024-03-04 | Touch screen coordinate filtering method based on motion direction decomposition |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410239997.XA CN117827034B (en) | 2024-03-04 | 2024-03-04 | Touch screen coordinate filtering method based on motion direction decomposition |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN117827034A CN117827034A (en) | 2024-04-05 |
| CN117827034B true CN117827034B (en) | 2024-06-18 |
Family
ID=90504321
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410239997.XA Active CN117827034B (en) | 2024-03-04 | 2024-03-04 | Touch screen coordinate filtering method based on motion direction decomposition |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN117827034B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106133659A (en) * | 2014-01-22 | 2016-11-16 | 触觉实验室股份有限公司 | Dynamic allocation of possible channels in the touch sensor |
| CN106502459A (en) * | 2016-10-31 | 2017-03-15 | 北京交通大学 | A kind of smooth filtering method of capacitance touching control track noise signal |
Family Cites Families (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9218094B1 (en) * | 2012-06-21 | 2015-12-22 | Parade Technologies, Ltd. | Sense position prediction for touch sensing methods, circuits and systems |
| KR101992849B1 (en) * | 2012-11-14 | 2019-06-26 | 엘지디스플레이 주식회사 | Method for controlling transmission of touch coordinates and touch screen device using the same |
| KR101549213B1 (en) * | 2015-01-06 | 2015-09-02 | 연세대학교 산학협력단 | Apparatus for detecting touch points in touch screen and method thereof |
| US10031638B2 (en) * | 2015-02-10 | 2018-07-24 | Etter Studio Ltd. | Multi-touch GUI featuring directional compression and expansion of graphical content |
| US10365748B2 (en) * | 2015-12-08 | 2019-07-30 | Samsung Electronics Co., Ltd. | Smart touch location predictor based on direction vector |
| DE112016006646T5 (en) * | 2016-03-22 | 2018-12-13 | Mitsubishi Electric Corporation | COORDINATE CORRECTION DEVICE, COORDINATE CORRECTION PROCESS, AND COORDINATE CORRECTION PROGRAM |
| CN109960479B (en) * | 2017-12-22 | 2022-05-17 | 中科创达软件股份有限公司 | Anti-dizziness method and device for display equipment |
| CN109407888B (en) * | 2018-10-31 | 2020-08-14 | 上海海栎创微电子有限公司 | Two-stage filtering processing method for real-time following and debouncing of touch screen coordinate |
| KR102081809B1 (en) * | 2019-01-11 | 2020-02-27 | 주식회사 리딩유아이 | Capacitive touch system and driving method thereof |
| CN113676586B (en) * | 2020-04-30 | 2023-03-03 | 荣耀终端有限公司 | Display method and terminal of touch screen |
| CN112306301B (en) * | 2020-11-02 | 2024-06-11 | 北京小米移动软件有限公司 | Touch data processing method, device, equipment and storage medium |
| KR20230047281A (en) * | 2021-09-30 | 2023-04-07 | 삼성디스플레이 주식회사 | Touch sensing method and display device |
| KR20230097340A (en) * | 2021-12-24 | 2023-07-03 | 주식회사 엘엑스세미콘 | Touch sensing device and coordinate correction method |
| CN115993915A (en) * | 2022-12-15 | 2023-04-21 | 瑞态常州高分子科技有限公司 | Touch screen positioning smooth filtering method and system |
-
2024
- 2024-03-04 CN CN202410239997.XA patent/CN117827034B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106133659A (en) * | 2014-01-22 | 2016-11-16 | 触觉实验室股份有限公司 | Dynamic allocation of possible channels in the touch sensor |
| CN106502459A (en) * | 2016-10-31 | 2017-03-15 | 北京交通大学 | A kind of smooth filtering method of capacitance touching control track noise signal |
Also Published As
| Publication number | Publication date |
|---|---|
| CN117827034A (en) | 2024-04-05 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10359872B2 (en) | Prediction-based touch contact tracking | |
| US7199838B2 (en) | Motion adaptive noise reduction apparatus and method for video signals | |
| CN102572358A (en) | Frame interpolation apparatus and method | |
| US7613364B2 (en) | Global motion-compensated sequential-scanning method considering horizontal and vertical patterns | |
| JP2020518885A (en) | Selective application of reprojection processing to layer subregions to optimize late reprojection power | |
| WO2013095180A1 (en) | Complexity scalable frame rate up-conversion | |
| CN117827034B (en) | Touch screen coordinate filtering method based on motion direction decomposition | |
| US20050259738A1 (en) | Image processing apparatus and method, and recording medium and program used therewith | |
| CN102685371B (en) | Digital Video Image Stabilization Method Based on Multi-resolution Block Matching and PI Control | |
| CN104142730B (en) | A kind of method that gesture tracking result is mapped to mouse event | |
| US7254279B2 (en) | Method for image stabilization by adaptive filtering | |
| CN102170567A (en) | Motion vector search prediction-based adaptive motion estimation algorithm | |
| JP2007516679A5 (en) | ||
| JP2007516679A (en) | Method and system for stabilizing video data | |
| WO2024230213A1 (en) | Image presentation control method, and electronic device, storage medium, hud system and transportation means | |
| CN109887061A (en) | Scene rendering method, device and device | |
| CN109087326A (en) | Otsu algorithm based on local auto-adaptive | |
| US20220021898A1 (en) | Method, video processing apparatus, device, and medium for estimating a motion vector of a pixel block | |
| CN1781316A (en) | Offset motion vector interpolation for video artifact reduction | |
| JP2006518158A (en) | Video compression method and apparatus based on perceptual model | |
| JP2011071632A (en) | Image processing apparatus and control method thereof | |
| US9225994B2 (en) | Global motion estimation using reduced frame lines | |
| Tanakian et al. | Digital video stabilization system by adaptive fuzzy filtering | |
| CN1160968C (en) | Selective Motion Estimation Device and Method Combining Global and Regional Motion Estimation | |
| JP2005236937A (en) | Image processing apparatus, image processing method, and image processing program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |