CN103310474B - A kind of implementation method of original handwriting and system - Google Patents
A kind of implementation method of original handwriting and system Download PDFInfo
- Publication number
- CN103310474B CN103310474B CN201310228407.5A CN201310228407A CN103310474B CN 103310474 B CN103310474 B CN 103310474B CN 201310228407 A CN201310228407 A CN 201310228407A CN 103310474 B CN103310474 B CN 103310474B
- Authority
- CN
- China
- Prior art keywords
- track
- writing
- vigour
- style
- pen type
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- User Interface Of Digital Computer (AREA)
Abstract
The invention discloses a kind of implementation method and system of original handwriting, the implementation method of this original handwriting comprises: the trajectory coordinates of Real-time Collection handwriting; The movement velocity of former person's handwriting is calculated according to the abscissa positions parameter of Real-time Collection and ordinate location parameter; According to the pen type preset and the width of pressure parameter determination track drafting gathered, and with corresponding graphical pointv for starting point, move ahead at track the track pattern of crisscross filling respective width in direction, and, when drawing the edge of described track pattern, according to the quantity of calculated movement velocity dynamic conditioning pattern edge grid, and according to the quantity of edge grid, anti-aliasing process is carried out to the edge of described track pattern.Implement technical scheme of the present invention, be used for the grid quantity of track pattern edge-smoothing change by the hand-written movement velocity feature dynamic conditioning of former person's handwriting, balance the flatness of track pattern, correctness and fluency better, improve Consumer's Experience.
Description
Technical field
The present invention relates to computer graphical processing field, especially relate to a kind of implementation method and system of original handwriting.
Background technology
Due to touch pad widely using in intelligent terminal, handwriting input becomes the main flow input of intelligent terminal gradually.The process that handwriting input imitation pen is write on paper, uses finger or time writer to write in face on a touchpad, can obtain the mark expected in face on an electronic device.The information that touch pad passes to master processor is a series of coordinate sequence, and the coordinate sequence of input is depicted as the process of the mark that user expects by master processor, and usually we are called former handwriting.
In former handwriting application, the coordinate that touch pad passes to main frame is generally made up of three parameter x, y and p.X and y determines the positional information of handwriting tracks, and pressure p delivers the tactile impressions information in hand-written process.The drawing process of former person's handwriting track pattern, namely according to the (x of handwriting tracks, y), simulate continuous quantity with discrete magnitude, thus produce multiple graphical pointv, and with corresponding graphical pointv for starting point, in the track pattern of the crisscross filling one fixed width of hand-written front line direction, how wide concrete pattern fills is, determined by pressure p and corresponding simulation pen type, pressure is larger, and filling width is larger.The breadth extreme of simulation pen type, the form of a stroke or a combination of strokes that can simulate as required (such as pencil, pen, writing brush etc.), concrete display screen and Consumer's Experience effect survey front mensuration in advance.
Computer display is made up of grid matrix, and the drafting essence of former person's handwriting track pattern is exactly with its grid covered of the color filling of setting in the region that track covers.If the edges of regions that former person's handwriting track covers tangentially follows transverse axis, Z-axis inconsistent, so boundary line is drawn out and just be there is ladder on screen, the graphic limit drawn out just there will be sawtooth, also be, lose shape (aliasing), lose shape to refer in raster plotter and represent with discrete magnitude the distortion that continuous quantity causes, shown in following Figure 1A, 1B.
On computer graphics disposal technology, usually sawtooth is eliminated by anti-aliasing method, detailed process is exactly: track pattern edge can regard that multiple straight-line segment is spliced as, straight-line segment between two graphical pointvs (two crucial summits of straight-line segment) can regard the narrow and long rectangular with one fixed width as, foreground and background colour mixing when the grid of certain limit before and after stepped locations is filled, excessive gradually, reduce crenellated phenomena with fairing border.
When anti-aliasing process, anti-aliasing process is adopted between the crucial summit of track pattern edge, require that the grid needing some before and after ladder comes smoothing, when pattern fills, these level and smooth grids will be filled simultaneously, and the color of only filling is different.So at the ladder place, edge of track pattern, how many grids are needed smoothly to fill? if level and smooth grid is less than 2, then there is no the effect of gradual change in the middle of, even if adopt Anti-aliasing Technology sawtooth cannot be eliminated yet.And if level and smooth grid number is too many, the pattern boundaries position gap of filling pattern out and real trace may be larger.Simultaneously, in order to ensure in the smoothing process in stepped locations place, some points near handwriting tracks current location need to carry out buffer memory, and export not in time, and in fact the former person's handwriting current track position of that is drawing and real touch pad contact position have a segment distance.And retain that to be used for level and smooth grid more, cause touch pad contact position and former person's handwriting track current drafting positional distance larger, feel to write to user delayed, affect the fluency of former handwriting.In sum, existing anti-aliasing process can not the relation of the flatness of trimming trajectory pattern, correctness and fluency well.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of implementation method and system of original handwriting, can the relation of the flatness of trimming trajectory pattern, correctness and fluency well.
The technical solution adopted for the present invention to solve the technical problems is: the implementation method constructing a kind of original handwriting, is characterized in that, comprising:
S1. the trajectory coordinates of Real-time Collection handwriting, described trajectory coordinates comprises abscissa positions parameter, ordinate location parameter and pressure parameter;
S2. the movement velocity of former person's handwriting is calculated according to the abscissa positions parameter of Real-time Collection and ordinate location parameter;
S3. according to the pen type preset and the width of pressure parameter determination track drafting gathered, and with corresponding graphical pointv for starting point, move ahead at track the track pattern of crisscross filling respective width in direction, and, when drawing the edge of described track pattern, according to the quantity of calculated movement velocity dynamic conditioning pattern edge grid, and according to the quantity of described edge grid, anti-aliasing process is carried out to the edge of described track pattern.
In the implementation method of original handwriting of the present invention, in described step S3, the quantity according to formula 1 edge calculation grid:
t=(v-v
min)/(V
max-v
min)
N
t=(1-t) * N
min+ t*N
maxformula 1
Wherein, t is scale-up factor, the movement velocity that v calculates for step S2, v
minfor the minimum speed under set corresponding pen type, V
maxfor the maximal rate under set corresponding pen type, N
minfor the minimum grid number under set corresponding pen type, N
maxfor the maximum grid number under set corresponding pen type, N
tfor the quantity of the edge grid under calculated corresponding pen type.
In the implementation method of original handwriting of the present invention, described step S3 also comprises: when the first stroke of a Chinese character or receipts, speed class corresponding to judging according to calculated movement velocity, and according to corresponding speed class, the thick and heavy process of the vigour of style in writing or the elegant process of the vigour of style in writing are carried out to drawn track pattern, wherein, be previously stored with at least two speed class, and the corresponding velocity range of each speed class.
In the implementation method of original handwriting of the present invention, in described step S3,
The step of the thick and heavy process of the described vigour of style in writing is:
If at graphical pointv O
iplace need carry out the thick and heavy process of the vigour of style in writing, then according to formula 2 to this graphical pointv O
ithe width of place's track drafting carries out amplification correction;
R
i'=K*R
iformula 2
Wherein, R
ithe pen type preset for basis and pressure parameter this graphical pointv determined O gathered
ithe width of the track drafting at place; R
i' for amplifying the width of revised track drafting; K is enlargement factor, and K>1, and relevant to set pen type;
The step of the elegant process of the described vigour of style in writing is:
If at graphical pointv P
iplace need carry out the elegant process of the vigour of style in writing, then with this graphical pointv P
ifor starting point, on track moves ahead direction, draw the continuity track of a tapering width to a pixel, and calculate the length of continuity track according to formula 3;
EL=(1-t) λ
1r
i/ Φ+t λ
2r
i/ Φ formula 3
Wherein, EL is the length of continuity track; T is scale-up factor; λ
1, λ
2for constant, and λ
2> λ
1; R
ifor the width according to the pen type preset and the determined track drafting of pressure parameter gathered; Φ is Dynamic gene, and 2< Φ <6.
In the implementation method of original handwriting of the present invention, described step S2 also comprises:
Calculate the angle changing of direction of motion according to the abscissa positions parameter of Real-time Collection and ordinate location parameter, and be whether roll over, hook, carry according to the angle changing identification current stroke of described direction of motion;
Described step S3 also comprises: drawing described folding, hook, start writing picture time, to described folding, hook, the flex point of picture of starting writing carries out the mellow and full process of the vigour of style in writing.
In the implementation method of original handwriting of the present invention, in described step S3,
The mellow and full process of the described vigour of style in writing is: the thick and heavy process of vigour of style in writing during receipts superposed with the thick and heavy process of the vigour of style in writing during first stroke of a Chinese character.
What the present invention also constructed a kind of original handwriting realizes system, comprising:
Touch pad, for the trajectory coordinates of Real-time Collection handwriting, described trajectory coordinates comprises abscissa positions parameter, ordinate location parameter and pressure parameter;
Control module, for receiving the trajectory coordinates sequence that touch pad gathers, and carries out pre-service to received trajectory coordinates;
Velocity measuring module, under the control of described control module, calculates the movement velocity of former person's handwriting according to gathered abscissa positions parameter and ordinate location parameter;
Graphics module, for under the control of described control module, according to the pen type preset and the width of pressure parameter determination track drafting gathered, and with corresponding graphical pointv for starting point, move ahead at track the track pattern of crisscross filling respective width in direction, and, when drawing the edge of described track pattern, according to the quantity of calculated movement velocity dynamic conditioning pattern edge grid, and according to the quantity of described edge grid, anti-aliasing process is carried out to the edge of described track pattern.
Realize in system at original handwriting of the present invention, described graphics module is according to the quantity of formula 1 edge calculation grid:
t=(v-v
min)/(V
max-v
min)
N
t=(1-t) * N
min+ t*N
maxformula 1
Wherein, t is scale-up factor, the movement velocity that v calculates for step S2, v
minfor the minimum speed under set corresponding pen type, V
maxfor the maximal rate under set corresponding pen type, N
minfor the minimum grid number under set corresponding pen type, N
maxfor the maximum grid number under set corresponding pen type, N
tfor the quantity of the edge grid under calculated corresponding pen type.
Realize in system at original handwriting of the present invention, described drafting module, also for the first stroke of a Chinese character or receive time, speed class corresponding to judging according to calculated movement velocity, and according to corresponding speed class, the thick and heavy process of the vigour of style in writing or the elegant process of the vigour of style in writing are carried out to drawn track pattern, wherein, be previously stored with at least two speed class, and the corresponding velocity range of each speed class.
Original handwriting of the present invention realize in system, also comprise:
Whether movement tendency detection module for calculating the angle changing of direction of motion according to gathered trajectory coordinates, and is roll over, hook, carry according to the angle changing identification track stroke of described direction of motion;
Described graphics module, also for drawing described folding, hook, start writing picture time, to described folding, hook, the flex point of picture of starting writing carries out the mellow and full process of the vigour of style in writing.
Implement technical scheme of the present invention, be used for the grid quantity of track pattern edge-smoothing change by the hand-written movement velocity feature dynamic conditioning of former person's handwriting, balance the flatness of track pattern, correctness and fluency better, improve Consumer's Experience.
Which type of vigour of style in writing the present invention also adopts by the former person's handwriting first stroke of a Chinese character of movement velocity character control and receipts pen, has enriched the rail track feature of former person's handwriting, makes the track pattern of former person's handwriting more can embody real person's handwriting sensation.
The present invention also by judging the variation tendency of movement locus, sorting out the motion flex point of the movement locus of former person's handwriting, and increasing the mellow and full vigour of style in writing of former person's handwriting in corner position, strengthening the aesthetic of the track pattern of former person's handwriting.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Figure 1A is the schematic diagram of the image border without anti-aliasing process;
Figure 1B is the design sketch of the image border without anti-aliasing process;
Fig. 2 is the process flow diagram of the implementation method embodiment one of original handwriting of the present invention;
Fig. 3 A be use original handwriting of the present invention implementation method simulation pen writing " with " the test result figure of word;
Fig. 3 B be use original handwriting of the present invention implementation method simulation brush writing " with " the test result figure of word;
Fig. 4 A through the thick and heavy process of the vigour of style in writing " in " the test result figure of word;
Fig. 4 B through the elegant process of the vigour of style in writing " in " the test result figure of word;
Fig. 5 is the schematic diagram of the angle changing of direction of motion;
Fig. 6 A-6F is the schematic diagram of several situations of angle changing identification stroke according to direction of motion;
Fig. 7 is the schematic diagram of the mellow and full process of the vigour of style in writing;
Fig. 8 is the logical diagram realizing system embodiment one of original handwriting of the present invention;
Fig. 9 is the logical diagram realizing system embodiment two of original handwriting of the present invention.
Embodiment
Fig. 2 is the process flow diagram of the implementation method embodiment one of original handwriting of the present invention, and the implementation method of this original handwriting comprises:
S1. the trajectory coordinates of Real-time Collection handwriting, described trajectory coordinates comprises abscissa positions parameter, ordinate location parameter and pressure parameter;
S2. according to abscissa positions parameter and the ordinate location parameter calculating movement velocity of Real-time Collection;
S3. according to the pen type preset and the width of pressure parameter determination track drafting gathered, and the track pattern of crisscross filling respective width in the direction that moves ahead at track, and, when drawing the edge of described track pattern, according to the quantity of calculated movement velocity dynamic conditioning pattern edge grid, and according to the quantity of described edge grid, anti-aliasing process is carried out to the edge of described track pattern.
In the above-described embodiments, the trajectory coordinates gathered is the sample sequence at a same time interval, can according to the Euclidean distance d between the adjacent Two coordinate of following formulae discovery, wherein, and (x
1, y
1) and (x
2, y
2) be location parameter in two trajectory coordinates of continuously input respectively.
And, can using the mean value of the Euclidean distance of two adjacent coordinates of continuous a period of time as movement velocity.Through empirical statistics, relatively good as movement velocity using the mean value of about adjacent 5 Euclidean distances.Because: if the number of adjacent Euclidean distance is very little, some redundancy coordinates often reported due to touch pad make two adjacent coordinate points location overlaps, the movement velocity saltus step of calculating is relatively more frequent, and speed is unstable, and the situation with true hand-written motion is inconsistent; If the number of adjacent Euclidean distance is many, the delay that finding speed can be caused again to change, can not react the promptness of former handwriting movement velocity change.
As previously mentioned, there is the place of ladder in image border, if pattern edge is used for level and smooth grid quantity very little, have obvious sawtooth to graphing.If but it is too much for level and smooth grid quantity; the accuracy of draw former person's handwriting edge and fluency that writing have again impact (such as to write very little word can not write out; touch pad contact position and former person's handwriting track drawing position distance widen); the quantity of level and smooth grid and former person's handwriting edge-smoothing; write accuracy, the relation between fluent writing as shown in Table 1:
Table one
Therefore, when anti-aliasing process, can based on the quantity of the level and smooth grid of movement velocity dynamic conditioning.Hand-written when moving slow, the change curvature of usual movement locus is larger, and user is higher to the pattern position attention rate of drawing, so smoothly the number of grid reduces accordingly; Hand-written when moving fast, the change curvature of handwriting tracks is smaller, and user is also relative higher with the distance tolerance of drawing position to contact position, so the corresponding increase of quantity of level and smooth grid.The quantity of the edge grid corresponding to friction speed specifically can be calculated according to formula 1:
t=(v-v
min)/(V
max-v
min)
N
t=(1-t) * N
min+ t*N
maxformula 1
Wherein, t is scale-up factor, the movement velocity that v calculates for step S2, v
minfor the minimum speed under set corresponding pen type, V
maxfor the maximal rate under set corresponding pen type, N
minfor the minimum grid number under set corresponding pen type, N
maxfor the maximum grid number under set corresponding pen type, N
tfor the quantity of the edge grid under calculated corresponding pen type.
And, in equation 1, the minimum value N of level and smooth grid
mincan not 3 be less than, because the ladder being less than 3 grids cannot realize color gradient, cannot sawtooth be eliminated.The maximal value N of level and smooth grid number
maxdensity feature according to selected different pen type and display screen measures in advance, such as simulation draw pencil or pen figure this can not arrange very large because pencil pattern is thinner, former person's handwriting track is higher to position accuracy demand.According to the different qualities of display screen, usual maximal value is arranged to 4 or 5; To draw a design thicker situation to writing brush etc., the maximum number of level and smooth grid can adjust larger a little, because they are lower a little to the susceptibility of drawing locus marginal position error, the number of maximum level and smooth grid can be set to 8 or larger.Fig. 3 A, 3B be respectively simulation pen writing " with " word and simulation brush writing " with " the test result figure of word.
Preferably, the implementation method of original handwriting of the present invention also can control the vigour of style in writing when first stroke of a Chinese character and receipts based on movement velocity.After calculating former handwriting movement velocity, can according to different touch pads, the different motion speed of writing, determine the boundary value judging friction speed grade, this speed class is as the judgment basis of a follow-up receipts first stroke of a Chinese character vigour of style in writing process.Table two is the movement velocity that measures of face and the measurement result of sport rank boundary value on a touchpad.
Speed class | Slowly | Common written | Comparatively fast write | Scribble fast |
Movement velocity | 0~0.8 | 0.8~2.4 | 2.4~4.4 | 4.4~15 |
Table two
When the general first stroke of a Chinese character, movement velocity is slow, will produce thick and heavy pen sense.When receiving pen, if movement velocity is slow, illustrate and write relatively steadily and surely, the vigour of style in writing should be thick and heavy; If write than comparatively fast, the vigour of style in writing should be elegant, and the tail end write does elegant process according to movement velocity, and speed is faster, and the vigour of style in writing is elegant more obvious.Control planning between speed class and the vigour of style in writing as shown in Table 3.
Speed class | Slowly | Common written | Comparatively fast write | Scribble fast |
Vigour of style in writing process | Thick and heavy | Thick and heavy | Elegant | Very elegant |
Table three
About the thick and heavy process of the vigour of style in writing, other reticle pattern of normally drawing conventional track width of ratio circular pattern wider a little in the place of movement locus or configuring.If at certain graphical pointv O
iplace is r according to the track drafting width that the pen type preset and pressure parameter calculate
iif do thick and heavy process, suitable amplification correction can be done according to the track drafting radial width of formula 2 to this point;
R
i'=K*R
iformula 2
Wherein, wherein, R
ithe pen type preset for basis and pressure parameter this graphical pointv determined O gathered
ithe width of the track drafting at place; R
i' for amplifying the width of revised track drafting; K is enlargement factor, and K>1, and relevant to set pen type, such as writing brush can be got between 1.05 to 1.1.Such as, " in " word through the thick and heavy process of the vigour of style in writing test result as shown in Figure 4 A.
About the elegant process of the vigour of style in writing, assuming that at graphical pointv P
i(x
i, y
i) place need receive pen, this point and previous graphical pointv P
i-1vectorial P
i-1p
iavailable polar coordinate representation is (d
i, θ
i), so with this graphical pointv P
i(x
i, y
i) be starting point, at θ
ithe upper drafting one in direction (i.e. line direction before track) draw the continuity track of tapering width to 1 pixel.And the available formula 3 of drafting length EL (ExpandLength) of this continuity track calculates;
EL=(1-t)λ
1R
i/Φ+tλ
2R
i/Φ
Wherein, EL is the length of continuity track; T is scale-up factor; λ
1, λ
2for constant, and λ
2> λ
1, such speed is faster, and EL is larger, and the vigour of style in writing embodied is just more elegant; R
ifor the width according to the pen type preset and the determined track drafting of pressure parameter gathered; Φ is Dynamic gene, and 2< Φ <6, the track drafting according to different touch-screen density and different pen type does corresponding adjustment, ensures to extend track both attractive in appearance, does not affect again the precision of actual track drafting.Such as, " in " word through the elegant process of the vigour of style in writing test result as shown in Figure 4 B.
Preferably, in the implementation method of original handwriting of the present invention, whether step S2 also comprises: the angle changing calculating direction of motion according to the abscissa positions parameter of Real-time Collection and ordinate location parameter, and be roll over, hook, carry according to the angle changing identification current stroke of described direction of motion; Step S3 also comprises: draw roll over, hook, start writing picture time, doubling, hook, the flex point of picture of starting writing carries out the mellow and full process of the vigour of style in writing.In this embodiment, by judging the variation tendency of movement locus, sorting out the motion flex point of former pen trace motion track, and increasing the mellow and full vigour of style in writing process of former person's handwriting in corner position, strengthening the aesthetic of former person's handwriting track.
Detect former pen trace motion variation tendency, also, detect follow-up input coordinate and the coordinate single change in face or the variable quantity of accumulated change in the movement direction inputted above.As shown in Figure 5, move to P3 point from P1 point, movement direction angle has changed β, and so we just can think that movement locus variation tendency is β, and unit is degree.If represent the vector of movement locus with polar coordinates (r, θ), the vector that P1P2 is corresponding is (d1, θ 1), the vector (d2, θ 2) that P2P3 is corresponding, so β=θ 2 – θ 1.It should be noted that at this, can according to planimetric coordinates point P1 (x1, y1), P2 (x2, y2) with polar transformational relation, first calculate tangent value tan θ 1=(y2-y1)/(x2-x1) of θ 1, then calculate the value of its arc-tangent value θ 1 according to the tangent value of θ 1.And, if absolute value | y2-y1| is far longer than absolute value | and x2-x1|, then cotangent value cot θ 1=(x2-x1)/(y2-y1), then calculate the value of its arc cotangent value θ 1 according to the cotangent value of θ 1.Similarly, available identical method calculates the value of θ 2.In addition, can specify that clockwise direction angle is just, counterclockwise angle is negative.If double angle variable quantity symbol is consistent, the direction of account for motion change is identical, otherwise motion change direction is contrary.
Fig. 6 A-6F is the schematic diagram of several situations of angle changing identification stroke according to direction of motion:
Situation 1: as Fig. 6 A, the angle changing of continuous print two flex points is all very little, and the direction of change angle is consistent, this situation movement locus should be smooth motion, such as, writes " horizontal stroke ", " erecting ", " slash ", the basic stroke such as " right-falling stroke ", " O ", now, flex point is not done and is becomed privileged;
Situation 2: as Fig. 6 B, the angle changing direction of continuous print two flex points is just contrary, and change angle is not very large, and time this situation is generally write, hand shaking is moved and caused, and now, flex point does not do special processing;
Situation 3: if the angle change β 1 of Fig. 6 C, flex point P2 is near 90 degree, and the angle of flex point P3 change β 2 is smaller, and this situation is generally identified as "fold" and draws, and now, P2 flex point needs to do mellow and full process;
Situation 4: if the angle change β 1 of Fig. 6 D, flex point P2 is at about 145 degree, and the angle of flex point P3 change β 2 is smaller, and this situation is generally identified as " hook " and draws, and now, P2 flex point needs to do mellow and full process;
Situation 5: the angle change β 1 as Fig. 6 E, flex point P2 is greater than 180 degree, and at about 225 degree, and the angle of flex point P3 change β 2 is smaller, and this situation is generally identified as " carrying ", and now, P2 flex point needs to do mellow and full process;
Situation 6: the angle change β 1 as Fig. 6 F, flex point P2 is greater than 180 degree, and the angle of flex point P3 change β 2 is smaller, and this situation is generally identified as " carrying " or " hook ", and now, P2 flex point needs to do mellow and full process;
Other situations all press proper motion process, do not do special critical points.
About the mellow and full process of the vigour of style in writing, the thick and heavy process of vigour of style in writing during receipts can be superposed with the thick and heavy process of the vigour of style in writing during first stroke of a Chinese character, thus embody the effect of outside inner round side side.It should be noted that at this, thick and heavy process all can carry out amplification correction by the width of reference formula 2 to corresponding graphical pointv place track drafting, thick and heavy process difference when the thick and heavy process during first stroke of a Chinese character and receipts is only that the enlargement factor selected is different, generally, the enlargement factor corresponding to thick and heavy process during receipts is greater than the enlargement factor corresponding to thick and heavy process during the first stroke of a Chinese character.As shown in Figure 7, assuming that need to realize the mellow and full vigour of style in writing at the P2 point of track P1P2P3, so first, receive a vigour of style in writing in the circle that P2 point-rendering one is thick and heavy, as shown in the A1 of region, ensure in the outside of flex point it is round and smooth effect like this, again with P2 point for starting point is plotted to the movement locus of P3 point, as shown in the A2 of region.Because the track of P2 point and P3 point and P1 point have overlapping part to the track of P2 point, this part inner side effect overlapping on flex point is exactly square effect.
Fig. 8 is the logical diagram realizing system embodiment one of original handwriting of the present invention, the system that realizes of this original handwriting comprises: touch pad 11, control module 12, velocity measuring module 13 and graphics module 14, wherein, touch pad 11 is for the trajectory coordinates of Real-time Collection handwriting, and described trajectory coordinates comprises abscissa positions parameter, ordinate location parameter and pressure parameter; The trajectory coordinates sequence that control module 12 gathers for receiving touch pad, and pre-service is carried out to received trajectory coordinates; Velocity measuring module 13, under the control of described control module, calculates movement velocity according to gathered abscissa positions parameter and ordinate location parameter; Graphics module 14 is under the control of described control module, according to the pen type preset and the width of pressure parameter determination track drafting gathered, and with corresponding graphical pointv for starting point, move ahead at track the track pattern of crisscross filling respective width in direction, and, when drawing the edge of described track pattern, according to the quantity of calculated movement velocity dynamic conditioning pattern edge grid, and according to the quantity of described edge grid, anti-aliasing process is carried out to the edge of described track pattern.
In the above-described embodiments, preferably, graphics module 14 is according to the quantity of formula 1 edge calculation grid:
t=(v-v
min)/(V
max-v
min)
N
t=(1-t) * N
min+ t*N
maxformula 1
Wherein, t is scale-up factor, the movement velocity that V calculates for step S2, V
minfor the minimum speed under set corresponding pen type, V
maxfor the maximal rate under set corresponding pen type, N
minfor the minimum grid number under set corresponding pen type, N
maxfor the maximum grid number under set corresponding pen type, N
tfor the quantity of the edge grid under calculated corresponding pen type.
In another preferred embodiment of the system that realizes of original handwriting of the present invention, drafting module 14 also for the first stroke of a Chinese character or receive time, speed class corresponding to judging according to calculated movement velocity, and according to corresponding speed class, the thick and heavy process of the vigour of style in writing or the elegant process of the vigour of style in writing are carried out to drawn track pattern, wherein, be previously stored with at least two speed class, and the corresponding velocity range of each speed class.
Fig. 9 is the logical diagram realizing system embodiment two of original handwriting of the present invention, the system that realizes of the original handwriting of this embodiment compares the embodiment one shown in Fig. 8, difference is only, the system that realizes of this original handwriting also comprises movement tendency detection module 15, and, whether this movement tendency detection module 15 for calculating the angle changing of direction of motion according to gathered trajectory coordinates, and is roll over, hook, carry according to the angle changing identification track stroke of described direction of motion.And, graphics module 14 also for draw described folding, hook, start writing picture time, the mellow and full process of the vigour of style in writing is carried out to the flex point of described stroke.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various change, combination and change.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within right of the present invention.
Claims (6)
1. an implementation method for original handwriting, is characterized in that, comprising:
S1. the trajectory coordinates of Real-time Collection handwriting, described trajectory coordinates comprises abscissa positions parameter, ordinate location parameter and pressure parameter;
S2. the movement velocity of former person's handwriting is calculated according to the abscissa positions parameter of Real-time Collection and ordinate location parameter;
S3. according to the pen type preset and the width of pressure parameter determination track drafting gathered, and with corresponding graphical pointv for starting point, move ahead at track the track pattern of crisscross filling respective width in direction, and, when drawing the edge of described track pattern, according to the quantity of calculated movement velocity dynamic conditioning pattern edge grid, and according to the quantity of described edge grid, anti-aliasing process is carried out to the edge of described track pattern, wherein, according to the quantity of formula 1 edge calculation grid:
t=(v-v
min)/(V
max-v
min)
N
t=(1-t) * N
min+ t*N
maxformula 1
Wherein, t is scale-up factor, the movement velocity that v calculates for step S2, v
minfor the minimum speed under set corresponding pen type, V
maxfor the maximal rate under set corresponding pen type, N
minfor the minimum grid number under set corresponding pen type, N
maxfor the maximum grid number under set corresponding pen type, N
tfor the quantity of the edge grid under calculated corresponding pen type.
2. the implementation method of original handwriting according to claim 1, is characterized in that,
Described step S3 also comprises: when the first stroke of a Chinese character or receipts, speed class corresponding to judging according to calculated movement velocity, and according to corresponding speed class, the thick and heavy process of the vigour of style in writing or the elegant process of the vigour of style in writing are carried out to drawn track pattern, wherein, be previously stored with at least two speed class, and the corresponding velocity range of each speed class; And,
The step of the thick and heavy process of the described vigour of style in writing is:
If at graphical pointv O
iplace need carry out the thick and heavy process of the vigour of style in writing, then according to formula 2 to this graphical pointv O
ithe width of place's track drafting carries out amplification correction;
R
i'=K*R
iformula 2
Wherein, R
ithe pen type preset for basis and pressure parameter this graphical pointv determined O gathered
ithe width of the track drafting at place; R
i' for amplifying the width of revised track drafting; K is enlargement factor, and K>1, and relevant to set pen type;
The step of the elegant process of the described vigour of style in writing is:
If at graphical pointv P
iplace need carry out the elegant process of the vigour of style in writing, then with this graphical pointv P
ifor starting point, on track moves ahead direction, draw the continuity track of a tapering width to a pixel, and calculate the length of continuity track according to formula 3;
EL=(1-t) λ
1r
i/ Φ+t λ
2r
i/ Φ formula 3
Wherein, EL is the length of continuity track; T is scale-up factor; λ
1, λ
2for constant, and λ
2> λ
1; R
ifor the width according to the pen type preset and the determined track drafting of pressure parameter gathered; Φ is Dynamic gene, and 2< Φ <6.
3. the implementation method of original handwriting according to claim 2, is characterized in that, described step S2 also comprises:
Calculate the angle changing of direction of motion according to the abscissa positions parameter of Real-time Collection and ordinate location parameter, and be whether roll over, hook, carry according to the angle changing identification current stroke of described direction of motion;
Described step S3 also comprises: drawing described folding, hook, start writing picture time, to described folding, hook, the flex point of picture of starting writing carries out the mellow and full process of the vigour of style in writing, and,
The mellow and full process of the described vigour of style in writing is: the thick and heavy process of vigour of style in writing during receipts superposed with the thick and heavy process of the vigour of style in writing during first stroke of a Chinese character.
4. original handwriting realize a system, it is characterized in that, comprising:
Touch pad, for the trajectory coordinates of Real-time Collection handwriting, described trajectory coordinates comprises abscissa positions parameter, ordinate location parameter and pressure parameter;
Control module, for receiving the trajectory coordinates sequence that touch pad gathers, and carries out pre-service to received trajectory coordinates;
Velocity measuring module, under the control of described control module, calculates the movement velocity of former person's handwriting according to gathered abscissa positions parameter and ordinate location parameter;
Graphics module, for under the control of described control module, according to the pen type preset and the width of pressure parameter determination track drafting gathered, and with corresponding graphical pointv for starting point, move ahead at track the track pattern of crisscross filling respective width in direction, and, when drawing the edge of described track pattern, according to the quantity of calculated movement velocity dynamic conditioning pattern edge grid, and according to the quantity of described edge grid, anti-aliasing process is carried out to the edge of described track pattern; And described graphics module is according to the quantity of formula 1 edge calculation grid:
t=(v-v
min)/(V
max-v
min)
N
t=(1-t) * N
min+ t*N
maxformula 1
Wherein, t is scale-up factor, the movement velocity that v calculates for velocity measuring module, v
minfor the minimum speed under set corresponding pen type, V
maxfor the maximal rate under set corresponding pen type, N
minfor the minimum grid number under set corresponding pen type, N
maxfor the maximum grid number under set corresponding pen type, N
tfor the quantity of the edge grid under calculated corresponding pen type.
5. original handwriting according to claim 4 realize system, it is characterized in that,
Described graphics module, also for the first stroke of a Chinese character or receive time, speed class corresponding to judging according to calculated movement velocity, and according to corresponding speed class, the thick and heavy process of the vigour of style in writing or the elegant process of the vigour of style in writing are carried out to drawn track pattern, wherein, be previously stored with at least two speed class, and the corresponding velocity range of each speed class; And,
If described graphics module is at graphical pointv O
iplace need carry out the thick and heavy process of the vigour of style in writing, then according to formula 2 to this graphical pointv O
ithe width of place's track drafting carries out amplification correction;
R
i'=K*R
iformula 2
Wherein, R
ithe pen type preset for basis and pressure parameter this graphical pointv determined O gathered
ithe width of the track drafting at place; R
i' for amplifying the width of revised track drafting; K is enlargement factor, and K>1, and relevant to set pen type;
If described graphics module is at graphical pointv P
iplace need carry out the elegant process of the vigour of style in writing, then with this graphical pointv P
ifor starting point, on track moves ahead direction, draw the continuity track of a tapering width to a pixel, and calculate the length of continuity track according to formula 3;
EL=(1-t) λ
1r
i/ Φ+t λ
2r
i/ Φ formula 3
Wherein, EL is the length of continuity track; T is scale-up factor; λ
1, λ
2for constant, and λ
2> λ
1; R
ifor the width according to the pen type preset and the determined track drafting of pressure parameter gathered; Φ is Dynamic gene, and 2< Φ <6.
6. original handwriting according to claim 5 realize system, it is characterized in that, also comprise:
Whether movement tendency detection module for calculating the angle changing of direction of motion according to gathered trajectory coordinates, and is roll over, hook, carry according to the angle changing identification track stroke of described direction of motion;
Described graphics module, also for draw described folding, hook, start writing picture time, to described folding, hook, the flex point of picture of starting writing carries out the mellow and full process of the vigour of style in writing, the mellow and full process of the described vigour of style in writing is: the thick and heavy process of vigour of style in writing when to receive superposed with the thick and heavy process of the vigour of style in writing during first stroke of a Chinese character.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310228407.5A CN103310474B (en) | 2013-06-08 | 2013-06-08 | A kind of implementation method of original handwriting and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310228407.5A CN103310474B (en) | 2013-06-08 | 2013-06-08 | A kind of implementation method of original handwriting and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103310474A CN103310474A (en) | 2013-09-18 |
CN103310474B true CN103310474B (en) | 2016-04-06 |
Family
ID=49135650
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310228407.5A Active CN103310474B (en) | 2013-06-08 | 2013-06-08 | A kind of implementation method of original handwriting and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103310474B (en) |
Families Citing this family (33)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP3072039B1 (en) * | 2013-11-19 | 2019-08-14 | Wacom Co., Ltd. | Method and system for ink data generation, ink data rendering, ink data manipulation and ink data communication |
CN103699330A (en) * | 2013-12-31 | 2014-04-02 | 华南师范大学 | Original handwriting input method and original handwriting input system |
CN103870650B (en) * | 2014-03-24 | 2017-02-15 | 浙江纺织服装职业技术学院 | Method for computer-aided drawing jacquard pattern handwriting mud |
CN104049874B (en) * | 2014-06-10 | 2017-04-05 | 广州视睿电子科技有限公司 | Touch handwriting generation method and system of stylus |
CN105404481A (en) * | 2014-06-23 | 2016-03-16 | 联想(北京)有限公司 | Image information processing method and electronic equipment |
CN104900094B (en) * | 2015-05-15 | 2017-11-03 | 广东小天才科技有限公司 | Method and device for realizing writing simulation in terminal |
CN104932826B (en) * | 2015-06-26 | 2018-10-12 | 联想(北京)有限公司 | A kind of information processing method and electronic equipment |
CN105487687B (en) * | 2015-11-23 | 2018-08-24 | 广州视睿电子科技有限公司 | Handwriting display method and device |
CN105975122A (en) * | 2016-04-27 | 2016-09-28 | 集怡嘉数码科技(深圳)有限公司 | Touch track compensation method and apparatus as well as terminal device |
CN106201314B (en) * | 2016-06-30 | 2019-03-19 | 成都东方闻道科技发展有限公司 | A kind of display methods and display device for realizing handwriting input on touch screen |
CN106293238A (en) * | 2016-08-15 | 2017-01-04 | 北京小米移动软件有限公司 | Touch accuracy control method, device and electronic equipment |
CN108335340B (en) * | 2017-01-20 | 2022-03-18 | 山西大学 | Method for presenting handwriting with type pen characteristic in pressure touch screen handwriting input |
CN107798717A (en) * | 2017-09-13 | 2018-03-13 | 深圳市创易联合科技有限公司 | Electronic brush writing method, device, computer equipment and storage medium |
CN111356977A (en) * | 2017-12-04 | 2020-06-30 | 深圳市柔宇科技有限公司 | Method for processing writing strokes and related equipment |
CN111353356B (en) * | 2019-01-22 | 2024-04-09 | 鸿合科技股份有限公司 | Hard-tipped writing implement method, device, electronic equipment and storage medium |
CN111352562B (en) * | 2019-01-22 | 2022-03-15 | 鸿合科技股份有限公司 | Chalk character realization method and device, electronic equipment and storage medium |
CN109857322B (en) * | 2019-01-24 | 2021-12-31 | 广东第二师范学院 | Android-based painting brush width control method and device |
CN109840034B (en) * | 2019-01-30 | 2022-06-07 | 郑州万特电气股份有限公司 | Writing brush calligraphy writing method based on touch equipment |
CN111524209B (en) * | 2019-02-02 | 2022-07-19 | 北京易真学思教育科技有限公司 | Electronic writing method, device, terminal and storage medium |
CN110096209A (en) * | 2019-04-01 | 2019-08-06 | 北京新界教育科技有限公司 | Handwriting trace display methods and device |
CN110263636A (en) * | 2019-05-15 | 2019-09-20 | 赞同科技股份有限公司 | A kind of lossless person's handwriting restoring method and system |
CN111078073B (en) * | 2019-12-17 | 2021-03-23 | 科大讯飞股份有限公司 | Handwriting amplification method and related device |
CN111381754B (en) | 2020-04-30 | 2021-10-22 | 京东方科技集团股份有限公司 | Handwriting processing method, equipment and medium |
CN112083870B (en) * | 2020-09-09 | 2022-03-22 | 青岛海信商用显示股份有限公司 | Information identification method and equipment |
CN112817504B (en) * | 2021-01-19 | 2023-04-07 | 上海义启信息科技有限公司 | Intelligent pen point optimization system |
CN113450429B (en) * | 2021-07-26 | 2024-06-04 | 北京猿力未来科技有限公司 | Track drawing method and device |
CN114090089A (en) * | 2021-11-24 | 2022-02-25 | 航天欧华信息技术有限公司 | Method for realizing writing acceleration based on drawing framebuffer |
CN114510158B (en) * | 2021-12-08 | 2022-12-30 | 深圳市康冠商用科技有限公司 | Electronic stroke error correction method and device, touch screen device and storage medium |
CN114237425B (en) * | 2021-12-21 | 2024-01-16 | 深圳市普锐高科实业有限公司 | Screen controllable method based on handwriting pen |
WO2023206257A1 (en) * | 2022-04-28 | 2023-11-02 | 京东方科技集团股份有限公司 | Handwriting generation method and apparatus, computer device, and readable medium |
CN115048022A (en) * | 2022-05-09 | 2022-09-13 | 百望股份有限公司 | Handwriting annotation input method and input device |
CN115237320A (en) * | 2022-07-21 | 2022-10-25 | 京东方科技集团股份有限公司 | Handwriting display method, touch display device, computer device and medium |
CN118284872A (en) * | 2022-10-31 | 2024-07-02 | 京东方科技集团股份有限公司 | Display equipment, handwriting display and handwriting contour determination method |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567166A (en) * | 2003-06-17 | 2005-01-19 | 范卫华 | Pen type cursor positioning device implementing handwriting input by line traction |
CN101699516A (en) * | 2009-10-30 | 2010-04-28 | 华南理工大学 | Stroke rendering method for beautifying hand-written Chinese characters |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101398902B (en) * | 2008-09-27 | 2012-07-04 | 宁波新然电子信息科技发展有限公司 | Natural hand-written Arabian letter on-line identification method |
-
2013
- 2013-06-08 CN CN201310228407.5A patent/CN103310474B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1567166A (en) * | 2003-06-17 | 2005-01-19 | 范卫华 | Pen type cursor positioning device implementing handwriting input by line traction |
CN101699516A (en) * | 2009-10-30 | 2010-04-28 | 华南理工大学 | Stroke rendering method for beautifying hand-written Chinese characters |
Non-Patent Citations (1)
Title |
---|
基于统计模型的书法创作模拟;董军 等;《计算机学报》;20080731;第31卷(第7期);第1276-1282页 * |
Also Published As
Publication number | Publication date |
---|---|
CN103310474A (en) | 2013-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103310474B (en) | A kind of implementation method of original handwriting and system | |
CN109284059B (en) | Handwriting drawing method and device, interactive intelligent panel and storage medium | |
CN100520692C (en) | Hand-written input method capable of implementing writing style effect | |
US8896606B2 (en) | Touch screen and display method | |
CN101763234B (en) | Method and device for simulating various screen resolutions | |
CN104345948A (en) | Implementation method and implementation device for original handwriting as well as electronic equipment | |
CN112380357B (en) | Method for realizing interactive navigation of knowledge graph visualization | |
US20130321350A1 (en) | Virtual ruler for stylus input | |
WO2021218445A1 (en) | Handwriting processing method, handwriting processing apparatus, and storage medium | |
CN111078035B (en) | Drawing method based on HTML5Canvas | |
CN107797752A (en) | Handwriting presenting method and device, interactive intelligent panel and storage medium | |
CN104461315A (en) | Handwriting input method for achieving vigorous writing effect | |
CN102999321A (en) | Writing brush electronic paintbrush setting device and writing brush electronic paintbrush | |
CN106095139A (en) | A kind of method promoting lines drafting speed in projection interactive system | |
CN103838429A (en) | Method and system for conducting drawing on touch screen to achieve writing brush effect | |
CN113589999A (en) | Handwriting processing method, handwriting processing device and non-transient storage medium | |
JP5245444B2 (en) | Information display device and program | |
US11809701B2 (en) | Handwriting forming method and apparatus, and electronic device | |
CN102592261B (en) | Vector diagram showing method and system | |
US5353396A (en) | System and method for generating complex calligraphic curves | |
JP6058216B2 (en) | Drawing apparatus, drawing method, and drawing program | |
US20140375646A1 (en) | Dynamic alteration of guides based on resolution changes | |
US20240020893A1 (en) | Handwriting Forming Method and Apparatus, and Electronic Device | |
US9460529B2 (en) | Tool and method for emulating flat-tip brush | |
US20240054713A1 (en) | Apparatus and method to generate an animated graphical object |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |