CN109284062A - A kind of touch data processing method, device, terminal and medium - Google Patents
A kind of touch data processing method, device, terminal and medium Download PDFInfo
- Publication number
- CN109284062A CN109284062A CN201811094659.2A CN201811094659A CN109284062A CN 109284062 A CN109284062 A CN 109284062A CN 201811094659 A CN201811094659 A CN 201811094659A CN 109284062 A CN109284062 A CN 109284062A
- Authority
- CN
- China
- Prior art keywords
- point
- true
- batten
- data processing
- touch data
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR 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/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/20—Drawing from basic elements, e.g. lines or circles
- G06T11/203—Drawing of straight lines or curves
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Human Computer Interaction (AREA)
- Processing Or Creating Images (AREA)
- Image Generation (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The invention proposes a kind of touch data processing method, device, terminal and media, this method passes through the numerical value for accurately selecting parameter in three rank Bezier spline interpolation algorithms, it can realize that batten inserts the insertion of point between most latter two true point position in the continuous true point of every setting quantity, phenomenon is delayed to while ensure that higher report point rate, overcome the point of report caused by directlying adopt existing three ranks Bezier spline interpolation algorithm.The present invention is on the basis of overcoming report point to delay, further adjustment batten inserts the insertion position of point, so that batten inserts point and levels off on the most perpendicular bisector of latter two true point position, the true point and batten of such real-time display insert point and are greatly improved touch screen drawing smoothness.
Description
Technical field
The present invention relates to touch screen display technologies field more particularly to a kind of touch data processing method, device, terminal and
Medium.
Background technique
In the IC chip that mobile terminal uses, the frequency that SCAN is scanned under V-MODE mode is identical as the frequency of reality,
It should be 60Hz for the report point rate of 60Hz, therefore theory, i.e. each second shows 60 points.In the case where being 60Hz due to report point rate, screen
The scribing line path effect of curtain display is not that very coherent, careful, initial solution is reported twice a little using single pass correspondence
Behavior, as shown in Figure 1, farther out due to spacing, the point of insertion is located at front and back when (curve or circle) is slided in quick deflecting again
Among two o'clock, therefore inserting point apparent can be identified, and can not show the advantage of high report point rate.
Spline interpolation can be used lower order polynomial expressions batten and realize lesser interpolation error, be avoided in this way using high-order
The imperial lattice phenomenon that multinomial occurs, so spline interpolation is more succinct real compared to the methods of Newton interpolation, Lagrange's interpolation
With.
Bezier spline interpolation algorithm mainly optimizes the position of insertion point, so that insertion point is preferably bonded the entirety of touch
Track, so that track integrally seems more smooth.
Three traditional rank Bezier spline interpolation algorithms can only be by four control point P0,P1,P2, P3It is two intermediate to generate
Control point P1, P2Batten insert point, just need whole a later frame of prolonging if so applying and implementing in touching Touch algorithm
Point is reported, more apparent report point will be generated in actual use and delay phenomenon, reduce the overall performance of Touch algorithm.
Summary of the invention
The technical problem to be solved by the present invention is to, a kind of touch data processing method, device, terminal and medium are provided, gram
It takes 3 traditional rank Bezier spline interpolation algorithm report points and delays phenomenon, promote touch screen drawing smoothness.
The technical solution adopted by the present invention is that the touch data processing method, comprising:
Receive the true position generated in scratching process on touch screen;
It is inserted between most latter two true point position in setting quantity per treatment is continuously really put based on preset algorithm
Enter batten and inserts point;
By setting quantity per treatment, continuously really point and the slotting point of the corresponding batten are shown.
Optionally, the true position generated in scratching process on real-time reception touch screen;
The preset algorithm includes: three rank Bezier spline interpolation algorithms.
Optionally, in the three ranks Bezier spline interpolation algorithm, in the continuous setting quantity really put per treatment
In the case where for 4, if P0, P1, P2, P3Respectively 4 continuous true point positions, then for determining that batten inserts point position C
(t) formula is as follows:
Wherein, t is to insert point position to adjust variable, 1 < t < 1.5.
Optionally, it is per treatment it is continuous really put in the case where setting quantity as 4, if P0, P1, P2, P3Respectively
It is for 4 continuous true point positions, then described to be connected based on three rank Bezier spline interpolation algorithms in setting quantity per treatment
Insertion batten inserts point between most latter two true point position in continuous true point, comprising:
Determine that batten inserts the initial position C (t) of point in every 4 continuous true points according to following formula, batten is inserted
The initial position C (t) of point is located at the 3rd true point position P2With the 4th true point position P3Between;
Wherein, t is to insert point position to adjust variable, 1 < t < 1.5;
Batten is inserted into the initial position C (t) of point along from P2To initial position C (t) the mobile setting of vector direction away from
From the distance set is the 3rd true point position P2With the 4th true point position P3Spacing 0% to 50% between,
Obtain the final position that batten inserts point.
Optionally, t is bigger, and the distance of the setting is smaller.
Optionally, t=1.3, the distance set is the 3rd true point position P2With the 4th true point position P3Between
Away from 20%.
Optionally, the method is suitable for real-time system or non real-time system.
The present invention also provides a kind of touch data processing units, comprising:
Acquisition module, for receiving the true position generated in scratching process on touch screen;
Computing module, for most latter two to be true in setting quantity per treatment is continuously really put based on preset algorithm
Insertion batten inserts point between point position;
Display module, for continuously really point and the corresponding batten to insert point display by setting quantity per treatment
Out.
Optionally, the acquisition module, the true position generated in scratching process on real-time reception touch screen;
The preset algorithm includes: three rank Bezier spline interpolation algorithms.
Optionally, in the three ranks Bezier spline interpolation algorithm, in the continuous setting quantity really put per treatment
In the case where for 4, if P0, P1, P2, P3Respectively 4 continuous true point positions, then for determining that batten inserts point position C
(t) formula is as follows:
Wherein, t is to insert point position to adjust variable, 1 < t < 1.5.
Optionally, it is per treatment it is continuous really put in the case where setting quantity as 4, if P0, P1, P2, P3Respectively
Positions are continuously really put for 4, then the computing module, are used for:
Determine that batten inserts the initial position C (t) of point in every 4 continuous true points according to following formula, batten is inserted
The initial position C (t) of point is located at the 3rd true point position P2With the 4th true point position P3Between;
Wherein, t is to insert point position to adjust variable, 1 < t < 1.5;
Batten is inserted into the initial position C (t) of point along from P2To initial position C (t) the mobile setting of vector direction away from
From the distance set is the 3rd true point position P2With the 4th true point position P3Spacing 0% to 50% between,
Obtain the final position that batten inserts point.
Optionally, t is bigger, and the distance of the setting is smaller.
Optionally, t=1.3, the distance set is the 3rd true point position P2With the 4th true point position P3Between
Away from 20%.
Optionally, described device is suitable for real-time system or non real-time system.
The present invention also provides a kind of mobile terminals, comprising: touch screen, memory, processor and is stored in the memory
Computer program that is upper and can running on the processor, the computer program is realized above-mentioned when being executed by the processor
The step of touch data processing method.
The present invention also provides a kind of computer storage medium, it is stored with computer program in the computer storage medium,
The computer program realizes the step of above-mentioned touch data processing method when being executed by processor.
By adopting the above technical scheme, the present invention at least has the advantage that
Touch data processing method, device, terminal and medium of the present invention, by accurately selecting three rank Bezier splines
The numerical value of point position adjustment variable is inserted in interpolation algorithm, it can most latter two be true in the continuous true point of setting quantity every time
Realize that batten inserts the insertion of point between real point position, to overcome and directly adopt while ensure that higher report point rate
The point of report caused by existing three ranks Bezier spline interpolation algorithm delays phenomenon.On the basis of overcoming report point to delay, further adjust
Whole batten inserts the insertion position of point, so that batten inserts point and levels off on the most perpendicular bisector of latter two true point position, this
The true point and batten of sample real-time display insert point and are greatly improved touch screen drawing smoothness.
Detailed description of the invention
Fig. 1 is that the touch screen drawing report point of the prior art promotes schematic diagram;
Fig. 2 is the touch data processing method flow chart of the first, second and third embodiment of the invention;
Fig. 3 is the specific steps flow diagram of the step S102 of second embodiment of the invention;
Fig. 4 is that the touch screen drawing report point of various embodiments of the present invention promotes schematic diagram;
Fig. 5 (a)~(e) is respectively three rank Bezier spline interpolation algorithms in third embodiment of the invention using different
Report point when inserting point position adjustment variable t promotes effect diagram;
Fig. 6 is the touch data processing unit composed structure schematic diagram of fourth, fifth, six embodiments of the invention.
Specific embodiment
Further to illustrate the present invention to reach the technical means and efficacy that predetermined purpose is taken, below in conjunction with attached drawing
And preferred embodiment, the present invention is described in detail as after.
First embodiment of the invention, a kind of touch data processing method, as shown in Fig. 2, comprising the following specific steps
Step S101 receives the true position that scratching process generates on touch screen;
Optionally, the embodiment of the present invention can true position to generate in scratching process on real-time reception touch screen.It should
The period for being less than or equal to report point rate is referred in real time.
Step S102, based on preset algorithm setting quantity per treatment continuously really point in most latter two true point
It is inserted into batten between setting and inserts point;
Optionally, the preset algorithm includes: three rank Bezier spline interpolation algorithms.The three ranks Bezier spline interpolation
In algorithm, it is per treatment it is continuous really put in the case where setting quantity as 4, if P0, P1, P2,P3Respectively 4 companies
True continuous position, then for determining that the formula of slotting point position C (t) of batten is as follows:
Wherein, t is to insert point position to adjust variable, 1 < t < 1.5.
Step S103, by setting quantity per treatment, continuously really point and the slotting point of the corresponding batten are shown
Come.
Optionally, the method for the embodiment of the present invention can be adapted for real-time system, be readily applicable to non real-time system
System.
The embodiment of the present invention is by limiting the numerical value for inserting adjustment variable t in point position in three rank Bezier spline interpolation algorithms
In 1 < t < 1.5, it can realize that batten inserts the insertion of point between most latter two true point position in every 4 continuous true points,
To overcome caused by directlying adopt existing three ranks Bezier spline interpolation algorithm while ensure that higher report point rate
Report point delays phenomenon.
Second embodiment of the invention, a kind of touch data processing method, as shown in Fig. 2, comprising the following specific steps
Step S101 receives the true position that scratching process generates on touch screen;
Optionally, the embodiment of the present invention can true position to generate in scratching process on real-time reception touch screen.It should
The period for being less than or equal to report point rate is referred in real time.
Step S102, based on preset algorithm setting quantity per treatment continuously really point in most latter two true point
It is inserted into batten between setting and inserts point;
Optionally, the preset algorithm includes: three rank Bezier spline interpolation algorithms.As shown in figure 3, per treatment
That continuously really puts sets quantity as in the case where 4, if P0, P1, P2, P3Respectively 4 continuous true point positions, then walk
Rapid S102, comprising:
Step A1: determining that batten inserts the initial position C (t) of point in every 4 continuous true points according to following formula,
The initial position C (t) that batten inserts point is located at the 3rd true point position P2With the 4th true point position P3Between;
Wherein, t is to insert point position to adjust variable, 1 < t < 1.5;
Step A2: batten is inserted into the initial position C (t) of point along from P2Vector direction movement to initial position C (t) is set
Fixed distance, the distance set is the 3rd true point position P2With the 4th true point position P3Spacing 0% to 50%
Between, it obtains batten and inserts point final position.
Optionally, t is bigger, and the distance of the setting is smaller.
Step S103, by setting quantity per treatment, continuously really point and the slotting point of the corresponding batten are shown
Come.
Optionally, the method for the embodiment of the present invention can be adapted for real-time system, be readily applicable to non real-time system
System.
The embodiment of the present invention is by limiting the numerical value for inserting adjustment variable t in point position in three rank Bezier spline interpolation algorithms
In 1 < t < 1.5, it can realize that batten inserts the insertion of point between most latter two true point position in every 4 continuous true points,
To overcome caused by directlying adopt existing three ranks Bezier spline interpolation algorithm while ensure that higher report point rate
Report point delays phenomenon.In addition, the embodiment of the present invention also passes through step A2 and further adjusts on the basis of overcoming report point to delay
Batten inserts the insertion position of point, so that batten inserts point and levels off on the most perpendicular bisector of latter two true point position, in this way
The true point and batten of real-time display insert point and are greatly improved touch screen drawing smoothness.
Third embodiment of the invention, a kind of touch data processing method, as shown in Fig. 2, comprising the following specific steps
Step S101 receives the true position that scratching process generates on touch screen;
Optionally, the embodiment of the present invention can true position to generate in scratching process on real-time reception touch screen.It should
The period for being less than or equal to report point rate is referred in real time.
Step S102, based on preset algorithm setting quantity per treatment continuously really point in most latter two true point
It is inserted into batten between setting and inserts point;
Optionally, the preset algorithm includes: three rank Bezier spline interpolation algorithms.As shown in figure 3, per treatment
That continuously really puts sets quantity as in the case where 4, if P0, P1, P2, P3Respectively 4 continuous true point positions, then walk
Rapid S102, comprising:
Step A1: determining that batten inserts the initial position C (t) of point in every 4 continuous true points according to following formula,
The initial position C (t) that batten inserts point is located at the 3rd true point position P2With the 4th true point position P3Between;
Wherein, t is to insert point position to adjust variable, t=1.3;
Step A2: batten is inserted into the initial position C (t) of point along from P2Vector direction movement to initial position C (t) is set
Fixed distance, the distance set is the 3rd true point position P2With the 4th true point position P3Spacing 20%, obtain
Batten inserts the final position of point.
Step S103, by setting quantity per treatment, continuously really point and the slotting point of the corresponding batten are shown
Come.
Optionally, the method for the embodiment of the present invention can be adapted for real-time system, be readily applicable to non real-time system
System.
The embodiment of the present invention is by limiting the numerical value for inserting adjustment variable t in point position in three rank Bezier spline interpolation algorithms
In t=1.3, it can realize that batten inserts the insertion of point between most latter two true point position in every 4 continuous true points, from
And while ensure that higher report point rate, overcome report caused by directlying adopt existing three ranks Bezier spline interpolation algorithm
Point delays phenomenon.In addition, the embodiment of the present invention also passes through step A2 and further adjusts sample on the basis of overcoming report point to delay
Item inserts the insertion position of point, i.e., batten is inserted to the initial position C (t) of point along from P2Vector direction to initial position C (t) is moved
The distance of dynamic setting, the distance set is the 3rd true point position P2With the 4th true point position P3Spacing 20%,
The final position that batten inserts point is obtained, so that batten inserts point and levels off to very much perpendicular bisector of most latter two true point position
On, the true point and batten of such real-time display insert point and are greatly improved touch screen drawing smoothness.
The slotting position adjustment variable t of the embodiment of the present invention and the combinations of values of the set distance can regard second as
A preferred embodiment in embodiment, specific principle analysis are as follows:
As shown in figure 4, before three rank Bezier spline interpolation algorithms of the embodiment of the present invention can accomplish basis
Some points and a click-through row interpolation later, FilterPoint is the 4th true point in Fig. 4, and InsertPoint is batten
Insert point.
During receiving continuous scribing line on the touchscreen, three rank Bezier spline interpolation algorithms use different slotting points
It is observed when adjusting t position:
When between t=0~1, batten, which inserts point, can fall in P1And P2Between, Bezier can preferably fit centre
The position of point, as shown in Fig. 5 (a).
When between t=1~2, batten, which inserts point, can fall in P2With P3Between, the effect of fitting can with t increase and become
Difference, as shown in Fig. 5 (b)~(d).
It will lead to the case where prediction deviation increases appearance as t > 1.5, as shown in Fig. 5 (e).
The embodiment of the present invention is selected as t=1.3, and the slotting point of batten is taken advantage of a situation and extends forwardly to P2With P3It, can be between two o'clock
Reach optimal effect.
The expression formula of Bessel function can simplify when t=1.3 are as follows:
Batten is then inserted into point along vector P2The direction of C extends forward 20%, and obtained new coefficient matrix is
Fourth embodiment of the invention, a kind of touch data processing unit, as shown in Figure 6, comprising:
1) acquisition module 301, for receiving the true position that scratching process generates on touch screen;
Optionally, the acquisition module 301 of the embodiment of the present invention can be to generate in scratching process on real-time reception touch screen
True point position.This refers to the period for being less than or equal to report point rate in real time.
2) computing module 302, for continuous in setting quantity per treatment based on three rank Bezier spline interpolation algorithms
Insertion batten inserts point between most latter two true point position in true point;
Optionally, in the three ranks Bezier spline interpolation algorithm, in the continuous setting quantity really put per treatment
In the case where for 4, if P0, P1, P2, P3Respectively 4 continuous true point positions, then for determining that batten inserts point position C
(t) formula is as follows:
Wherein, t is to insert point position to adjust variable, 1 < t < 1.5.
3) display module 303, in real time that setting quantity per treatment is continuously true according to chronological order
Point and the corresponding batten are inserted point and are shown.
Optionally, the described device of the embodiment of the present invention can be adapted for real-time system, be readily applicable to non real-time system
System.
The embodiment of the present invention is by limiting the numerical value for inserting adjustment variable t in point position in three rank Bezier spline interpolation algorithms
In 1 < t < 1.5, it can realize that batten inserts the insertion of point between most latter two true point position in every 4 continuous true points,
To overcome caused by directlying adopt existing three ranks Bezier spline interpolation algorithm while ensure that higher report point rate
Report point delays phenomenon.
Fifth embodiment of the invention, a kind of touch data processing unit, as shown in Figure 6, comprising:
1) acquisition module 301, for receiving the true position that scratching process generates on touch screen;
Optionally, the acquisition module 301 of the embodiment of the present invention can be to generate in scratching process on real-time reception touch screen
True point position.This refers to the period for being less than or equal to report point rate in real time.
2) computing module 302, for continuous in setting quantity per treatment based on three rank Bezier spline interpolation algorithms
Insertion batten inserts point between most latter two true point position in true point;
Optionally, it is per treatment it is continuous really put in the case where setting quantity as 4, if P0, P1,P2,P3Respectively
Positions are continuously really put for 4, then computing module 302, are specifically used for:
Determine that batten inserts the initial position C (t) of point, sample in described every 4 continuous true points according to following formula
The initial position C (t) for article inserting point is located at the 3rd true point position P2With the 4th true point position P3Between;
Wherein, t is to insert point position to adjust variable, 1 < t < 1.5;
Batten is inserted into the initial position C (t) of point along from P2To initial position C (t) the mobile setting of vector direction away from
From the distance set is the 3rd true point position P2With the 4th true point position P3Spacing 0% to 50% between,
Obtain the final position that batten inserts point.
Optionally, t is bigger, and the distance of the setting is smaller.
3) display module 303, for continuously really point and the corresponding batten to be inserted by setting quantity per treatment
Point is shown.
The embodiment of the present invention is by limiting the numerical value for inserting adjustment variable t in point position in three rank Bezier spline interpolation algorithms
In 1 < t < 1.5, it can realize that batten inserts the insertion of point between most latter two true point position in every 4 continuous true points,
To overcome caused by directlying adopt existing three ranks Bezier spline interpolation algorithm while ensure that higher report point rate
Report point delays phenomenon.In addition, the computing module 302 of the embodiment of the present invention is also further adjusted on the basis of overcoming report point to delay
Whole batten inserts the insertion position of point, so that batten inserts point and levels off on the most perpendicular bisector of latter two true point position,
The true point and batten of real-time display in this way insert point and are greatly improved touch screen drawing smoothness.
Sixth embodiment of the invention, a kind of touch data processing unit, as shown in Figure 6, comprising:
1) acquisition module 301, for receiving the true position that scratching process generates on touch screen;
Optionally, the acquisition module 301 of the embodiment of the present invention can be to generate in scratching process on real-time reception touch screen
True point position.
2) computing module 302, for continuous in setting quantity per treatment based on three rank Bezier spline interpolation algorithms
Insertion batten inserts point between most latter two true point position in true point;
Optionally, it is per treatment it is continuous really put in the case where setting quantity as 4, if P0,P1,P2,P3Respectively
Positions are continuously really put for 4, then computing module 302, are specifically used for:
Determine that batten inserts the initial position C (t) of point in every 4 continuous true points according to following formula, batten inserts point
Initial position C (t) be located at the 3rd true point position P2With the 4th true point position P3Between;
Wherein, t is to insert point position to adjust variable, t=1.3;
Batten is inserted into the initial position C (t) of point along from P2To initial position C (t) the mobile setting of vector direction away from
From the distance set is the 3rd true point position P2With the 4th true point position P3Spacing 20%, obtain batten insert
The final position of point.
Optionally, t is bigger, and the distance of the setting is smaller.
3) display module 303, for continuously really point and the corresponding batten to be inserted by setting quantity per treatment
Point is shown.
Optionally, the described device of the embodiment of the present invention can be adapted for real-time system, be readily applicable to non real-time system
System.
The embodiment of the present invention is by limiting the numerical value for inserting adjustment variable t in point position in three rank Bezier spline interpolation algorithms
In t=1.3, it can realize that batten inserts the insertion of point between most latter two true point position in every 4 continuous true points, from
And while ensure that higher report point rate, overcome report caused by directlying adopt existing three ranks Bezier spline interpolation algorithm
Point delays phenomenon.In addition, on the basis of overcoming report point to delay, the also further adjustment of the computing module 302 of the embodiment of the present invention
Batten inserts the insertion position of point, i.e., batten is inserted to the initial position C (t) of point along from P2To the vector side of initial position C (t)
To the distance of mobile setting, the distance set is the 3rd true point position P2With the 4th true point position P3Spacing
20%, the final position that batten inserts point is obtained, so that batten inserts point and levels off to very much the vertical of most latter two true point position
On bisector, the true point and batten of such real-time display insert point and are greatly improved touch screen drawing smoothness.The present invention is real
The combinations of values of the parametric variable t and the set distance that apply example can regard a preferred implementation in the 5th embodiment as
Mode.
Seventh embodiment of the invention, a kind of mobile terminal, comprising: touch screen, memory, processor and be stored in described deposit
On reservoir and the computer program that can run on the processor, the computer program are realized when being executed by the processor
Such as the step of first and second or three touch data processing methods described in embodiment.
Eighth embodiment of the invention, a kind of computer storage medium are stored with computer in the computer storage medium
Program, the computer program realize above-mentioned first and second or the three touch data processing in embodiment when being executed by processor
The step of method.
In Project Realization, the present embodiment can be realized by means of software and necessary general hardware platform, certainly
It can also the former be more preferably embodiment by hardware, but in many cases.Based on this understanding, the side of the invention
Method can embody in form of a computer software product, which is stored in a storage medium (such as
ROM/RAM, magnetic disk, CD) in, including some instructions are used so that an equipment (it is mobile eventually to can be tablet computer, mobile phone etc.
End) execute method described in the embodiment of the present invention.
By the explanation of specific embodiment, the present invention can should be reached technological means that predetermined purpose is taken and
Effect is able to more deeply and specifically understand, however appended diagram is only to provide reference and description and is used, and is not used to this
Invention limits.
Claims (16)
1. a kind of touch data processing method characterized by comprising
Receive the true position generated in scratching process on touch screen;
Sample is inserted between most latter two true point position in setting quantity per treatment is continuously really put based on preset algorithm
Item inserts point;
By setting quantity per treatment, continuously really point and the slotting point of the corresponding batten are shown.
2. touch data processing method according to claim 1, which is characterized in that scratching process on real-time reception touch screen
True position of middle generation;
The preset algorithm, comprising: three rank Bezier spline interpolation algorithms.
3. touch data processing method according to claim 2, which is characterized in that the three ranks Bezier spline interpolation is calculated
In method, it is per treatment it is continuous really put in the case where setting quantity as 4, if P0,P1, P2, P3Respectively 4 continuous
True position, then for determine batten insert point position C (t) formula it is as follows:
Wherein, t is parameter, 1 < t < 1.5.
4. touch data processing method according to claim 2, which is characterized in that continuous really put per treatment
Quantity is set as in the case where 4, if P0,P1,P2,P3Respectively 4 continuous true point positions, then be based on three rank Bezier
Based on Interpolating Spline in setting quantity per treatment is continuously really put insert between most latter two true point position by insertion batten
Point, comprising:
Determine that batten inserts the initial position C (t) of point in every 4 continuous true points according to following formula, batten inserts point
Initial position C (t) is located at the 3rd true point position P2With the 4th true point position P3Between;
Wherein, t is parameter, 1 < t < 1.5;
Batten is inserted into the initial position C (t) of point along from P2To the distance of the mobile setting of vector direction of initial position C (t), institute
The distance set is stated as the 3rd true point position P2With the 4th true point position P3Spacing 0% to 50% between, obtain sample
Item inserts the final position of point.
5. touch data processing method according to claim 4, which is characterized in that t is bigger, and the distance of the setting is got over
It is small.
6. touch data processing method according to claim 4, which is characterized in that t=1.3, the distance set as
3rd true point position P2With the 4th true point position P3Spacing 20%.
7. touch data processing method described according to claim 1~any one of 6, which is characterized in that the method is applicable in
In real-time system or non real-time system.
8. a kind of touch data processing unit characterized by comprising
Acquisition module, for receiving the true position generated in scratching process on touch screen;
Computing module, for based on preset algorithm setting quantity per treatment continuously really point in most latter two true point
It is inserted into batten between setting and inserts point;
Display module, for continuously really point and the slotting point of the corresponding batten to be shown by setting quantity per treatment
Come.
9. touch data processing unit according to claim 8, which is characterized in that the acquisition module, for connecing in real time
Receive the true position generated in scratching process on touch screen;
The preset algorithm, comprising: three rank Bezier spline interpolation algorithms.
10. touch data processing unit according to claim 9, which is characterized in that the three ranks Bezier spline interpolation
In algorithm, it is per treatment it is continuous really put in the case where setting quantity as 4, if P0,P1,P2, P3Respectively 4 companies
True continuous position, then for determining that the formula of slotting point position C (t) of batten is as follows:
Wherein, t is parameter, 1 < t < 1.5.
11. touch data processing unit according to claim 9, which is characterized in that in continuous true point per treatment
Set quantity as in the case where 4, if P0,P1,P2,P3Respectively 4 are continuously really put positions, then the computing module,
For:
Determine that batten inserts the initial position C (t) of point in every 4 continuous true points according to following formula, batten inserts point
Initial position C (t) is located at the 3rd true point position P2With the 4th true point position P3Between;
Wherein, t is parameter, 1 < t < 1.5;
Batten is inserted into the initial position C (t) of point along from P2To the distance of the mobile setting of vector direction of initial position C (t), institute
The distance set is stated as the 3rd true point position P2With the 4th true point position P3Spacing 0% to 50% between, obtain sample
Item inserts the final position of point.
12. touch data processing unit according to claim 11, which is characterized in that t is bigger, and the distance of the setting is got over
It is small.
13. touch data processing unit according to claim 11, which is characterized in that t=1.3, the distance of the setting
For the 3rd true point position P2With the 4th true point position P3Spacing 20%.
14. the touch data processing unit according to any one of claim 8~13, which is characterized in that described device is suitable
For real-time system or non real-time system.
15. a kind of mobile terminal characterized by comprising touch screen, memory, processor and be stored on the memory
And the computer program that can be run on the processor, such as right is realized when the computer program is executed by the processor
It is required that described in any one of 1 to 7 the step of touch data processing method.
16. a kind of computer storage medium, which is characterized in that be stored with computer program, institute in the computer storage medium
It states realizing the touch data processing method as described in any one of claims 1 to 7 when computer program is executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811094659.2A CN109284062B (en) | 2018-09-19 | 2018-09-19 | Touch data processing method, device, terminal and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811094659.2A CN109284062B (en) | 2018-09-19 | 2018-09-19 | Touch data processing method, device, terminal and medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109284062A true CN109284062A (en) | 2019-01-29 |
CN109284062B CN109284062B (en) | 2021-09-07 |
Family
ID=65181453
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811094659.2A Active CN109284062B (en) | 2018-09-19 | 2018-09-19 | Touch data processing method, device, terminal and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109284062B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110599568A (en) * | 2019-09-12 | 2019-12-20 | 广州视源电子科技股份有限公司 | Line generation method, device, equipment and storage medium |
CN110928449A (en) * | 2019-11-26 | 2020-03-27 | 北京集创北方科技股份有限公司 | Touch screen point reporting method and device, electronic equipment and storage medium |
US11175779B1 (en) | 2020-12-18 | 2021-11-16 | Nxp Usa, Inc. | Position refinement in a touch indicating array |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521857A (en) * | 2011-11-28 | 2012-06-27 | 北京盛世宣合信息科技有限公司 | Angle control method for writing brush shape of electronic writing brush |
CN103488352A (en) * | 2013-08-27 | 2014-01-01 | 合肥工业大学 | Coordinate capturing and correcting algorithm of infrared multipoint touch screen |
CN104123027A (en) * | 2013-04-28 | 2014-10-29 | 北京汇冠新技术股份有限公司 | Touch track smoothing method |
WO2017138283A1 (en) * | 2016-02-12 | 2017-08-17 | Wacom Co., Ltd. | Method and system for generating and selectively outputting two types of ink vector data |
-
2018
- 2018-09-19 CN CN201811094659.2A patent/CN109284062B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102521857A (en) * | 2011-11-28 | 2012-06-27 | 北京盛世宣合信息科技有限公司 | Angle control method for writing brush shape of electronic writing brush |
CN104123027A (en) * | 2013-04-28 | 2014-10-29 | 北京汇冠新技术股份有限公司 | Touch track smoothing method |
CN103488352A (en) * | 2013-08-27 | 2014-01-01 | 合肥工业大学 | Coordinate capturing and correcting algorithm of infrared multipoint touch screen |
WO2017138283A1 (en) * | 2016-02-12 | 2017-08-17 | Wacom Co., Ltd. | Method and system for generating and selectively outputting two types of ink vector data |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110599568A (en) * | 2019-09-12 | 2019-12-20 | 广州视源电子科技股份有限公司 | Line generation method, device, equipment and storage medium |
CN110928449A (en) * | 2019-11-26 | 2020-03-27 | 北京集创北方科技股份有限公司 | Touch screen point reporting method and device, electronic equipment and storage medium |
CN110928449B (en) * | 2019-11-26 | 2023-06-23 | 北京集创北方科技股份有限公司 | Point reporting method and device of touch screen, electronic equipment and storage medium |
US11175779B1 (en) | 2020-12-18 | 2021-11-16 | Nxp Usa, Inc. | Position refinement in a touch indicating array |
Also Published As
Publication number | Publication date |
---|---|
CN109284062B (en) | 2021-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109284062A (en) | A kind of touch data processing method, device, terminal and medium | |
US8554019B2 (en) | Apparatus and method for image processing | |
CN101783024A (en) | Method of filtering depth noise using depth information and apparatus for enabling the method | |
CN108596652A (en) | Active users prediction technique and device | |
US10380506B2 (en) | Generation of occupant activities based on recorded occupant behavior | |
US10230902B2 (en) | Methods and devices for correcting video flicker | |
CN113365110B (en) | Model training method, video frame interpolation method, device, equipment and storage medium | |
TW201218151A (en) | Overdriving apparatus and over driving value generating method | |
CN112506413A (en) | Touch point prediction method and device, terminal equipment and computer readable storage medium | |
CN110149476A (en) | A kind of time-lapse photography method, apparatus, system and terminal device | |
CN104782118B (en) | Video scaling apparatus and method | |
JP7085486B2 (en) | User behavior data processing method and equipment | |
CN107704128A (en) | Data processing method and device, storage medium and processor | |
CN103310446B (en) | A kind of solid matching method that instructs filtering based on iteration | |
CN108874200B (en) | The control method and device of writing speed | |
US11361409B2 (en) | Method for smoothing coordinates, touch chip, and electronic terminal | |
CN111798167A (en) | Warehouse replenishment method and device | |
US20150189126A1 (en) | Controlling content frame rate based on refresh rate of a display | |
CN110110264A (en) | Touch adjusting method, device, equipment and the touch screen terminal equipment of hot-zone | |
CN105929851B (en) | It is a kind of that holder method and apparatus are controlled using rocking bar equipment | |
CN102968773A (en) | Method of image noise reduction | |
CN113590050B (en) | Method and device for adjusting random writing performance, electronic equipment and storage medium | |
CN103076874A (en) | Method and system for improving high delay of computer-vision-based somatosensory input equipment | |
CN115798608A (en) | Method and device for calculating collision parameters of VSS model, electronic equipment and medium | |
CN108429859A (en) | Message prompt method, electronic device and computer readable storage medium |
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 |