CN105718122A - Track smoothing method and apparatus for capacitive whiteboard - Google Patents

Track smoothing method and apparatus for capacitive whiteboard Download PDF

Info

Publication number
CN105718122A
CN105718122A CN201410720439.1A CN201410720439A CN105718122A CN 105718122 A CN105718122 A CN 105718122A CN 201410720439 A CN201410720439 A CN 201410720439A CN 105718122 A CN105718122 A CN 105718122A
Authority
CN
China
Prior art keywords
point
newly
coordinate
track
coordinates
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
Application number
CN201410720439.1A
Other languages
Chinese (zh)
Other versions
CN105718122B (en
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
HONGHE TECHNOLOGY Co Ltd
Original Assignee
HONGHE TECHNOLOGY Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by HONGHE TECHNOLOGY Co Ltd filed Critical HONGHE TECHNOLOGY Co Ltd
Priority to CN201410720439.1A priority Critical patent/CN105718122B/en
Publication of CN105718122A publication Critical patent/CN105718122A/en
Application granted granted Critical
Publication of CN105718122B publication Critical patent/CN105718122B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention discloses a track smoothing method and apparatus for a capacitive whiteboard. A numerical value D used for defining a certain dynamic region on a screen is set in the system initially, and the following steps are further implemented: (1) a newly-added point coordinate of a certain track is obtained by sampling; (2) the last track coordinate point of the track is read from a storage structure; if the newly-added coordinate point is the first point of the track, the storage structure is established, and the point coordinate is stored and the coordinate value is taken as the smoothened track coordinate; (3) the track point number n in a fixed region formed by the D and the last track coordinate point is calculated; and (4) the track coordinate of the newly-added point is calculated based on the point number n participated in the moving average value calculation of the newly-added point, the corresponding point coordinate and the newly-added point coordinate obtained in the step (1) according to a moving average value formula. Therefore, relatively high calculation efficiency for the track smoothening of the capacitive whiteboard can be realized.

Description

A kind of trajectory smoothing method for electric capacity blank and device thereof
Technical field
The present invention relates to electronic applications, refer in particular to a kind of trajectory smoothing method for electric capacity blank and device thereof.
Background technology
Smooth trajectory refers to that the coordinate points to composition movement locus of object carries out certain and revises, so that the smooth trajectory, mellow and full generated, meets the variation tendency of object of which movement.
Moving average method is smooth trajectory algorithm conventional in interactive display device, and its basic thought is newly-increased coordinate points to be averaged computing with coordinate points a certain number of on track, and using revised average coordinates as final trajectory coordinates.According to the difference counted participating in trajectory coordinates meansigma methods computing, moving average method can be divided into fixing counting to count two kinds with variable.The former adopts counting of a certain fixed number to carry out the calculating of trajectory coordinates from start to finish, and participating in that the computing of each newly-increased coordinate points counts is identical (unless counted when track just starts not);The latter participates in counting of mean value calculation according in good time the adjusting of a certain selected variable, the computing of the newly-increased point coordinates of participation is counted and is changed with the change of selected variable (such as, a certain product adopt speed as the variable determining that computing is counted, when the speed that object moves, adopt relatively low mean number value;When object translational speed is slower, adopt higher mean number value).The fixing moving average method logic counted is succinct, operation efficiency is high, and the variable moving average method counted can set computing flexibly according to the movement tendency of object and count;But, when for multi-point touch touch screen, the latter needs first to calculate the translational speed of multiple object, then could determine according to formula or rule and participate in counting of mean value calculation, and operand is relatively big, is not suitable for bottom layer realization;The former cannot distinguish between density degree and the variation tendency of coordinate points on track, loses ossifing.
Summary of the invention
For the problem that smooth effect is undesirable, operand is big existed in prior art, the present invention proposes smoothing method and the related device thereof of one " fixed area, restriction are counted ", the method and device thereof have operation efficiency height and smooth effect closer to actual feature, particularly as follows:
A kind of trajectory smoothing method for electric capacity blank, it is characterized in that, being provided with one for dynamically defining the numerical value D of a certain fixed area on screen and for storing the storage organization of existing tracing point coordinate in the system of application the method, the smoothing processing of newly-increased point is comprised the steps: by the method
Receive a newly-increased coordinate points of a certain track;
Last trajectory coordinates point of this track is read in storage organization;
Judge that the trajectory coordinates included in the fixed area determined by D and last trajectory coordinates point above-mentioned is counted or actual coordinate is counted n;
Based on participating in the n that counts, corresponding point coordinates and the newly-increased point coordinates that newly-increased some moving average calculates, calculate the trajectory coordinates of newly-increased point according to moving average formula.
Further: system is additionally provided with one and participates in, for limiting, the upper limit points N counted of coordinate that moving average calculates, there is also following determination step between step " determining that the trajectory coordinates included in fixed area is counted or actual coordinate is counted n " and step " calculate and increase locus of points coordinate newly ":
To count n and upper limit points N is made comparisons, if n < N, then what participate in that newly-increased some moving average calculates counts as Nx=n, otherwise Nx=N.
Further, there is also a trajectory matching step before step " reading newly-increased point coordinates ", this step includes following sub-step:
1. scanning sample obtains multiple newly-increased point coordinates;
2. judge whether each newly-increased point belongs to each existing track successively, be carry out coordinate and smooth;Otherwise set up storage organization, store this coordinate, then carry out coordinate and smooth.
Further: described upper limit points N is equal to or less than the number in described storage organization being every stored point coordinates of track.
Further, described fixed area is with final on trajectory for geometric center, with the D region determined for size.
Further, described fixed area is circular, square and triangle.
Further, when described fixed area be with final on trajectory be the center of circle circular time, using with the spacing in the center of circle less than or equal to D as judging whether the point in storage organization is positioned at the condition in this region.
Further, when described fixed area is square, point coordinates is used to be bound counting in fixed area: the newly-increased point coordinates of order is for (x, y), final on trajectory coordinate is (x0, y0);Then decision condition is: x0-D≤x≤x0+ D, y0-D≤y≤y0+D。
Further, adopt to calculate with the following method and be arranged in the track of this fixed area and count: the some inverted order successively on this track being stored in trajectory coordinates storage organization is judged, determine whether each point is positioned at this fixed area, it is count, until first not appearance of the point in region, finally give the satisfactory n that counts.
Further, the trajectory coordinates of newly-increased point is calculated by following formula;
X n + 1 = ( x n + 1 + X n - N x + 1 &prime; + X n - N x + 2 &prime; + &CenterDot; &CenterDot; &CenterDot; + X n &prime; ) ( N x + 1 )
Y n + 1 = ( y n + 1 + Y n - N x + 1 &prime; + Y n - N x + 2 &prime; + &CenterDot; &CenterDot; &CenterDot; + Y n &prime; ) ( N x + 1 )
Wherein: (Xn+1, Yn+1) it is the trajectory coordinates of newly-increased point after smooth treatment;(xn+1, yn+1) it is newly-increased some actual coordinate before smooth treatment;With capital X ', Y ' other coordinates represented for the trajectory coordinates being stored in storage organization or actual coordinate.
It is possible to further each coordinate points is set certain weights, the trajectory coordinates using weighted mean as newly-increased point:
X n + 1 = ( &lambda; n + 1 x n + 1 + &lambda; n - N x + 1 X n - N x + 1 &prime; + &lambda; n - N x + 2 X n - N x + 2 &prime; + &CenterDot; &CenterDot; &CenterDot; + &lambda; n X n &prime; ) ( N x + 1 )
Y n + 1 = ( &lambda; n + 1 y n + 1 + &lambda; n - N x + 1 Y n - N x + 1 &prime; + &lambda; n - N x + 2 Y n - N x + 2 &prime; + &CenterDot; &CenterDot; &CenterDot; + &lambda; n X n &prime; ) ( N x + 1 )
Wherein: (Xn+1, Yn+1) it is the trajectory coordinates of newly-increased point after smooth treatment;(xn+1, yn+1) it is newly-increased some actual coordinate before smooth treatment;With capital X ', Y ' other coordinates represented for the trajectory coordinates being stored in storage organization or actual coordinate;λiWeights for each coordinate points, it is preferred that be sequentially reduced in reverse order.
Further, the coordinate comprised in judgement, statistics fixed area is counted while n, also the point coordinates satisfied condition is sued for peace, and calculates the trajectory coordinates of newly-increased point according to moving average formula according to summed result.
Further, the span of described N is 5-30.
Further, the span of described numerical value D is 5mm-50mm.
It addition, present invention also offers the coordinate detection method of a kind of electric capacity blank, the method comprises the steps:
Gather touch data;
Judge whether the new point gathered belongs to existing a certain bar track, then this point is assigned on track belonging to it in this way;It not newly set up a storage organization for storing the point of this track;
According to the touch data gathered, the actual coordinate of these all touch points is taken turns doing smoothing processing according to any one smoothing method aforementioned and obtain corresponding trajectory coordinates;
Trajectory coordinates after described smoothing is plotted on track belonging to it, stores data.
Another aspect of the present invention, be in that to provide that the smooth trajectory device of a kind of electric capacity blank, this device include pre-setting in a system, for determining the dimension D of a certain dynamic fixed area on screen, and:
Receiver module, is connected with computing module and judge module, is used for receiving newly-increased coordinate points and track ID thereof;
Memory module, is connected with computing module and judge module, for storing the point coordinates of existing track on screen;
Judge module, it is connected with comparison module, read the coordinate points on D and track, according to order from back to front, judge in storage organization, whether the coordinate points of storage is positioned at the fixed area determined by D and final on trajectory successively, being count, until running into first not point in fixed area, finally obtaining the n and be positioned at n coordinate points of fixed area of counting being positioned at fixed area;
Computing module, based on newly-increased point coordinates, participates in count n and corresponding coordinate thereof that newly-increased some moving average calculates, calculates the trajectory coordinates of newly-increased point according to moving average formula.
Further, system also includes one and participates in, for limiting, the upper limit points N that the coordinate of coordinate figure calculating is counted, this device farther includes a comparison module: will determine that module obtains count n and upper limit points N is made comparisons, if n < N, then participate in counting as N of newly-increased some moving average calculatingx=n, otherwise Nx=N.
Further, in above-mentioned smooth trajectory device, while whether judge module point in judging storage organization is positioned at fixed area, also the coordinate points (being positioned at the point of fixed area) satisfied condition being sued for peace, computing module calculates the trajectory coordinates of newly-increased point according to summed result.
It addition, present invention also offers a kind of coordinate detecting device for electric capacity blank, including:
Touch data acquisition module, is connected with described judge module, is used for gathering touch data.
Path matching module, whether the point for judging new collection belongs to existing a certain bar track, if existing, being connected with smoothing module, if being absent from, setting up module with array and being connected;
Array sets up module, and one end is connected with described judge module, and the other end is connected with described smoothing module, for newly setting up a storage organization for storing the point of this track;
Smoothing module, one end is connected with described judge module, and the other end is connected with described drafting module, obtains corresponding trajectory coordinates for the actual coordinate of these all touch points being taken turns doing smoothing processing according to the touch data gathered;
Drafting module, is plotted in the trajectory coordinates after smooth on track belonging to it.
As can be seen from above, trajectory smoothing method for electric capacity blank provided by the invention and device thereof, by taking a little in a certain fixed area of trace end, it is possible to allow the trajectory coordinates obtained after smoothing processing more can reflect the current variation tendency of touching object;Count by arranging the upper limit participating in mean value calculation, it is possible to the computational efficiency making moving average is higher, thus the superiority being provided simultaneously with in prior art two schemes, overcome respective deficiency.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet in the embodiment of the present invention 1 for the detection of electric capacity whiteboard coordinates;
Fig. 2 is that the actual coordinate of touch point is done smoothing processing and obtains the schematic flow sheet of corresponding trajectory coordinates by the embodiment of the present invention;
Fig. 3 is the schematic diagram of embodiment of the present invention border circular areas;
Fig. 4 is the schematic diagram of embodiment of the present invention square region;
Fig. 5 is the schematic diagram of embodiment of the present invention delta-shaped region;
Fig. 6 is the present invention schematic flow sheet for another embodiment of trajectory smoothing method of electric capacity blank;
Fig. 7 is that the actual coordinate of touch point is done smoothing processing and obtains the schematic flow sheet of corresponding another embodiment of trajectory coordinates by the present invention;
Fig. 8 is the embodiment of the present invention high-level schematic functional block diagram for the smooth trajectory device of electric capacity blank;
Fig. 9 is the embodiment of the present invention high-level schematic functional block diagram for the coordinate detecting device of electric capacity blank.
Detailed description of the invention
For making the object, technical solutions and advantages of the present invention clearly understand, below in conjunction with specific embodiment, and with reference to accompanying drawing, the present invention is described in more detail.
Embodiment 1
Embodiments of the invention 1 are children education blank, and being mainly used in child drills the interactive teaching occasion such as plate, courseware displaying, and long length of side 2000mm, length-width ratio is 4:3, and systematic parameter is D=5mm, N=5mm.
Fig. 1 is the schematic flow sheet in the embodiment of the present invention 1 for the detection of electric capacity whiteboard coordinates.The described coordinate detection method for electric capacity blank includes step:
Step 101, gathers touch point.
Step 102, it is judged that whether the touch point collected belongs to the existing track of a certain bar, is be made directly step 103, otherwise first sets up storage organization and then perform step 103 again.
In all embodiments of the invention, trajectory coordinates refers to the coordinate after smoothing according to actual coordinate (sample coordinate).
The present embodiment adopts circular as fixed area, D value 5mm, N value 5, system stores actual coordinate and trajectory coordinates two sets of data: a[i][j]For storing the actual coordinate of each touch point, b[i][j]For storing the trajectory coordinates of each touch point.Such as, a[0][j]For storing the actual coordinate of Article 1 track, a[1][j]For storing the actual coordinate of Article 2 track, b[0][j]For storing the trajectory coordinates of Article 1 track, b[1][j]For storing the trajectory coordinates of Article 2 track.If newly-increased point belongs to a certain bar track, then it is made directly step 103, uses array a[1][j]Or b[1][j]The data of middle storage carry out the smooth of actual coordinate;If the first of track point (namely this point is the point on newly-increased track), then directly as trajectory coordinates and being stored corresponding data or first store and then carry out step 103 by the actual coordinate of this point, two kinds of method final results are identical.
Step 103, uses the data point of storage in storage organization that newly-increased point is done smoothing processing and obtains corresponding trajectory coordinates.
In the present embodiment, using actual coordinate that touch point is smoothed, smoothing process includes each step (for i-th track) shown in Fig. 2:
Step 201: last non vacuum data (namely last point on i-th track) of i-th track in reading actual coordinate two-dimensional array, for instance read the b in trajectory coordinates two-dimensional array[i-1][j]Last non vacuum data.
Step 202: calculate the track that includes in the fixed area determined by D and last trajectory coordinates point above-mentioned and count n.
Due to the fixed area in the present embodiment be with final on trajectory be the center of circle, with the D circle being radius, as shown in Figure 3, in border circular areas, the distance between arbitrfary point and terminal is both less than or equal to D, and on same plane with the terminal distance point less than or equal to D all in this border circular areas.Therefore the point whether condition in this region judging in storage organization storage is whether the distance between this point and final on trajectory is less than or equal to circular radius D.Inverted order judges and counts successively, until first not appearance of the point in this region, obtains the n that counts.Namely: the some inverted order successively (from last nearest from last non vacuum data described) on this track being stored in actual coordinate two-dimensional array is judged, finally gives the n that counts meeting determination requirement.It addition, this method is also applied for other embodiments.
Step 203: will count n and upper limit points N is made comparisons, if n < N, then what participate in that newly-increased some moving average calculates counts as Nx=n, otherwise Nx=N.
Step 204: according to newly-increased point coordinates, the points N participating in mean value calculationxAnd corresponding coordinate figure, carry out the calculating of tracing point moving average according to the following equation, the final trajectory coordinates obtaining newly-increased point.
X n + 1 = ( x n + 1 + x n - N x + 1 + x n - N x + 2 + &CenterDot; &CenterDot; &CenterDot; + x n ) ( N x + 1 )
Y n + 1 = ( y n + 1 + y n - N x + 1 + y n - N x + 2 + &CenterDot; &CenterDot; &CenterDot; + y n ) ( N x + 1 )
Wherein: (Xn+1, Yn+1) it is the newly-increased point coordinates (trajectory coordinates) after smooth treatment;(xn+1, yn+1) it is newly-increased some actual coordinate, other coordinates represented with lower case x, y each mean actual coordinate.It addition, this method is also applied for other embodiments.
Step 104, is plotted in the tracing point after smooth on track belonging to it, and trajectory coordinates is stored in storage organization.
In the present embodiment, upper limit points N is equal to maximum number of points (5) that set in system, that store for each track, in another embodiment of the present invention, described default upper limit points N might be less that maximum number of points that set in system, for each track storage, as rule, the span of N is preferably placed between 5-30.
Adopting circular as fixed area in the present embodiment, replace as routine or substantially deform, described fixed area can also be square, triangle or other figures.It should be noted that when fixed area is square, as shown in Figure 4, in square region, the distance between arbitrfary point and terminal is both less than or is equal toBut on same plane distance terminal less thanPoint be not necessarily all located in this region, it is therefore desirable to use coordinate figure to carry out whether coordinate points is positioned at defining of fixed area, it is assumed that actual point coordinates is that (x, y), terminal point coordinate is (x0, y0), then decision condition is: x0-D≤x≤x0+ D, y0-D≤y≤y0+D。
When fixed area is triangle, as shown in Figure 5, in delta-shaped region, the distance between arbitrfary point and terminal is both less than or equal to D, but same plane is not necessarily all located in this region from the terminal distance point less than or equal to D, therefore this triangle inscribed circle (less than or equal to 0.5D) or circumscribed circle (less than or equal to D, be equal to the circle that direct actionradius is D and be bound) can be adopted as fixed area.Preferably, it is also possible to use the territory, face defined by the straight line at three sides of a triangle place to judge, as it is shown in figure 5, the territory, face of dash area can be expressed as: l1>0andl2>0andl3< 0.The fixed area of other shapes can be imitated this and be defined.
The span of regular length D is preferably 5mm-50mm.
It addition, in the present invention, being carried out efficiency, the data having only to storage " nearest N number of point " in internal memory can realize the purpose of the present invention (namely a[i][j]And b[i][j]Columns be fixing, often increase a newly-increased point coordinates, just delete an existing point coordinates the earliest so that the data preserved in array are " nearest is N number of " all the time).Preferably, it is possible to realize the program with round-robin queue.Definition queue l[i][j]It is used for storing the coordinate points of touch operation, for instance l[2][9]Represent the 10th tracing point of track 3, queue l[2][i]In at present storage have l[2][0]To l[2][9]10 trajectory coordinates points altogether;When the 11st actual coordinate point produces, round-robin queue can add the 11st coordinate points to tail of the queue, automatically the 1st coordinate points of this track (track 3) " is squeezed out ", thus ensure that what store in queue is finally N number of (being 10 here) coordinate points of a certain track all the time.The concrete grammar realizing queue is referred to the textbook of Data Structure and Algorithm aspect, does not repeat at this.Alternatively, above-mentioned queue mechanism can be achieved by the mode of " array+pointer ".
Embodiment 2
Embodiment 1 uses actual coordinate (sample coordinate, the coordinate not being smoothed) calculate the trajectory coordinates increasing point newly, another change as the present invention, it is possible to use the calculating of trajectory coordinates (coordinate obtained after the actual coordinate smoothing processing) value that is averaged.Embodiments of the invention 2 are commercial affairs blanks, are mainly used in the displaying of publicity materials and product, and in size, length and width are all at more than 2000mm.Systematic parameter is D=50mm, N=30mm.And, consider hardware burden, this sets of data of storage track coordinate in system, namely, storage organization only stores the last N number of trajectory coordinates point on track, and adopt " queue " mechanism to carry out the renewal of coordinate points, the logic decision of fixed area, the track calculated in fixed area are counted and calculated the computing of newly-increased some moving average is all use trajectory coordinates, concrete steps as shown in Figure 6:
Step 601, gathers touch data.
Step 602, it is judged that whether the touch point collected belongs to the existing track of a certain bar, is be made directly step 603, otherwise first sets up storage organization and then perform step 603 again.
Step 603, uses the trajectory coordinates of storage in storage organization that newly-increased some actual coordinate is done smoothing processing, obtains corresponding trajectory coordinates.
In the present embodiment, the process that the actual coordinate of touch point does smoothing processing includes each step (for i-th track) as shown in Figure 7:
Step 701: last non vacuum data (namely last point on i-th track) of i-th track in reading queue.
Step 702: calculate the track that includes in the fixed area determined by D and last trajectory coordinates point above-mentioned and count n.
Step 703: will count n and upper limit points N is made comparisons, if n < N, then what participate in that newly-increased some moving average calculates counts as Nx=n, otherwise Nx=N;
Step 704: according to newly-increased point coordinates, the points N participating in mean value calculationxAnd corresponding tracing point coordinate figure, carry out the calculating of tracing point moving average according to following moving average formula, the final trajectory coordinates obtaining newly-increased point.
X n + 1 = ( x n + 1 + X n - N x + 1 + X n - N x + 2 + &CenterDot; &CenterDot; &CenterDot; + X n ) ( N x + 1 )
Y n + 1 = ( y n + 1 + Y n - N x + 1 + Y n - N x + 2 + &CenterDot; &CenterDot; &CenterDot; + Y n ) ( N x + 1 )
Wherein: (Xn+1, Yn+1) it is the trajectory coordinates of newly-increased point coordinates after smooth treatment;(xn+1, yn+1) it is newly-increased some actual coordinate before smooth treatment;Other each mean the trajectory coordinates being stored in queue with the coordinate that capital X, Y represent.It addition, this method is also applied for other embodiments.
Step 604, updates queue, then the trajectory coordinates after smooth is plotted on track belonging to it.
It should be noted that, embodiment 1 and 2 is simultaneously used fixed area and the upper limit is counted and counting of mean value calculation of participation has been screened, another kind of change as the present invention, only can also carry out, by fixed area, the screening counted, namely smoothing step no longer includes the n step compared with upper limit points N of being counted by the track in fixed area, but the track being directly included within fixed area is counted, n is as participating in counting of newly-increased some moving average calculating, for instance:
Step 201: read last tracing point on track;
Step 202: calculate the track that includes in the fixed area determined by D and last trajectory coordinates point above-mentioned and count n;
Step 204: according to newly-increased point coordinates, count n and the corresponding coordinate figure that participate in mean value calculation, carry out the calculating of tracing point moving average according to former mean values formula, the final trajectory coordinates obtaining newly-increased point.
In this case, system is that the track of each track storage is counted and can be arranged flexibly (such as the size of touching device and applied environment etc.) as the case may be.
It can further be stated that, count when n calculating the track that includes in the fixed area determined by D and final on trajectory, the point coordinates satisfied condition can also be sued for peace simultaneously, when first not in fixed area point out current, the result of accumulative summation is exactly the summation of corresponding with the n that counts, to be positioned at fixed area institute X-coordinate a little and Y coordinate, computing module and then calculate the trajectory coordinates of newly-increased according to summed result according to moving average formula.It addition, this method is also applied for other embodiments.
Consult shown in Fig. 8, the high-level schematic functional block diagram of the smooth trajectory device of electric capacity blank it is used for for the embodiment of the present invention 1 and 2, this device includes upper limit points N that pre-set in a system, that count for the dimension D and a coordinate calculated for limiting participation moving average determining a certain dynamic fixed area on screen, and:
Receiver module, is connected with computing module and judge module, is used for receiving newly-increased coordinate points;
Memory module, is connected with computing module and judge module, for storing the point coordinates (trajectory coordinates and/or actual coordinate) of existing track on screen;
Judge module, it is connected with comparison module, read the coordinate points on D and track, according to order from back to front, judge in storage organization, whether the coordinate points of storage is positioned at the fixed area determined by D and final on trajectory successively, being count, until running into first not point in fixed area, finally obtaining the n and be positioned at n coordinate points of fixed area of counting being positioned at fixed area;
Comparison module, will determine that module obtains count n and upper limit points N is made comparisons, if n < N, then what participate in that newly-increased some moving average calculates counts as Nx=n, otherwise Nx=N;
Computing module, based on newly-increased point coordinates, participates in count n and corresponding coordinate thereof that newly-increased some moving average calculates, calculates the trajectory coordinates of newly-increased point according to moving average formula.
Further, in above-mentioned smooth trajectory device, while whether judge module point in judging storage organization is positioned at fixed area, also the coordinate points (being positioned at the point of fixed area) satisfied condition being sued for peace, computing module calculates the trajectory coordinates of newly-increased point according to summed result.
Consulting shown in Fig. 9, be used for the high-level schematic functional block diagram of the coordinate detecting device of electric capacity blank for the embodiment of the present invention, the described coordinate detecting device for electric capacity blank includes:
Touch data acquisition module 901, is connected with judge module 902, is used for gathering touch data.
Path matching module 902, whether the point for judging new collection belongs to existing a certain bar track, if existing, being connected with smoothing module 903, if being absent from, setting up module 904 with array and being connected.
Array sets up module 904, and one end is connected with judge module 902, and the other end is connected with smoothing module 903, for newly setting up a storage organization for storing the point of this track.
Smoothing module 903, one end is connected with judge module 902, and the other end is connected with drafting module 904, obtains corresponding trajectory coordinates for the actual coordinate of these all touch points being taken turns doing smoothing processing according to the touch data gathered.
Drafting module 905, is plotted in the trajectory coordinates after smooth on track belonging to it.
In sum, trajectory smoothing method for electric capacity blank provided by the invention and device thereof, creatively propose the technical scheme of " fixed area, restriction are counted ", can determine automatically for different types of touch track and participate in counting of mean value calculation, the track making generation is more perfect, is more nearly reality;And, the present invention counts by arranging maximum upper limit, maintains higher operation efficiency, it is adaptable to the computing of physical layer;Further, adopt fixed area D to carry out participating in the adjustment counted of meansigma methods computing so that the value of number of data points can reflect the variation tendency of existing track, succinct and also efficiently;Finally, the whole described trajectory smoothing method for electric capacity blank and device thereof are easy, compact, it is easy to accomplish.
Additionally; those of ordinary skill in the field are it is understood that the foregoing is only specific embodiments of the invention; it is not limited to the present invention; method disclosed by the invention is also applied for the smooth trajectory of other class touch-control interactive products; such as infrared interactive touch-control large-size screen monitors, the mutual large-size screen monitors of electric capacity, infrared electronic white board, optical electron blank, electromagnetic electronic blank etc.; all within the spirit and principles in the present invention; any amendment of being made, equivalent replacement, improvement etc., should be included within protection scope of the present invention.

Claims (20)

1. the trajectory smoothing method for electric capacity blank, it is characterized in that, being provided with one in the system of application the method for dynamically defining the numerical value D of a certain fixed area on screen and for storing the storage organization of the point coordinates of existing track on screen, the smoothing processing of newly-increased point is comprised the steps: by the method
Read a newly-increased point coordinates of a certain track;
Last trajectory coordinates point of this track is read in storage organization;
Calculate the trajectory coordinates that includes in the fixed area determined by D and last trajectory coordinates point above-mentioned to count or actual coordinate is counted n;
Based on participate in the n that counts, corresponding point coordinates and step that newly-increased some moving average calculates (1) in the newly-increased point coordinates that obtains, calculate the trajectory coordinates of newly-increased point according to moving average formula.
2. the trajectory smoothing method for electric capacity blank according to claim 1, it is characterized in that, being additionally provided with one in system for limiting the upper limit points N counted of coordinate participating in meansigma methods computing, step " is determined that the trajectory coordinates included in fixed area is counted or actual coordinate is counted n " and be there is also a comparison step between step " calculate and increase locus of points coordinate newly ":
To count n and upper limit points N is made comparisons, if n < N, then what participate in that newly-increased some moving average calculates counts as Nx=n, otherwise Nx=N.
3. the trajectory smoothing method for electric capacity blank according to claim 2, it is characterised in that there is also a trajectory matching step before described smoothing processing, this step includes following sub-step:
1. scanning sample obtains multiple newly-increased point coordinates;
2. judge whether each newly-increased point belongs to each existing track successively, be then enter step (1);Otherwise set up storage organization, store this coordinate, subsequently into step (1).
4. method according to claim 2, it is characterised in that described upper limit points N is equal to or less than the number in described storage organization being every stored point coordinates of track.
5. method according to claim 2, it is characterised in that described fixed area is with final on trajectory for geometric center, is the region that size is determined for the numerical value D defining a certain dynamic area on screen.
6. method according to claim 5, it is characterised in that described fixed area is circular, square or triangle.
7. method according to claim 6, it is characterised in that when described fixed area be the center of circle with the terminal of track bowlder, using the distance between the center of circle less than or equal to D as judging whether the point in storage organization is positioned at the condition in this region.
8. method according to claim 6, it is characterised in that when described fixed area is square, use whether the point that coordinate figure judges in storage organization is positioned at fixed area, make the point coordinates in storage organization for (x, y), terminal point coordinate is (x0, y0);Then decision condition is: x0-D≤x≤x0+ D, y0-D≤y≤y0+D。
9. the method according to any one of claim 1-8, it is characterized in that, the coordinate that following method statistic is arranged in this fixed area is adopted to count: the some inverted order successively on this track being stored in storage organization is judged, determine whether each point is positioned at this fixed area, it is count, until first not appearance of the point in region, finally give the satisfactory n that counts.
10. the method according to any one of claim 1-8, it is characterised in that calculate the trajectory coordinates of newly-increased point according to the following formula:
X n + 1 = ( x n + 1 + X &prime; n - N x + 1 + X &prime; n - N x + 2 + . . . + X &prime; n ) ( N x + 1 )
Y n + 1 = ( y n + 1 + Y &prime; n - N x + 1 + Y &prime; n - N x + 2 + . . . + Y &prime; n ) ( N x + 1 )
Wherein: (Xn+1, Yn+1) it is the trajectory coordinates of newly-increased point coordinates after smooth treatment;(xn+1, yn+1) it is newly-increased some actual coordinate before smooth treatment;Other are with capital X ', Y ' coordinate represented for the trajectory coordinates being stored in storage organization or actual coordinate.
11. method according to claim 9, it is characterised in that calculate the trajectory coordinates of newly-increased point according to the following formula:
X n + 1 = ( x n + 1 + X &prime; n - N x + 1 + X &prime; n - N x + 2 + . . . + X &prime; n ) ( N x + 1 )
Y n + 1 = ( y n + 1 + Y &prime; n - N x + 1 + Y &prime; n - N x + 2 + . . . + Y &prime; n ) ( N x + 1 )
Wherein: (Xn+1, Yn+1) it is the trajectory coordinates of newly-increased point coordinates after smooth treatment;(xn+1, yn+1) it is newly-increased some actual coordinate before smooth treatment;Other are with capital X ', Y ' coordinate represented for the trajectory coordinates being stored in storage organization or actual coordinate.
12. method according to claim 11, it is characterised in that in formula, each coordinate points is arranged certain weights, the trajectory coordinates using weighted mean as newly-increased point:
X n + 1 = ( &lambda; n + 1 x n + 1 + &lambda; n - N x + 1 X n - N x + 1 &prime; + &lambda; n - N x + 2 X n - N x + 2 &prime; + . . . + &lambda; n X n &prime; ) ( N x + 1 )
Y n + 1 = ( &lambda; n + 1 y n + 1 + &lambda; n - N x + 1 Y n - N x + 1 &prime; + &lambda; n - N x + 2 Y n - N x + 2 &prime; + . . . + &lambda; n Y n &prime; ) ( N x + 1 )
Wherein: (Xn+1, Yn+1) it is the trajectory coordinates of newly-increased point after smooth treatment;(xn+1, yn+1) it is newly-increased some actual coordinate before smooth treatment;With capital X ', Y ' other coordinates represented for the trajectory coordinates being stored in storage organization or actual coordinate;λiFor the weights of each coordinate points, it is sequentially reduced in reverse order.
13. method according to claim 9, it is characterized in that, the coordinate comprised in judgement, statistics fixed area is counted while n, also the point coordinates satisfied condition is sued for peace, and calculates the trajectory coordinates of newly-increased point according to moving average formula according to summed result.
14. according to the method described in any one of claim 1-8, it is characterised in that the span of described N is 5-30.
15. according to the method described in any one of claim 1-8, it is characterised in that the span of described numerical value D is 5mm-50mm.
16. the coordinate detection method for electric capacity blank, it is characterised in that include step:
Gather touch data;
Judge whether the new point gathered belongs to existing a certain bar track, then this point is assigned on track belonging to it in this way;It not newly set up a storage organization for storing the point of this track;
According to the touch data gathered, the actual coordinate of these all touch points is taken turns doing smoothing processing by the method described in any one in claim 1 to 8 and obtain corresponding trajectory coordinates;
By described all smooth after trajectory coordinates be plotted on track belonging to it and store data.
17. the smooth trajectory device for electric capacity blank, it is characterised in that this device includes pre-setting in a system, for determining the dimension D of a certain dynamic fixed area on screen, and:
Receiver module, is connected with computing module and judge module, is used for receiving newly-increased coordinate points and track ID thereof;
Memory module, is connected with computing module and judge module, for storing the point coordinates of existing track on screen;
Judge module, it is connected with comparison module, read the coordinate points on D and track, according to order from back to front, judge in storage organization, whether the coordinate points of storage is positioned at the fixed area determined by D and final on trajectory successively, being count, until running into first not point in fixed area, finally obtaining the n and be positioned at n coordinate points of fixed area of counting being positioned at fixed area;
Computing module, based on newly-increased point coordinates, participates in count n and corresponding coordinate thereof that newly-increased some moving average calculates, calculates the trajectory coordinates of newly-increased point according to moving average formula.
18. the smooth trajectory device for electric capacity blank according to claim 17, it is characterised in that described device also includes for limiting upper limit points N and the comparison module that the coordinate participating in moving average calculating is counted;What this comparison module will determine that module obtains count n and upper limit points N are made comparisons, if n < N, then what participate in that newly-increased some moving average calculates counts as Nx=n, otherwise Nx=N.
19. the smooth trajectory device for electric capacity blank according to any one of claim 17 or 18, it is characterized in that, described judge module also has summation function, while statistics counts n, the point coordinates satisfied condition being sued for peace, computing module calculates the trajectory coordinates of newly-increased point according to summed result according to moving average formula.
20. the coordinate detecting device for electric capacity blank, it is characterised in that including:
Touch data acquisition module, is connected with described judge module, is used for gathering touch data.
Path matching module, whether the point for judging new collection belongs to existing a certain bar track, if existing, being connected with smoothing module, if being absent from, setting up module with array and being connected;
Array sets up module, and one end is connected with described judge module, and the other end is connected with described smoothing module, for newly setting up a storage organization for storing the point of this track;
Smoothing module, one end is connected with described judge module, and the other end is connected with described drafting module, obtains corresponding trajectory coordinates for the actual coordinate of these all touch points being taken turns doing smoothing processing according to the touch data gathered;
Drafting module, by described all smooth after trajectory coordinates be plotted on track belonging to it.
CN201410720439.1A 2014-12-01 2014-12-01 A kind of trajectory smoothing method and its device for capacitance blank Active CN105718122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410720439.1A CN105718122B (en) 2014-12-01 2014-12-01 A kind of trajectory smoothing method and its device for capacitance blank

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410720439.1A CN105718122B (en) 2014-12-01 2014-12-01 A kind of trajectory smoothing method and its device for capacitance blank

Publications (2)

Publication Number Publication Date
CN105718122A true CN105718122A (en) 2016-06-29
CN105718122B CN105718122B (en) 2018-08-21

Family

ID=56146305

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410720439.1A Active CN105718122B (en) 2014-12-01 2014-12-01 A kind of trajectory smoothing method and its device for capacitance blank

Country Status (1)

Country Link
CN (1) CN105718122B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109407882A (en) * 2018-09-13 2019-03-01 深圳市天英联合教育股份有限公司 The smooth method, apparatus of contact track, equipment and storage medium
TWI685771B (en) * 2018-09-19 2020-02-21 大陸商北京集創北方科技股份有限公司 Method for improving touch track smoothness of touch and display driving integrated system and touch display device using the same
CN112698773A (en) * 2020-12-29 2021-04-23 深圳市康冠商用科技有限公司 Track generation method based on display screen and related components thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5661502A (en) * 1996-02-16 1997-08-26 Ast Research, Inc. Self-adjusting digital filter for smoothing computer mouse movement
CN102937850A (en) * 2012-12-04 2013-02-20 上海合合信息科技发展有限公司 Method for beautifying handwriting in real time and electronic equipment
CN104123027A (en) * 2013-04-28 2014-10-29 北京汇冠新技术股份有限公司 Touch track smoothing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5661502A (en) * 1996-02-16 1997-08-26 Ast Research, Inc. Self-adjusting digital filter for smoothing computer mouse movement
CN102937850A (en) * 2012-12-04 2013-02-20 上海合合信息科技发展有限公司 Method for beautifying handwriting in real time and electronic equipment
CN104123027A (en) * 2013-04-28 2014-10-29 北京汇冠新技术股份有限公司 Touch track smoothing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109407882A (en) * 2018-09-13 2019-03-01 深圳市天英联合教育股份有限公司 The smooth method, apparatus of contact track, equipment and storage medium
TWI685771B (en) * 2018-09-19 2020-02-21 大陸商北京集創北方科技股份有限公司 Method for improving touch track smoothness of touch and display driving integrated system and touch display device using the same
CN112698773A (en) * 2020-12-29 2021-04-23 深圳市康冠商用科技有限公司 Track generation method based on display screen and related components thereof

Also Published As

Publication number Publication date
CN105718122B (en) 2018-08-21

Similar Documents

Publication Publication Date Title
CN102520849B (en) Electronic brush writing method and system
CN107710111B (en) Determining pitch angle for proximity sensitive interaction
CN109410242A (en) Method for tracking target, system, equipment and medium based on double-current convolutional neural networks
CN104516675B (en) The control method and electronic equipment of a kind of folding screen
CN102937850B (en) Method for beautifying handwriting in real time and electronic equipment
CN102541537B (en) Method and device for realizing menu container controls with surrounding effect
DE102010028983A1 (en) Two-dimensional touch sensors
CN103985137B (en) It is applied to the moving body track method and system of man-machine interaction
CN103310474A (en) Method and system for implementing original handwriting
CN104657133B (en) A kind of motivational techniques for single-time-window task in mobile intelligent perception
CN102999926B (en) A kind of image vision significance computational methods merged based on low-level image feature
CN105468279A (en) Touch screen operation identification method and device, touch screen operation response method and device, and game control method and device
CN102609682A (en) Feedback pedestrian detection method for region of interest
CN105718122A (en) Track smoothing method and apparatus for capacitive whiteboard
CN102141892B (en) Display method and system for overlaying handwritten input
Gribov et al. Local polynomials for data detrending and interpolation in the presence of barriers
CN101349956A (en) Method and apparatus for executing pattern touch order
CN103365541A (en) Window display method and terminal
CN107943365A (en) Rendering method, device, electronic equipment and the storage medium of lines person&#39;s handwriting
CN106774887A (en) A kind of non-contact gesture identifying device and recognition methods
CN104407752A (en) Pressure detecting method and equipment
CN110308658A (en) A kind of pid parameter setting method, device, system and readable storage medium storing program for executing
CN105117049B (en) Touch information transfer approach, processor and system
CN103472979B (en) Visualization method and system for data display based on scatter diagram
CN107976919A (en) A kind of Study of Intelligent Robot Control method, system and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: C1104 room 100085 Beijing city Haidian District Third Street No. 9 C

Applicant after: Hitevision Polytron Technologies Inc

Address before: C1104 room 100085 Beijing city Haidian District Third Street No. 9 C

Applicant before: HONGHE TECHNOLOGY CO., LTD.

GR01 Patent grant
GR01 Patent grant