CN108334270A - Touch screen hand-writing input is rendered as the method with type feature person's handwriting - Google Patents

Touch screen hand-writing input is rendered as the method with type feature person's handwriting Download PDF

Info

Publication number
CN108334270A
CN108334270A CN201710350804.8A CN201710350804A CN108334270A CN 108334270 A CN108334270 A CN 108334270A CN 201710350804 A CN201710350804 A CN 201710350804A CN 108334270 A CN108334270 A CN 108334270A
Authority
CN
China
Prior art keywords
point
handwriting
person
points
presented
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710350804.8A
Other languages
Chinese (zh)
Other versions
CN108334270B (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.)
Shanxi University
Original Assignee
Shanxi University
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 Shanxi University filed Critical Shanxi University
Publication of CN108334270A publication Critical patent/CN108334270A/en
Application granted granted Critical
Publication of CN108334270B publication Critical patent/CN108334270B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/80Creating or modifying a manually drawn or painted image using a manual input device, e.g. mouse, light pen, direction keys on keyboard

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Character Discrimination (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention provides a kind of input of touch screen hand-writing and is rendered as the method with type feature person's handwriting, belongs to the rendering method of touch screen written handwriting.It obtains the velocity characteristic for touching and writing in addition to tracing point, determine that width is presented in every person's handwriting according to velocity characteristic, adjacent 2 points of person's handwriting presentation is by being inserted into 1 point of n in two moderate distances on track, and it is that 1 point Linear of n is inserted into 1 person's handwriting presentation width of n that width, which is presented, according to adjacent 2 points of person's handwriting on track, finally in n+1 point, to all adjacent 2 points, by this 2 points and " and, width, person's handwriting inclination angle is presented in the person's handwriting at this 2 point relevant " four auxiliary magnets, draw what six straightways were realized at this 2 points.The present invention solves the problem of existing touch writing product presentation writing is stiff, and computer writing feature is apparent, cannot reflect the type style of different writers.

Description

Touch screen hand-writing input is rendered as the method with type feature person's handwriting
Technical field:
The present invention relates to the rendering method of touch screen written handwriting, specifically a kind of touch screen is write single-point track and is rendered as Method with type feature person's handwriting.
Technical background:
As electronic display technology, touch screen technology are fast-developing, touch display screen has largely been used to be counted in interactive mode On calculation machine system equipment, such as:All kinds of interactive electronic plate systems that classroom teaching uses, all kinds of smart mobile phones and hand-held set It is standby.In such devices, the function of handwriting input is both provided.As you know:Existing touch screen writes the person's handwriting of input Substantially it is a single-point track sets, so handwriting input product mostly directly links tracing point with straight line, display accords with The lines of input trajectory finally show the phonetic element for the symbol, country variant to be inputted.This person's handwriting is presented, and writing is slow-witted Plate, computer writing feature is apparent, cannot reflect the type style of different writers at all.With handwriting input application with it is general And computer software how can by the track of this single-point sequence, according to touch write when track formed the characteristics of, be in It is now that the beautiful beautiful person's handwriting (such as pen, chalk, writing brush etc. shape pen) with common written shape feature is always big The problem of family's concern research.Also there are certain methods and patent in these research process:Such as CN 103257735A《Hand Write the stroke display method and electronic device of input》, application number 201510401837.1《Written handwriting applied to writing brush is presented Method and apparatus》Etc., however they all do not well solve this problem.The solution of this problem is to some handheld devices Chinese Character Recognition be not critically important, but for touching apparatus for writing used in one-to-many alternating-current field, such as classroom instruction For interactive electronic blackboard system product, solve the problems, such as that this is vital.Because touching the when of writing can be presented Go out the beautiful beautiful person's handwriting with common written shape feature, feature (is write) in the writing on the blackboard that can show different teachers, directly Connect the popularization and application for influencing interactive electronic blackboard system in classroom teaching.
For this problem, we are to the common feature of common written shape person's handwriting (such as pen, chalk, writing brush etc. Shape pen) a large amount of research has been carried out, it obtains on the basis of common touch screen (i.e. non-pressure screen),《Touch screen hand-writing inputs Single-point track is rendered as the method with type feature person's handwriting》Technical solution, it touch handwriting trace present software in Have using to touch screen hand-writing input product, the popularization and application especially to interactive electronic blackboard system in classroom teaching Major and immediate significance.
Invention content:
It is an object of the invention to solve the existing touch handwriting input product using common touch screen (i.e. non-pressure screen) When writing presentation, using the method for " directly linking tracing point with straight line, display accords with the lines of input trajectory ", brought Presentation writing it is stiff, computer writing feature is apparent, the problem of cannot reflecting the type style of different writers, provides one kind The single-point track of touch screen hand-writing input is rendered as the method with type feature person's handwriting.
To help to understand that the present invention, the substance for rendering method of identifying the handwriting first are described as follows:
Any rendering method for touching handwriting trace, core are to obtain the coordinate of arbitrary two neighboring tracing point on track And after other feature, the rendering method between 2 points.This core determines the presentation of a stroke of several tracing points, And then determine the presentation of all written handwritings.
It is that realization is presented by repeating adjacent 2 points of person's handwriting on track that person's handwriting per unicursal track, which is presented,.
On a stroke, there are multiple tracing points, all there are one person's handwritings, and width is presented for every bit, and the person's handwriting of every bit is presented Width is be relatively fixed value DrawWidth m a times, and m values are that 1 to the real number between k, (k is an integer, generally desirable 5- Integer between 20), DrawWidth*1 is the minimum widith that person's handwriting is presented, and DrawWidth*k is that the maximum person's handwriting of stroke is presented Width, the corresponding m of every bit are to be moved to the speed of this point by adjacent touch and k is determined, the value of m is equal to this speed Except k.When a point be the first stroke of a Chinese character point of stroke track or from track consecutive points be moved to this point speed be less than a certain valve When value, it is that width D rawWidth*k is presented in maximum person's handwriting that width, which is presented, in the person's handwriting of this point;So DrawWidth*k can also claim Width is presented for the first stroke of a Chinese character of stroke.
Be per adjacent 2 points of person's handwriting presentation on unicursal track by being inserted into n-1 points in two moderate distances, and And it is that n-1 point Linear is inserted into n-1 person's handwriting presentation width that width, which is presented, according to adjacent 2 points of person's handwriting on track, finally in n+ In 1 point, to all adjacent 2 points, by this 2 points and " and this 2 points, width is presented in the person's handwriting at this 2 point, person's handwriting inclines Oblique angle is relevant " four auxiliary magnets, draw what six straightways were realized.
To achieve the above object, the present invention provides the following technical solutions:
A kind of touch screen hand-writing input single-point track is rendered as the method with type feature person's handwriting, includes the following steps:
One, it initializes
One timer J (counter) 1, is set, for recording from track adjacent 2 points of former point to latter point Touch traveling time;
2, three array A (n), B (1, n), C (1,3) are defined, n value ranges are 3 to 100 integer under normal circumstances:
A (0), A (n) are respectively used to adjacent 2 points of former point on storage track in A (n), width is presented in the person's handwriting of latter point Width is presented in degree, the person's handwriting that A (1) ... A (n-1) are used to store the adjacent equidistant interpolation point in 2 points of centre on track;
[B (0,0), B (1,0)], [B (0, n), B (1, n)] be respectively used to storage track on adjacent 2 points of former point, after The coordinate of a bit, [B (0,1), B (1,1)] ... [B (0, n-1), B (1, n-1)] store adjacent 2 points of centre on track and equidistantly insert It is worth the coordinate of point;
[C (0,0), C (1,0)], [C (0,1), C (1,1)], [C (0,2), C (1,2)], [C (0,3), C (1,3)] are used respectively 1 point of four auxiliary magnets, 2 points, 3 points, 4 points of the coordinate needed when storing person's handwriting and presenting, this four points are and [B (0, h), B (1, h)], [B (0, h+1), B (1, h+1)], point [B (0, h), B (1, h)], the person's handwriting at [B (0, h+1), B (1, h+1)] be presented Width A (h), A (h+1) and person's handwriting inclination angle relevant (0<=h<=n-1);
3, a basic width integer constant DrawWidth for drawing straight line is defined, value range is generally 1-10, and changing it can To change the fineness that whole person's handwriting is presented;
4, it defines one and determines that the constant k of width is presented in the maximum person's handwriting per unicursal, value range is generally between 5-20 Integer, the fineness that whole person's handwriting is presented can also be changed by changing it;
5, unicursal first stroke of a Chinese character inclination angle constant G is defined, value range 0 to 60 is spent, " person's handwriting line and list when it is the stroke first stroke of a Chinese character The inclination angle of the vertical line of point motion track;
6, it defines a person's handwriting and tilts angle variable P, the folder of needs inclined person's handwriting line and X-axis is presented for storing all person's handwritings Angle, person's handwriting inclination angle are related with adjacent 2 points of line direction and stroke first stroke of a Chinese character inclination angle constant G;
Two, next touch point (or the first touch point) coordinate for obtaining touch track, [B (0, n), B are assigned to by coordinate (1, n)], determine whether the first touch point, if:Maximum person's handwriting is presented in width D rawWidth*k assignment to A (n), meter When device J reset, start timing, in going to step three (7);If not turning in next step;
Three, adjacent 2 person's handwritings presentation is as follows on track:
(1) by [B (0,0), B (1,0)], [B (0, n), B (1, n)] two point coordinates calculate 2 points of distance;
(2) above-mentioned distance is removed in the touch movement speed of value acquisition adjacent point-to-point transmission on track of timer J, timer J is reset, and restarts timing;
(3) the touch movement speed that width D rawWidth*k divided by adjacent point-to-point transmission are presented with the maximum person's handwriting of stroke obtains Width is presented in person's handwriting at latter point, is A (n) assignment;If speed is less than a certain threshold values, width is presented with maximum person's handwriting DrawWidth*k is that wide A (n) assignment of pen is presented in the person's handwriting of latter point;
(4) according to [B (0,0), B (1,0)], adjacent 2 points of coordinate value on the track [B (0, n), B (1, n)], use is equidistant The method of interpolation is inserted into n-1 point in point-to-point transmission, calculates coordinate, and assignment is to [B (0,1), B (1,1)] ... [B (0, n-1), B (1, n-1)] in;Width A (0) is presented according to adjacent 2 points of person's handwriting on track, the linear method of value of A (n) calculates n-1 Width is presented in person's handwriting at a insertion point, is A (1) ... A (n-1) assignment;
(5) according to adjacent two point coordinates on track [B (0,0), B (1,0)], two tracing points [B (0, n), B (1, n)], are calculated The angle of the vertical line and transverse coordinate axis forward direction of line, then be added with G to obtain this person's handwriting and person's handwriting inclination angle P is presented;
(6) to 2 points [B (0, h), B (1, h)] of the n group consecutive points in n+1 point, [B (0, h+1), B (1, h+1)] into Row person's handwriting is presented (0<=h<=n-1):
It is presented 1. width A (h+1) is presented according to coordinate, the person's handwriting at P and point [B (0, h+1), B (1, h+1)] and calculates person's handwriting When need 3 points of two auxiliary magnets, 4 points of coordinate be [C (0,2), C (1,2)], [C (0,3), C (1,3)] assignment;
2. if point [B (0, h), B (1, h)] is the first stroke of a Chinese character point of unicursal, then according at P and point [B (0, h), B (1, h)] It is auxiliary that two needed when width A (h) (being at this moment the maximum person's handwriting presentation width of person's handwriting) calculating person's handwriting is presented are presented in coordinate, person's handwriting Help a little 1 point, 2 points of coordinate be [C (0,0), C (1,0)], [C (0,1), C (1,1)] assignment;If point [B (0, h), B (1, h)] is no The first stroke of a Chinese character point of unicursal, then [C (0,0), C (1,0)], [C (0,1), C (1,1)] value be the presented in upper primary person's handwriting What 4. step assigned;
3. the basic width DrawWidth using picture straight line draws following six line segments:
[B (0, h), B (1, h)]-[C (0,1), C (1,1)] (2 points);
[C (0,1), C (1,1)] (2 points)-[C (0,2), C (1,2)] (3 points)
[C (0,2), C (1,2)] (3 points)-[C (0,3), C (1,3)] (4 points)
[C (0,3), C (1,3)] (4 points)-[C (0,0), C (1,0)] (1 point)
[C (0,0), C (1,0)] (1 point)-[B (0, h), B (1, h)]
[B (0, h), B (1, h)]-[B (0, h+1), B (1, h+1)]
4. the coordinate value [C (0,3), C (1,3)] that 4 point of auxiliary magnet assign 1 point of auxiliary magnet coordinate value [C (0,0), C (1, 0)], the coordinate value [C (0,2), C (1,2)] of 3 points of auxiliary magnet assigns the coordinate value [C (0,1), C (1,1)] of 2 points of auxiliary magnet
5. [if B (0, h+1), B (1, h+1)] has been adjacent 2 points of latter point on track, i.e. h+1=n turns (7);
6. 1. h=h+1 turns
(7) judge whether [B (0, n), B (1, n)] point is last point in touch track, if so, going to step four;If it is not, Then the value of A (n) assigns A (0);[B (0, n), B (1, n)] assignment and [B (0,0), B (1,0)], go to step two;
Four, single-point track is rendered as that there is the method for type feature person's handwriting to terminate.
Advantageous effect of the present invention:Product, which is write, the present invention be directed to existing touch is presented that writing is stiff, and computer is write special The problem of levying obviously, cannot reflecting the type style of different writers passes through the common feature (ratio to common written shape person's handwriting Such as pen, chalk, writing brush shape pen) and touch screen write when can obtain in addition to touching the locus of points touch writing The research of feature, acquisition common touch screen (i.e. non-pressure screen) on the basis of《Touch screen hand-writing inputs single-point track and presents For the method with type feature person's handwriting》Technical solution, this programme is in touching handwriting trace and software is presented using can make The handwriting characteristic write and show the writing of plain edition pen is touched, to touch screen hand-writing input product, especially to interactive electronic Blackboard system has major and immediate significance in the popularization and application of classroom teaching.
Description of the drawings
Array schematic diagram defined in Fig. 1 rendering methods
First stroke of a Chinese character inclination angle constant G, person's handwriting in Fig. 2 rendering methods tilt angle variable P schematic diagrames
The specific steps schematic diagram that adjacent 2 person's handwritings are presented on track in Fig. 3 rendering methods
Specific implementation mode
Further description is made to the present invention below in conjunction with attached drawing.
Embodiment 1
Any rendering method for touching handwriting trace, core are to obtain the coordinate of arbitrary two neighboring tracing point on track And after other feature, the rendering method between 2 points.This core determines the presentation of a stroke of several tracing points, And then determine the presentation of all written handwritings.
The basic explanation of this person's handwriting rendering method:
It is that realization is presented by repeating adjacent 2 points of person's handwriting on track that person's handwriting per unicursal track, which is presented,.Such as Fig. 3 B It is shown.
On a stroke, there are multiple tracing points, all there are one person's handwritings, and width is presented for every bit, and the person's handwriting of every bit is presented Width is be relatively fixed value 2 (DrawWidth values are 2) m a times, real number of the m values between 1 to 10 (k values 10) (k is an integer, the integer between general desirable 5-20, is taken 10) in this example, 2*1 is the minimum widith that person's handwriting is presented, and 2*10 is The maximum person's handwriting of stroke is presented width, and the corresponding m of every bit is to be moved to the speed of this point with 10 (k) certainly by adjacent touch Fixed, the value of m is equal to this speed and removes 10 (k).When a point is the first stroke of a Chinese character point of stroke track or the consecutive points shifting from track The speed for moving this point is less than 1.1 (when a certain threshold values), and it is that width 2* is presented in maximum person's handwriting that width, which is presented, in the person's handwriting of this point 10(DrawWidth*k);So width is presented in the first stroke of a Chinese character that 2*10 (DrawWidth*k) is alternatively referred to as stroke.
Be per adjacent 2 points of person's handwriting presentation on unicursal track by being inserted into 8-1 points in two moderate distances, and And it is that 8-1 point Linear is inserted into 8-1 person's handwriting presentation width that width, which is presented, according to adjacent 2 points of person's handwriting on track, finally in 8+ In 1 point, to all adjacent 2 points, by this 2 points and " and this 2 points, width is presented in the person's handwriting at this 2 point, person's handwriting inclines Oblique angle is relevant " four auxiliary magnets, draw what six straightways were realized.Such as Fig. 3 C ... H.
A kind of touch screen hand-writing input single-point track as shown in Figs. 1-3 is rendered as the method with type feature person's handwriting, Include the following steps:
One, it initializes
One timer J (counter) 1, is set, for recording from track adjacent 2 points of former point to latter point Touch traveling time;
2, three array A (8), B (1,8), C (1,3) are defined, as shown in Figure 1;
A (0), A (8) are respectively used to adjacent 2 points of former point on storage track in A (8), width is presented in the person's handwriting of latter point Width is presented in degree, the person's handwriting that A (1) ... A (7) are used to store the adjacent equidistant interpolation point in 2 points of centre on track;
[B (0,0), B (1,0)], [B (0,8), B (1,8)] be respectively used to storage track on adjacent 2 points of former point, after The coordinate of a bit, [B (0,1), B (1,1)] ... [B (0,7), B (1,7)] store the adjacent equidistant interpolation point in 2 points of centre on track Coordinate;
[C (0,0), C (1,0)], [C (0,1), C (1,1)], [C (0,2), C (1,2)], [C (0,3), C (1,3)] are used respectively 1 point of four auxiliary magnets, 2 points, 3 points, 4 points of the coordinate needed when storing person's handwriting and presenting, this four points are and [B (0, h), B (1, h)], [B (0, h+1), B (1, h+1)], point [B (0, h), B (1, h)], the person's handwriting at [B (0, h+1), B (1, h+1)] be presented Width A (h), A (h+1) and person's handwriting inclination angle relevant (0<=h<=7);
3, a basic width integer constant DrawWidth for drawing straight line is defined, value 2, entirety can be changed by changing it The fineness that person's handwriting is presented;
4, it defines one and determines that the constant k of width is presented in the maximum person's handwriting per unicursal, value 10, changing it can also change Become the fineness that whole person's handwriting is presented;
5, unicursal first stroke of a Chinese character inclination angle constant G, 45 degree of value range, " person's handwriting line and single-point when it is the stroke first stroke of a Chinese character are defined The inclination angle of the vertical line of motion track, as shown in Figure 2;
6, it defines a person's handwriting and tilts angle variable P, the folder of needs inclined person's handwriting line and X-axis is presented for storing all person's handwritings Angle, person's handwriting inclination angle is related with adjacent 2 points of line direction and stroke first stroke of a Chinese character inclination angle constant G, is in this example:Calculate two rails The angle of the vertical line and transverse coordinate axis forward direction of mark point line is added then at 45 degree (values of G), obtains this person's handwriting and pen is presented Mark inclination angle P, as shown in Figure 2;
Two, next touch point (or the first point) coordinate for obtaining touch track, coordinate is assigned to [B (0,8), B (1, 8)], determine whether the first touch point, if:By maximum person's handwriting present width 2*10 (value of DrawWidth*k, at this moment k take Value is 10), in assignment to A (8), timer J resets, and starts timing, in going to step three (7);If not turning in next step;
Three, adjacent 2 person's handwritings presentation is as follows on track:
(1) by [B (0,0), B (1,0)], [B (0,8), B (1,8)] two point coordinates calculate 2 points of distance;Such as C in Fig. 3 It is shown;
(2) above-mentioned distance is removed in the touch movement speed of value acquisition adjacent point-to-point transmission on track of timer J, such as Fig. 3 Middle C, shown timer J are reset, and restart timing;
(3) use the maximum person's handwriting of stroke that the touch of width 2*10 (value of DrawWidth*k) divided by adjacent point-to-point transmission is presented Movement speed obtains the person's handwriting at latter point and width is presented, and is A (8) assignment;If when speed is less than 1.1 when (a certain threshold values), using Maximum person's handwriting is presented the person's handwriting that width 2*10 (value of DrawWidth*k) is latter point and pen wide A (8) assignment is presented;Such as C in Fig. 3 It is shown;
(4) according to [B (0,0), B (1,0)], adjacent 2 points of coordinate value on the track [B (0,8), B (1,8)], use is equidistant The method of interpolation is inserted into 8-1 point in point-to-point transmission, calculates coordinate, and assignment is to [B (0,1), B (1,1)] ... [B (0,8-1), B (1,8-1)] in, as shown in D in Fig. 3;The value of width A (0), A (8) is presented with linearly according to adjacent 2 points of person's handwriting on track Method calculate the person's handwriting at 8-1 insertion point width be presented, for A (1) ... A (8-1) assignment, as shown in E in Fig. 3;
(5) according to adjacent two point coordinates on track [B (0,0), B (1,0)], two tracing points [B (0,8), B (1,8)], are calculated The angle of the vertical line and transverse coordinate axis forward direction of line, then be added with 45 degree (values of G), it obtains this person's handwriting and person's handwriting inclination is presented Angle P, as shown in F in Fig. 3;
(6) to 2 points [B (0, h), B (1, h)] of 8 groups of consecutive points in 8+1 point, [B (0, h+1), B (1, h+1)] into Row person's handwriting is presented (0<=h<=8-1):As shown in G, H in Fig. 3.
It is presented 1. width A (h+1) is presented according to coordinate, the person's handwriting at P and point [B (0, h+1), B (1, h+1)] and calculates person's handwriting When need 3 points of two auxiliary magnets, 4 points of coordinate be [C (0,2), C (1,2)], [C (0,3), C (1,3)] assignment;Point [B (0, h + 1), (1, h+1) B] be 3 points, 4 line segments Along ent, as shown in G in Fig. 3;
2. if point [B (0, h), B (1, h)] is the first stroke of a Chinese character point of unicursal, then according at P and point [B (0, h), B (1, h)] It is auxiliary that two needed when width A (h) (being at this moment the maximum person's handwriting presentation width of person's handwriting) calculating person's handwriting is presented are presented in coordinate, person's handwriting Help a little 1 point, 2 points of coordinate be [C (0,0), C (1,0)], [C (0,1), C (1,1)] assignment, as shown in Figure 3 G;If point [B (0, H), (1, h) B] be not unicursal first stroke of a Chinese character point, then [C (0,0), C (1,0)], [C (0,1), C (1,1)] value be upper primary Person's handwriting present the 4. step assign;
3. the basic width 2 (value of DrawWidth) using picture straight line draws following six line segments, as shown in H in Fig. 3;
[B (0, h), B (1, h)]-[C (0,1), C (1,1)] (2 points);
[C (0,1), C (1,1)] (2 points)-[C (0,2), C (1,2)] (3 points)
[C (0,2), C (1,2)] (3 points)-[C (0,3), C (1,3)] (4 points)
[C (0,3), C (1,3)] (4 points)-[C (0,0), C (1,0)] (1 point)
[C (0,0), C (1,0)] (1 point)-[B (0, h), B (1, h)]
[B (0, h), B (1, h)]-[B (0, h+1), B (1, h+1)]
4. the coordinate value [C (0,3), C (1,3)] that 4 point of auxiliary magnet assign 1 point of auxiliary magnet coordinate value [C (0,0), C (1, 0)], the coordinate value [C (0,2), C (1,2)] of 3 points of auxiliary magnet assigns the coordinate value [C (0,1), C (1,1)] of 2 points of auxiliary magnet;
5. [if B (0, h+1), B (1, h+1)] has been adjacent 2 points of latter point on track, i.e. h+1=8 turns (7);
6. 1. h=h+1 turns;
(7) judge whether [B (0,8), B (1,8)] point is last point in touch track, if walking around step four;If it is not, then The value of A (8) assigns A (0);[B (0,8), B (1,8)] assignment and [B (0,0), B (1,0)], go to step two;
Four, single-point track is rendered as that there is the method for type feature person's handwriting to terminate;
In the presentation effect such as Fig. 3 of this method shown in A, B.

Claims (1)

1. a kind of touch screen hand-writing input single-point track is rendered as the method with type feature person's handwriting, which is characterized in that including Following steps:
One, it initializes
One timer J (counter) 1, is set, for recording from track adjacent 2 points of former point to the touch of latter point Traveling time;
2, three array A (n), B (1, n), C (1,3) are defined, n value ranges are 3 to 100 integer under normal circumstances:
A (0), A (n) are respectively used to adjacent 2 points of former point on storage track in A (n), width, A is presented in the person's handwriting of latter point (1) ... A (n-1) is used to store the person's handwriting presentation width of the adjacent equidistant interpolation point in 2 points of centre on track;
[B (0,0), B (1,0)], [B (0, n), B (1, n)] are respectively used to adjacent 2 points of former point, latter point on storage track Coordinate, [B (0,1), B (1,1)] ... [B (0, n-1), B (1, n-1)] store track on the adjacent equidistant interpolation point in 2 points of centre Coordinate;
[C (0,0), C (1,0)], [C (0,1), C (1,1)], [C (0,2), C (1,2)], [C (0,3), C (1,3)] is respectively used to deposit Put 1 point of four auxiliary magnets needed when person's handwriting is presented,, 4 points of coordinate at 2 points at 3 points, this four points be with [B (0, h), B (1, H)], width is presented in [B (0, h+1), B (1, h+1)], point [B (0, h), B (1, h)], the person's handwriting at [B (0, h+1), B (1, h+1)] A (h), A (h+1) and person's handwriting inclination angle relevant (0<=h<=n-1);
3, a basic width integer constant DrawWidth for drawing straight line is defined, value range is generally 1-10, and changing it can change Become the fineness that whole person's handwriting is presented;
4, it defines one and determines that the constant k of width is presented in the maximum person's handwriting per unicursal, value range is generally whole between 5-20 Number, the fineness that whole person's handwriting is presented can also be changed by changing it;
5, unicursal first stroke of a Chinese character inclination angle constant G is defined, value range 0 to 60 is spent, and " person's handwriting line is moved with single-point when it is the stroke first stroke of a Chinese character The inclination angle of the vertical line of dynamic rail mark;
6, it defines a person's handwriting and tilts angle variable P, the angle of needs inclined person's handwriting line and X-axis is presented for storing all person's handwritings, Person's handwriting inclination angle is related with adjacent 2 points of line direction and stroke first stroke of a Chinese character inclination angle constant G;
Two, next touch point (or the first touch point) coordinate for obtaining touch track, coordinate is assigned to [B (0, n), B (1, N)], determine whether the first touch point, if:Maximum person's handwriting is presented in width D rawWidth*k assignment to A (n), timing Device J is reset, and starts timing, in going to step three (7);If not turning in next step;
Three, adjacent 2 person's handwritings presentation is as follows on track:
(1) by [B (0,0), B (1,0)], [B (0, n), B (1, n)] two point coordinates calculate 2 points of distance;
(2) above-mentioned distance is removed in the touch movement speed of value acquisition adjacent point-to-point transmission on track of timer J, and timer J is clear Zero, restart timing;
(3) after being obtained with the touch movement speed of the maximum person's handwriting of stroke presentation width D rawWidth*k divided by adjacent point-to-point transmission Width is presented in person's handwriting at a little, is A (n) assignment;If speed is less than a certain threshold values, width is presented with maximum person's handwriting DrawWidth*k is that wide A (n) assignment of pen is presented in the person's handwriting of latter point;
(4) according to [B (0,0), B (1,0)], adjacent 2 points of coordinate value on the track [B (0, n), B (1, n)], with equidistant interpolation Method, be inserted into n-1 point in point-to-point transmission, calculate coordinate, and assignment is to [B (0,1), B (1,1)] ... [B (0, n-1), B (1, N-1 in)];Width A (0) is presented according to adjacent 2 points of person's handwriting on track, the value of A (n) calculates n-1 with linear method and inserts Width is presented in person's handwriting at access point, is A (1) ... A (n-1) assignment;
(5) according to adjacent two point coordinates on track [B (0,0), B (1,0)], two tracing point lines [B (0, n), B (1, n)], are calculated Vertical line and transverse coordinate axis forward direction angle, then be added with G to obtain this person's handwriting and person's handwriting inclination angle P be presented;
(6) pen is carried out to [B (0, h), B (1, h)] of the n group consecutive points in n+1 point, [B (0, h+1), B (1, h+1)] at 2 points Mark is presented (0<=h<=n-1):
It is needed 1. width A (h+1) is presented according to coordinate, the person's handwriting at P and point [B (0, h+1), B (1, h+1)] and calculates when person's handwriting is presented 3 points of two auxiliary magnets, 4 points of the coordinate wanted are [C (0,2), C (1,2)], [C (0,3), C (1,3)] assignment;
2. if point [B (0, h), B (1, h)] is the first stroke of a Chinese character point of unicursal, then according at P and point [B (0, h), B (1, h)] coordinate, Person's handwriting is presented width A (h) (being at this moment the maximum person's handwriting presentation width of person's handwriting) and calculates two auxiliary magnets 1 needed when person's handwriting is presented Point, 2 points of coordinate are [C (0,0), C (1,0)], [C (0,1), C (1,1)] assignment;If point [B (0, h), B (1, h)] is not one The first stroke of a Chinese character point of picture, then [C (0,0), C (1,0)], [C (0,1), C (1,1)] value be upper primary person's handwriting present the 4. step assign It gives;
3. the basic width DrawWidth using picture straight line draws following six line segments:
[B (0, h), B (1, h)]-[C (0,1), C (1,1)] (2 points)
[C (0,1), C (1,1)] (2 points)-[C (0,2), C (1,2)] (3 points)
[C (0,2), C (1,2)] (3 points)-[C (0,3), C (1,3)] (4 points)
[C (0,3), C (1,3)] (4 points)-[C (0,0), C (1,0)] (1 point)
[C (0,0), C (1,0)] (1 point)-[B (0, h), B (1, h)]
[B (0, h), B (1, h)]-[B (0, h+1), B (1, h+1)]
4. the coordinate value [C (0,3), C (1,3)] that 4 points of auxiliary magnet assigns the coordinate value [C (0,0), C (1,0)] of 1 point of auxiliary magnet, auxiliary Help the coordinate value [C (0,1), C (1,1)] of a little 3 points of coordinate value [C (0,2), C (1,2)] 2 points of auxiliary magnet of imparting;
5. [if B (0, h+1), B (1, h+1)] has been adjacent 2 points of latter point on track, i.e. h+1=n turns (7);
6. 1. h=h+1 turns;
(7) judge whether [B (0, n), B (1, n)] point is last point in touch track, if so, going to step four;If it is not, then A (n) value assigns A (0);[B (0, n), B (1, n)] assignment and [B (0,0), B (1,0)], go to step two;
Four, single-point track is rendered as that there is the method for type feature person's handwriting to terminate.
CN201710350804.8A 2017-01-20 2017-05-18 Method for presenting handwriting with type pen characteristic to touch screen handwriting input Active CN108334270B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2017100520495 2017-01-20
CN201710052049.5A CN106708413A (en) 2017-01-20 2017-01-20 Method of enabling touch screen hand input to be presented as handwriting with stoke characteristics

Publications (2)

Publication Number Publication Date
CN108334270A true CN108334270A (en) 2018-07-27
CN108334270B CN108334270B (en) 2022-03-18

Family

ID=58909500

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201710052049.5A Withdrawn CN106708413A (en) 2017-01-20 2017-01-20 Method of enabling touch screen hand input to be presented as handwriting with stoke characteristics
CN201710350804.8A Active CN108334270B (en) 2017-01-20 2017-05-18 Method for presenting handwriting with type pen characteristic to touch screen handwriting input

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201710052049.5A Withdrawn CN106708413A (en) 2017-01-20 2017-01-20 Method of enabling touch screen hand input to be presented as handwriting with stoke characteristics

Country Status (1)

Country Link
CN (2) CN106708413A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381754A (en) * 2020-04-30 2020-07-07 京东方科技集团股份有限公司 Handwriting processing method, equipment and medium

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108597006B (en) * 2018-04-28 2019-04-05 掌阅科技股份有限公司 The method for drafting of handwriting calculates equipment and computer storage medium
CN108628532A (en) * 2018-04-28 2018-10-09 掌阅科技股份有限公司 Method for drafting, computing device and the computer storage media of broken line person's handwriting
CN109271084B (en) * 2018-08-22 2021-05-07 安徽慧视金瞳科技有限公司 Drawing method for simulating pen touch of art designing pen
CN111142770B (en) * 2019-12-23 2023-04-25 江苏欧帝电子科技有限公司 Method and processing device for generating strokes
CN113589999B (en) * 2020-04-30 2024-01-30 京东方科技集团股份有限公司 Handwriting processing method, handwriting processing device and non-transitory storage medium
CN112102434A (en) * 2020-09-22 2020-12-18 深圳市皓丽智能科技有限公司 Handwriting drawing method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0509996A1 (en) * 1990-01-08 1992-10-28 Wang Laboratories Computer apparatus for brush styled writing.
CN101118650A (en) * 2007-09-14 2008-02-06 广东威创日新电子有限公司 Writing style instantaneous realizing method
CN102103761A (en) * 2011-01-31 2011-06-22 周佳 Method for realizing original handwriting
CN102902407A (en) * 2012-09-12 2013-01-30 青岛海信移动通信技术股份有限公司 Method and equipment for touch handwriting inputting and displaying of touch screen
CN106125963A (en) * 2016-06-24 2016-11-16 江西金格科技股份有限公司 On a kind of equipment without pressure sensitivity former person's handwriting Handwriting Signature System and the former person's handwriting of PDF document hand-written sign method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0509996A1 (en) * 1990-01-08 1992-10-28 Wang Laboratories Computer apparatus for brush styled writing.
CN101118650A (en) * 2007-09-14 2008-02-06 广东威创日新电子有限公司 Writing style instantaneous realizing method
CN102103761A (en) * 2011-01-31 2011-06-22 周佳 Method for realizing original handwriting
CN102902407A (en) * 2012-09-12 2013-01-30 青岛海信移动通信技术股份有限公司 Method and equipment for touch handwriting inputting and displaying of touch screen
CN106125963A (en) * 2016-06-24 2016-11-16 江西金格科技股份有限公司 On a kind of equipment without pressure sensitivity former person's handwriting Handwriting Signature System and the former person's handwriting of PDF document hand-written sign method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈露开: "基于轮廓方法的实时手写美化技术及应用", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111381754A (en) * 2020-04-30 2020-07-07 京东方科技集团股份有限公司 Handwriting processing method, equipment and medium
US11687233B2 (en) 2020-04-30 2023-06-27 Boe Technology Group Co., Ltd. Handwriting processing method, touch display device, computer device and storage medium

Also Published As

Publication number Publication date
CN108334270B (en) 2022-03-18
CN106708413A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN108334270A (en) Touch screen hand-writing input is rendered as the method with type feature person&#39;s handwriting
CN103093196B (en) Character interactive input and recognition method based on gestures
CN103440101B (en) Processing method, system and the mobile phone of a kind of original handwriting data
CN106547433A (en) Written handwriting determines method and device
CN102521858A (en) Handwriting generating method for electronic writing brush
CN106325737A (en) Method and equipment for erasing writing path
US20150248166A1 (en) System for spontaneous recognition of continuous gesture input
CN106527940A (en) Handwriting determination method and apparatus
CN103823554A (en) Digital virtual-real interaction system and digital virtual-real interaction method
CN102135836A (en) Superposition hand input method and system
CN108335340A (en) Pressure touch screen handwriting input is rendered as the method with type feature person&#39;s handwriting
CN104866121A (en) Drawing system and drawing method for three-dimensional model
CN103150059B (en) Electronic system and track detection method
CN102141892A (en) Display method and system for overlaying handwritten input
CN106909246A (en) A kind of electronic writing method for deleting and Intelligent touch TV
CN102662465A (en) Method and system for inputting visual character based on dynamic track
CN102681745A (en) Handwriting input system and user terminal
US11789604B2 (en) Handwriting processing method, handwriting processing device and non-transitory storage medium
CN102402279A (en) Human-computer interaction method and system based on gestures
CN111477040A (en) Induced calligraphy training system, equipment and method
Blagojevic et al. Using Tangible Drawing Tools on a Capacitive Multi–touch Display
CN110490157A (en) Text appraisal procedure, character learning method, device, equipment and storage medium
CN109358799A (en) The method of the hand annotation information of user&#39;s input is added on handwriting equipment
WO2024093579A1 (en) Display device and handwriting display method
CN1232900C (en) System and method for producing stroke and character

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant