CN105718122B - A kind of trajectory smoothing method and its device for capacitance blank - Google Patents

A kind of trajectory smoothing method and its device for capacitance blank Download PDF

Info

Publication number
CN105718122B
CN105718122B CN201410720439.1A CN201410720439A CN105718122B CN 105718122 B CN105718122 B CN 105718122B CN 201410720439 A CN201410720439 A CN 201410720439A CN 105718122 B CN105718122 B CN 105718122B
Authority
CN
China
Prior art keywords
point
newly
coordinate
points
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.)
Active
Application number
CN201410720439.1A
Other languages
Chinese (zh)
Other versions
CN105718122A (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.)
Hitevision Polytron Technologies Inc
Original Assignee
Hitevision Polytron Technologies Inc
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 Hitevision Polytron Technologies Inc filed Critical Hitevision Polytron Technologies Inc
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 kind of trajectory smoothing method and its device for capacitance blank, a numerical value D for defining a certain dynamic area on screen is set first, and then executes following steps in system:(1) a newly-increased point coordinates of certain track is obtained by sampling;(2) the last one trajectory coordinates point of the track is read from storage organization;If newly-increased coordinate points are first points of the track, storage organization is established, the point coordinates is stored and using the coordinate value as the trajectory coordinates after smoothly;(3) the track points n for including in the fixed area confined by D and the last one above-mentioned trajectory coordinates point is calculated;(4), based on the newly-increased point coordinates obtained in participating in increasing newly points n, corresponding point coordinates and the step of moving average calculating (1), newly-increased trajectory coordinates are calculated according to moving average formula.Therefore, the present invention can make the smooth trajectory of capacitance blank keep higher operation efficiency.

Description

A kind of trajectory smoothing method and its device for capacitance blank
Technical field
The present invention relates to electronic fields, refer in particular to a kind of trajectory smoothing method and its device for capacitance blank.
Background technology
Smooth trajectory refers to carrying out certain amendment to the coordinate points for forming movement locus of object, so that the track generated is flat It is sliding, mellow and full, meet the variation tendency of object of which movement.
The method of moving average is that common smooth trajectory algorithm, basic thought are on track one in interactive display device The coordinate points for determining number carry out average calculating operation to newly-increased coordinate points, and are sat revised average coordinates as final track Mark.According to the difference for the points for participating in trajectory coordinates average value operation, the method for moving average can be divided into fixed points and variable points Two kinds.The former carries out the calculating of trajectory coordinates using the points of a certain fixed number from beginning to end, participates in each newly-increased coordinate The operation points of point are all identical (unless it are inadequate to count when track just starts);The latter is then in due course according to a certain selected variable Adjustment participate in mean value calculation points, participate in increase newly point coordinates operation points changes with the variation of selected variable (for example, being used when the speed of object movement as the variable for determining operation points using speed in a certain product Lower mean number value;When object movement speed is slower, using higher mean number value).The movement of fixed points is flat Equal method logic is succinct, operation efficiency is high, and the method for moving average of variable points can flexibly be set according to the movement tendency of object Operation is counted;But when for multi-point touch touch screen, the latter needs to calculate the movement speed of multiple objects first, then The points for participating in mean value calculation could be determined according to formula or rule, operand is larger, is not suitable for bottom layer realization;The former is not The density degree and variation tendency of coordinate points on track can be distinguished, ossify is lost.
Invention content
The problem undesirable for smooth effect existing in the prior art, operand is big, the present invention propose it is a kind of " Gu Determine region, limitation points " smoothing method and its related device, this method and its device have operation efficiency high and smooth effect Fruit is closer to practical feature, specially:
A kind of trajectory smoothing method for capacitance blank, which is characterized in that using being provided with one in the system of this method A numerical value D for dynamically defining a certain fixed area on screen and the storage organization for storing existing track point coordinates, This method includes the following steps the smoothing processing of newly-increased point:
Receive a newly-increased coordinate points of a certain track;
The last one trajectory coordinates point of the track is read from storage organization;
Judge the trajectory coordinates for including in the fixed area determined by D and the last one above-mentioned trajectory coordinates point points or Actual coordinate points n;
Based on points n, corresponding point coordinates and the newly-increased point coordinates for participating in newly-increased point moving average calculating, according to shifting Dynamic Mean Value Formulas calculates the trajectory coordinates of newly-increased point.
Further:For limiting the upper limit for participating in the coordinate points that moving average calculates there are one being also set up in system Points N, step " determining the trajectory coordinates points for including in fixed area or actual coordinate points n " and step " calculate and increase point newly There is also following determination steps between trajectory coordinates ":
Points n and upper limit points N are made comparisons, if n<N, then it is N to participate in the points that newly-increased point moving average calculatesx =n, otherwise Nx=N.
Further, there is also a trajectory matching step before step " read and increase point coordinates newly ", which includes Following sub-step:
1. scanning sample obtains multiple newly-increased point coordinates;
It is that it is smooth to carry out coordinate 2. judging whether each newly-increased point belongs to the existing track of each successively;Otherwise it builds Vertical storage organization stores the coordinate, and it is smooth then to carry out coordinate.
Further:The upper limit points N is equal to or less than in the storage organization is sat by the point that every track stores Target number.
Further, the fixed area is a region being determined as size using D using final on trajectory as geometric center.
Further, the fixed area is round, rectangular and triangle.
Further, small with distance between the center of circle when the fixed area is using final on trajectory as the circle in the center of circle In or equal to D as the point judged in storage organization whether be located at this region in condition.
Further, when the fixed area is rectangular, the points that are bound using point coordinates in fixed area:It enables Newly-increased point coordinates is (x, y), and final on trajectory coordinate is (x0, y0);Then decision condition is:x0-D≤x≤x0+ D, y0-D≤y≤y0+ D。
Further, the track points being located in the fixed area are calculated with the following method:To being stored in trajectory coordinates Inverted order is judged the point on this track in storage organization successively, determines whether each point is located in the fixed area, It is to count, until first point not in region occurs, finally obtains satisfactory points n.
Further, the trajectory coordinates of point are increased newly according to the following formula;
Wherein:(Xn+1, Yn+1) be newly-increased point after smooth treatment trajectory coordinates;(xn+1, yn+1) be smooth treatment before Newly-increased point actual coordinate;It is the trajectory coordinates or reality being stored in storage organization with capital X ', Y ' other coordinates indicated Border coordinate.
It is possible to further which each coordinate points are set with certain weights, using weighted average as the track of newly-increased point Coordinate:
Wherein:(Xn+1, Yn+1) be newly-increased point after smooth treatment trajectory coordinates;(xn+1, yn+1) be smooth treatment before Newly-increased point actual coordinate;It is the trajectory coordinates or reality being stored in storage organization with capital X ', Y ' other coordinates indicated Border coordinate;λiFor the weights of each coordinate points, it is preferred that be sequentially reduced in reverse order.
Further, while the coordinate for judging, being included in statistics fixed area counts n, also to meeting condition Point coordinates is summed, and calculates the trajectory coordinates of newly-increased point according to moving average formula according to summed result.
Further, the value range of the N is 5-30.
Further, the value range of the numerical value D is 5mm-50mm.
In addition, the present invention also provides a kind of coordinate detection method of capacitance blank, this method comprises the following steps:
Acquire touch data;
Judge whether freshly harvested point belongs to a certain existing track, the point is then assigned to its affiliated track in this way On;It is not the point for newly establishing a storage organization for storing the track;
According to the touch data of acquisition by the actual coordinate of all touch points according to aforementioned any smoothing method successively It does smoothing processing and obtains corresponding trajectory coordinates;
By it is described it is smooth after trajectory coordinates be plotted on its affiliated track, store data.
Another aspect of the present invention is to provide a kind of smooth trajectory device of capacitance blank, which is including one Dimension D pre-set in system, for determining a certain dynamic fixed area on screen, and:
Receiving module is connected with computing module and judgment module, for receiving newly-increased coordinate points and its track ID;
Memory module is connected with computing module and judgment module, for storing the point coordinates for having track on screen;
Judgment module is connected with comparison module, reads the coordinate points on D and track, according to order from back to front, successively Judge whether the coordinate points stored in storage organization are located in the fixed area determined by D and final on trajectory, is to count, until First point not in fixed area is encountered, the points n and n in fixed area in fixed area is finally obtained A coordinate points;
Computing module based on newly-increased point coordinates, participates in points n and its corresponding coordinate that newly-increased point moving average calculates, The trajectory coordinates of newly-increased point are calculated according to moving average formula.
Further, in system further include a upper limit points N for limiting the coordinate points for participating in coordinate value calculating, The device further comprises a comparison module:It will determine that points n that module obtains and upper limit points N make comparisons, if n<N, It is N then to participate in the points that newly-increased point moving average calculatesx=n, otherwise Nx=N.
Further, in above-mentioned smooth trajectory device, whether point of the judgment module in judging storage organization, which is located at, is fixed It while in region, also sums to the coordinate points (be located at fixed area in point) for meeting condition, computing module is according to asking The trajectory coordinates of newly-increased point are calculated with result.
In addition, the present invention also provides a kind of coordinate detecting devices for capacitance blank, including:
Touch data acquisition module is connect with the judgment module, for acquiring touch data.
Path matching module, for judging whether freshly harvested point belongs to a certain existing track, if in the presence of if with it is flat Sliding processing module connection, connect if establishing module with array there is no if;
Array establishes module, and one end is connect with the judgment module, and the other end is connect with the smoothing module, is used for The new point for establishing a storage organization for storing the track;
Smoothing module, one end are connect with the judgment module, and the other end is connect with the drafting module, are used for basis The actual coordinate of all touch points is taken turns doing smoothing processing and obtains corresponding trajectory coordinates by the touch data of acquisition;
Drafting module, will it is smooth after trajectory coordinates be plotted on its affiliated track.
From the above it can be seen that provided by the present invention for the trajectory smoothing method and its device of capacitance blank, lead to It crosses in a certain fixed area of trace end and takes a little, can allow after smoothing processing obtained trajectory coordinates that can more reflect touch objects The current variation tendency of body;The upper limit points that mean value calculation is participated in by setting, can make the computational efficiency of moving average Higher overcomes respective deficiency to be provided simultaneously with the superiority of two schemes in the prior art.
Description of the drawings
Fig. 1 is the flow diagram for the detection of capacitance whiteboard coordinates in the embodiment of the present invention 1;
The actual coordinate of touch point is done smoothing processing for the embodiment of the present invention and obtains the stream of corresponding trajectory coordinates by Fig. 2 Journey schematic diagram;
Fig. 3 is the schematic diagram of border circular areas of the embodiment of the present invention;
Fig. 4 is the schematic diagram of square region of the embodiment of the present invention;
Fig. 5 is the schematic diagram of delta-shaped region of the embodiment of the present invention;
Fig. 6 is flow diagram of the present invention for another embodiment of trajectory smoothing method of capacitance blank;
The actual coordinate of touch point is done smoothing processing for the present invention and obtains another embodiment of corresponding trajectory coordinates by Fig. 7 Flow diagram;
Fig. 8 is high-level schematic functional block diagram of the embodiment of the present invention for the smooth trajectory device of capacitance blank;
Fig. 9 is high-level schematic functional block diagram of the embodiment of the present invention for the coordinate detecting device of capacitance blank.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with specific embodiment, and reference Attached drawing, the present invention is described in more detail.
Embodiment 1
The embodiment of the present invention 1 is children education blank, is mainly used for children and drills the interactive teachings occasions such as plate, courseware displaying, long Length of side 2000mm, length-width ratio 4:3, systematic parameter D=5mm, N=5mm.
Fig. 1 is the flow diagram for the detection of capacitance whiteboard coordinates in the embodiment of the present invention 1.It is described to be used for capacitance blank Coordinate detection method include step:
Step 101, touch point is acquired.
Step 102, judge whether collected touch point belongs to a certain item and have track, be directly to carry out step 103, Otherwise it first establishes storage organization and then executes step 103 again.
In all embodiments of the invention, trajectory coordinates refer to the coordinate after smooth according to actual coordinate (sample coordinate).
Be used as fixed area using round in the present embodiment, D values 5mm, N value 5, store in system actual coordinate and Two sets of data of trajectory coordinates:a[i][j]Actual coordinate for storing each touch point, b[i][j]For storing each touch point Trajectory coordinates.For example, a[0][j]Actual coordinate for storing first track, a[1][j]Reality for storing Article 2 track Coordinate, b[0][j]Trajectory coordinates for storing first track, b[1][j]Trajectory coordinates for storing Article 2 track.If Newly-increased point belongs to a certain track, then directly carries out step 103, use array a[1][j]Or b[1][j]The data of middle storage carry out real Border coordinate it is smooth;If it is first point (namely the point is the point on newly-increased track) of track, then directly by the reality of the point Border coordinate is as trajectory coordinates and stores corresponding data or first stores and then carry out step 103, and two methods most terminate Fruit is identical.
Step 103, smoothing processing is done to newly-increased point using the data point stored in storage organization and obtains corresponding track Coordinate.
In the present embodiment, touch point is smoothed using actual coordinate, smoothing process includes shown in Fig. 2 each A step (by taking i-th track as an example):
Step 201:Read the last one non vacuum data (namely i-th of i-th track in actual coordinate two-dimensional array The last one point on track), such as read the b in trajectory coordinates two-dimensional array[i-1][j]The last one non vacuum data.
Step 202:Calculate the tracing point for including in the fixed area determined by D and the last one above-mentioned trajectory coordinates point Number n.
By fixed area in this present embodiment be using final on trajectory as the center of circle, using D as the circle of radius, as shown in figure 3, circle The distance between arbitrary point and terminal are both less than or equal to D in shape region, and are less than or equal to D with terminal distance on same plane Point all in the border circular areas.Therefore judge condition that whether point stored in storage organization is located in the region for the point and Whether the distance between final on trajectory is less than or equal to circular radius D.Inverted order judges and counts successively, up to first at this Point in region occurs, and obtains points n.Namely:To being stored in the point on this track in actual coordinate two-dimensional array successively Inverted order judged (since last nearest from the last one described non vacuum data), is finally obtained and is met judgement and want The points n asked.In addition, this method is also applied for other embodiment.
Step 203:Points n and upper limit points N are made comparisons, if n<N then participates in what newly-increased point moving average calculated Points are Nx=n, otherwise Nx=N.
Step 204:According to newly-increased point coordinates, the points N of participation mean value calculationxAnd corresponding coordinate value, under State the calculating that formula carries out tracing point moving average, the final trajectory coordinates for obtaining newly-increased point.
Wherein:(Xn+1, Yn+1) it is newly-increased point coordinates (trajectory coordinates) after smooth treatment;(xn+1, yn+1) it is that newly-increased point is real Border coordinate, other each mean actual coordinate with lowercase x, y coordinate indicated.In addition, this method is also applied for other realities Apply example.
Step 104, the tracing point after will be smooth is plotted on its affiliated track, and trajectory coordinates are stored in storage organization In.
In the present embodiment, upper limit points N is equal to maximum number of points (5) being set in system, being stored for each track, In an alternative embodiment of the invention, the preset upper limit points N might be less that it is being set in system, be each track The maximum number of points of storage, as rule, the value range of N is preferably placed between 5-30.
It is used as fixed area using round in the present embodiment, as conventional replacement or apparent deformation, the fixed area is also Can be rectangular, triangle or other figures.It should be noted that when fixed area is rectangular, as shown in figure 4, squared region The distance between arbitrary point and terminal are both less than or are equal in domainBut it is less than apart from terminal on same planePoint It is not necessarily all located in the region, it is therefore desirable to carry out whether coordinate points are located at defining in fixed area using coordinate value, it is false If actual point coordinates is (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, the distance between arbitrary point and terminal are all small in delta-shaped region In or be equal to D, but the point for being less than or equal to D on same plane from terminal with a distance from is not necessarily all located in the region, therefore can be with D (is less than or equal to, it is D to be equal to direct actionradius using the triangle inscribed circle (being less than or equal to 0.5D) or circumscribed circle Circle be bound) be used as fixed area.Preferably, it can also use and to be defined as the straight line where three sides of a triangle Face domain is judged, as shown in figure 5, the face domain of dash area can be expressed as:l1>0 and l2>0 and l3<0.Other The fixed area of shape can imitate this and define.
The value range of regular length D is preferably 5mm-50mm.
In addition, in the present invention, being carried out for efficiency, the data of storage " nearest N number of point " are only needed in memory Achieve the object of the present invention (namely a[i][j]And b[i][j]Columns be fixed, as soon as often increase a newly-increased point coordinates, deletion one A earliest existing point coordinates so that the data preserved in array are " nearest is N number of " always).Preferably, cycle team can be used It arranges to realize the program.Define queue l[i][j]For storing the coordinate points of touch operation, such as l[2][9]Indicate the 10th of track 3 A tracing point, queue l[2][i]In be stored with l at present[2][0]To l[2][9]10 trajectory coordinates points altogether;When the 11st actual coordinate When point generates, the 11st coordinate points can be added to tail of the queue by round-robin queue, the 1st seat of automatic " squeezing out " track (track 3) Punctuate, to ensure that is stored in queue is last N number of (being 10 here) coordinate points of a certain track always.Realize queue Specific method can refer to Data Structure and Algorithm in terms of textbook, this will not be repeated here.Optionally, above-mentioned queue mechanism can It is achieved in a manner of by " array+pointer ".
Embodiment 2
The track of newly-increased point is calculated in embodiment 1 using actual coordinate (sample coordinate, the coordinate not being smoothed) Coordinate can also use trajectory coordinates (coordinate obtained after actual coordinate smoothing processing) as another variation of the present invention Carry out the calculating of average value.The embodiment of the present invention 2 is commercial blank, is mainly used for the displaying of publicity materials and product, size Upper length and width are all in 2000mm or more.Systematic parameter is D=50mm, N=30mm.Also, it considers hardware burden, is only deposited in system This sets of data of storage trajectory coordinates, that is, only storing last N number of trajectory coordinates point on track in storage organization, and uses " queue " mechanism carries out the update of coordinate points, and the logic decision of fixed area calculates the track points in fixed area and counts The operation for calculating newly-increased point moving average is to use trajectory coordinates, specific steps as shown in Figure 6:
Step 601, touch data is acquired.
Step 602, judge whether collected touch point belongs to a certain item and have track, be directly to carry out step 603, Otherwise it first establishes storage organization and then executes step 603 again.
Step 603, smoothing processing is done to newly-increased point actual coordinate using the trajectory coordinates stored in storage organization, obtains phase Corresponding trajectory coordinates.
In the present embodiment, the process for smoothing processing being done to the actual coordinate of touch point includes each step as shown in Figure 7 Suddenly (by taking i-th track as an example):
Step 701:The last one non vacuum data for reading i-th track in queue is (namely last on i-th track One point).
Step 702:Calculate the tracing point for including in the fixed area determined by D and the last one above-mentioned trajectory coordinates point Number n.
Step 703:Points n and upper limit points N are made comparisons, if n<N then participates in what newly-increased point moving average calculated Points are Nx=n, otherwise Nx=N;
Step 704:According to newly-increased point coordinates, the points N of participation mean value calculationxAnd corresponding tracing point coordinate value, The calculating of tracing point moving average, the final trajectory coordinates for obtaining newly-increased point are carried out according to following moving average formula.
Wherein:(Xn+1, Yn+1) be newly-increased point coordinates after smooth treatment trajectory coordinates;(xn+1, yn+1) it is smooth treatment Newly-increased preceding actual coordinate;Other each mean the trajectory coordinates of storage in the queue with capital X, the Y coordinate indicated.Separately Outside, this method is also applied for other embodiment.
Step 604, update queue, then will it is smooth after trajectory coordinates be plotted on its affiliated track.
It should be strongly noted that having used fixed area and the upper limit to count to participating in average value simultaneously in Examples 1 and 2 The points of calculating are screened, as another variation of the present invention, the screening that can also be only counted with fixed area, No longer include the steps that being compared the track points n in fixed area with upper limit points N in smoothing step, but it is direct The points that the track points n being included in fixed area is calculated as the newly-increased point moving average of participation, such as:
Step 201:Read the last one tracing point on track;
Step 202:Calculate the tracing point for including in the fixed area determined by D and the last one above-mentioned trajectory coordinates point Number n;
Step 204:According to newly-increased point coordinates, the points n of mean value calculation and corresponding coordinate value are participated in, according to aforementioned Mean Value Formulas carries out the calculating of tracing point moving average, the final trajectory coordinates for obtaining newly-increased point.
In this case, system is that the track points of each track storage can (such as touching device as the case may be Size and application environment etc.) flexibly setting.
It should also be noted that, calculating the track points n for including in the fixed area determined by D and final on trajectory When, it can also sum to the point coordinates for meeting condition, when first pointing out now not in fixed area, tire out simultaneously The result of meter summation is exactly and the summation of the X-coordinate and Y coordinate of corresponding, in fixed area all the points of the n that count to count It calculates module and then calculates the trajectory coordinates of newly-increased point according to moving average formula according to summed result.In addition, this method Suitable for other embodiment.
As shown in fig.8, the function module for the embodiment of the present invention 1 and 2 for the smooth trajectory device of capacitance blank is shown Be intended to, the device include in a system it is pre-set, for determine on screen the dimension D of a certain dynamic fixed area and One upper limit points N that the coordinate points that moving average calculates are participated in for limiting, and:
Receiving module is connected with computing module and judgment module, for receiving newly-increased coordinate points;
Memory module is connected with computing module and judgment module, for storing the point coordinates (track for having track on screen Coordinate and/or actual coordinate);
Judgment module is connected with comparison module, reads the coordinate points on D and track, according to order from back to front, successively Judge whether the coordinate points stored in storage organization are located in the fixed area determined by D and final on trajectory, is to count, until First point not in fixed area is encountered, the points n and n in fixed area in fixed area is finally obtained A coordinate points;
Comparison module will determine that points n that module obtains and upper limit points N make comparisons, if n<N then participates in increasing point newly The points that moving average calculates are Nx=n, otherwise Nx=N;
Computing module based on newly-increased point coordinates, participates in points n and its corresponding coordinate that newly-increased point moving average calculates, The trajectory coordinates of newly-increased point are calculated according to moving average formula.
Further, in above-mentioned smooth trajectory device, it is solid whether point of the judgment module in judging storage organization is located at While determining in region, also sum to the coordinate points (be located at fixed area in point) for meeting condition, computing module according to Summed result calculates the trajectory coordinates of newly-increased point.
As shown in fig.9, the high-level schematic functional block diagram for the embodiment of the present invention for the coordinate detecting device of capacitance blank, The coordinate detecting device for capacitance blank includes:
Touch data acquisition module 901 is connect with judgment module 902, for acquiring touch data.
Path matching module 902, for judging whether freshly harvested point belongs to a certain existing track, if in the presence of if with Smoothing module 903 connects, and is connect if establishing module 904 with array there is no if.
Array establishes module 904, and one end is connect with judgment module 902, and the other end is connect with smoothing module 903, uses In newly establishing a storage organization for storing the point of the track.
Smoothing module 903, one end are connect with judgment module 902, and the other end is connect with drafting module 904, are used for root The actual coordinate of all touch points is taken turns doing into smoothing processing according to the touch data of acquisition and obtains corresponding trajectory coordinates.
Drafting module 905, will it is smooth after trajectory coordinates be plotted on its affiliated track.
In conclusion provided by the present invention for the trajectory smoothing method and its device of capacitance blank, creatively propose The technical solution of " fixed area, limitation points ", can be directed to different types of touch track and automatically determine and participate in average value The points of calculating keep the track of generation more perfect, are more nearly reality;Moreover, the present invention is counted by the way that maximum upper limit is arranged, Higher operation efficiency is maintained, the operation of physical layer is suitable for;Also, it carries out participating in average value operation using fixed area D Points adjustment so that the value of data points can reflect the variation tendency of existing track, succinct and efficiently;Finally, The entire trajectory smoothing method and its device for capacitance blank is easy, compact, it is easy to accomplish.
In addition, those of ordinary skills in the art should understand that:Above is only a specific embodiment of the present invention and , it being not intended to restrict the invention, method disclosed by the invention is also applied for the smooth trajectory of other class touch-control interactive products, than Such as infrared interactive touch-control large-size screen monitors, capacitance interaction large-size screen monitors, infrared electronic white board, optical electron blank, electromagnetic electronic blank, All within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should be included in the present invention's Within protection domain.

Claims (20)

1. a kind of trajectory smoothing method for capacitance blank, which is characterized in that using there are one settings in the system of this method Numerical value D for dynamically defining a certain fixed area on screen and the storage for storing the point coordinates for having track on screen Structure, this method include the following steps the smoothing processing of newly-increased point:
Read a newly-increased point coordinates of a certain track;
The last one trajectory coordinates point of the track is read from storage organization;
Calculate the trajectory coordinates points or practical for including in the fixed area determined by D and the last one above-mentioned trajectory coordinates point Coordinate points n;
Based on points n, corresponding point coordinates and the newly-increased point coordinates for participating in newly-increased point moving average calculating, according to shifting Dynamic Mean Value Formulas calculates the trajectory coordinates of newly-increased point.
2. the trajectory smoothing method according to claim 1 for capacitance blank, which is characterized in that be additionally provided in system One upper limit points N for limiting the coordinate points for participating in average value operation, step " determine the track for including in fixed area Coordinate is counted or actual coordinate is counted, and there is also a comparison steps between n " and step " calculate and increase locus of points coordinate newly ":
Points n and upper limit points N are made comparisons, if n<N, then it is N to participate in the points that newly-increased point moving average calculatesx=n, Otherwise Nx=N.
3. the trajectory smoothing method according to claim 2 for capacitance blank, which is characterized in that in the smoothing processing Before there is also a trajectory matching step, which includes following sub-step:
1. scanning sample obtains multiple newly-increased point coordinates;
It is to enter step (1) 2. judging whether each newly-increased point belongs to the existing track of each successively;Otherwise storage is established Structure stores the coordinate, (1) subsequently into step.
4. according to the method described in claim 2, it is characterized in that, the upper limit points N is equal to or less than the storage organization In the number of point coordinates that is stored by every track.
5. according to the method described in claim 2, it is characterized in that, the fixed area be using final on trajectory as geometric center, Numerical value D for defining a certain dynamic area on screen is the region that size determines.
6. according to the method described in claim 5, it is characterized in that, the fixed area is circular, square or triangle.
7. according to the method described in claim 6, it is characterized in that, when the fixed area is using the terminal of track as the center of circle Bowlder, using with the distance between the center of circle be less than or equal to D as the point judged in storage organization whether the item in this region Part.
8. according to the method described in claim 6, it is characterized in that, when the fixed area is rectangular, sentenced using coordinate value Whether the point in disconnected storage organization is located in fixed area, and it is (x, y) to enable the point coordinates in storage organization, and terminal point coordinate is (x0, y0);Then decision condition is:x0-D≤x≤x0+ D, y0-D≤y≤y0+D。
9. according to claim 1-8 any one of them methods, which is characterized in that statistics is located at the fixed area with the following method Coordinate points in domain:To the point on the track that is stored in storage organization, inverted order judges successively, determines each point Whether it is located in the fixed area, is to count, until first point not in region occurs, finally obtains satisfactory Count n.
10. according to claim 1-8 any one of them methods, which is characterized in that calculate the rail of newly-increased point according to the following formula Mark coordinate:
Wherein:(Xn+1, Yn+1) be newly-increased point coordinates after smooth treatment trajectory coordinates;(xn+1, yn+1) be smooth treatment before Newly-increased point actual coordinate;Other are the trajectory coordinates or reality being stored in storage organization with capital X ', Y the ' coordinate indicated Border coordinate.
11. according to the method described in claim 9, it is characterized in that, calculating the trajectory coordinates of newly-increased point according to the following formula:
Wherein:(Xn+1, Yn+1) be newly-increased point coordinates after smooth treatment trajectory coordinates;(xn+1, yn+1) be smooth treatment before Newly-increased point actual coordinate;Other are the trajectory coordinates or reality being stored in storage organization with capital X ', Y the ' coordinate indicated Border coordinate.
12. according to the method for claim 11, which is characterized in that in formula each coordinate points are arranged with certain weights, Using weighted average as the trajectory coordinates of newly-increased point:
Wherein:(Xn+1, Yn+1) be newly-increased point after smooth treatment trajectory coordinates;(xn+1, yn+1) it is newly-increased before smooth treatment Point actual coordinate;It is the trajectory coordinates being stored in storage organization or practical seat with capital X ', Y ' other coordinates indicated Mark;λiFor the weights of each coordinate points, it is sequentially reduced in reverse order.
13. according to the method described in claim 9, it is characterized in that, in the coordinate points for judging, being included in statistics fixed area It while number n, also sums to the point coordinates for meeting condition, is calculated and increased newly according to moving average formula according to summed result The trajectory coordinates of point.
14. according to claim 2-8 any one of them methods, which is characterized in that the value range of the N is 5-30.
15. according to claim 1-8 any one of them methods, which is characterized in that the value range of the numerical value D is 5mm- 50mm。
16. a kind of coordinate detection method for capacitance blank, which is characterized in that including step:
Acquire touch data;
Judge whether freshly harvested point belongs to existing a certain track, then the point is assigned on its affiliated track in this way;It is not Then newly establish point of the storage organization for storing the track;
According to the touch data of acquisition by the actual coordinate of all freshly harvested points by any one of claim 1 to 8 institute The method stated takes turns doing smoothing processing and obtains corresponding trajectory coordinates;
By it is described it is all it is smooth after trajectory coordinates be plotted on its affiliated track and store data.
17. a kind of smooth trajectory device for capacitance blank, which is characterized in that the device includes being pre-set in a system , dimension D for determining a certain dynamic fixed area on screen, and:
Receiving module is connected with computing module and judgment module, for receiving newly-increased coordinate points and its track ID;
Memory module is connected with computing module and judgment module, for storing the point coordinates for having track on screen;
Judgment module is connected with comparison module, and the coordinate points read on D and track judge successively according to order from back to front Whether the coordinate points stored in storage organization are located in the fixed area determined by D and final on trajectory, are to count, until encountering First point not in fixed area finally obtains the points n in fixed area and the n seat in fixed area Punctuate;
Computing module based on newly-increased point coordinates, participates in points n and its corresponding coordinate that newly-increased point moving average calculates, according to Moving average formula calculates the trajectory coordinates of newly-increased point.
18. the smooth trajectory device according to claim 17 for capacitance blank, which is characterized in that described device is also wrapped One is included for limiting the upper limit points N and a comparison module that participate in the coordinate points that moving average calculates;This compares Module will determine that the points n that module obtains and upper limit points N make comparisons, if n<N then participates in newly-increased point moving average and calculates Points be Nx=n, otherwise Nx=N.
19. being used for the smooth trajectory device of capacitance blank according to claim 17 or 18 any one of them, which is characterized in that institute Stating judgment module also has summation function, sums to the point coordinates for meeting condition while statistics counts n, computing module The trajectory coordinates of newly-increased point are calculated according to moving average formula according to summed result.
20. a kind of coordinate detecting device for capacitance blank, which is characterized in that be used for capacitance with as claimed in claim 17 The smooth trajectory device of blank is connected, and the coordinate detecting device for capacitance blank includes:
Touch data acquisition module is connect with the judgment module, for acquiring touch data;
Path matching module, for judging whether freshly harvested point belongs to a certain existing track, if in the presence of if with smooth place Module connection is managed, is connect if establishing module with array there is no if;
Array establishes module, and one end is connect with the judgment module, and the other end is connect with the smoothing module, for creating A vertical storage organization is used to store the point of the track;
Smoothing module, one end are connect with the judgment module, for according to the touch data of acquisition by all new acquisitions The actual coordinate of point take turns doing smoothing processing by the method described in any one of claim 1 to 8 and obtain corresponding rail Mark coordinate;
Drafting module is connect with the other end of the smoothing module, for by it is described it is all it is smooth after trajectory coordinates It is plotted on its affiliated track.
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 CN105718122A (en) 2016-06-29
CN105718122B true 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)

Families Citing this family (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
CN112698773B (en) * 2020-12-29 2022-05-06 深圳市康冠商用科技有限公司 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

Also Published As

Publication number Publication date
CN105718122A (en) 2016-06-29

Similar Documents

Publication Publication Date Title
CN102937848B (en) Method for editing handwritings and electronic equipment
CN108227912A (en) Apparatus control method and device, electronic equipment, computer storage media
CN105718122B (en) A kind of trajectory smoothing method and its device for capacitance blank
CN103063159A (en) Part size measurement method based on charge coupled device (CCD)
CN106540407B (en) Treadmill method for control speed and device
CN104268864B (en) Card edge extracting method and device
CN104282026B (en) Distributing homogeneity appraisal procedure based on watershed algorithm and minimum spanning tree
CN109558902A (en) A kind of fast target detection method
KR20130066511A (en) Method and apparatus for calligraphic beautification of handwritten characters
Ramani A gesture-free geometric approach for mid-air expression of design intent in 3D virtual pottery
CN104182970A (en) Souvenir photo portrait position recommendation method based on photography composition rule
CN108961157A (en) Image processing method, picture processing unit and terminal device
CN106155540B (en) Electronic brush pen pen shape treating method and apparatus
CN108961426A (en) Home Fashion &amp; Design Shanghai method and system based on virtual reality
CN106156369A (en) Multi-layer subordinate method for exhibiting data and device
CN109448131A (en) A kind of virtual piano based on Kinect plays the construction method of system
CN106095139B (en) A method of it promoting lines in projecting interactive system and draws speed
CN109493334A (en) Measure the method and device of spinal curvature
JP2017534135A (en) Method for simulating and controlling a virtual ball on a mobile device
Wong et al. Model-based analysis of Chinese calligraphy images
CN113342208B (en) Railway line selection method based on multi-point touch equipment, terminal and storage medium
CN106611443B (en) Three-dimensional topographic point picking method and device
CN107688431B (en) Man-machine interaction method based on radar positioning
CN102129426B (en) The method of display character relation and device
CN110888552A (en) Infrared touch screen line drawing processing method and device

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