CN106708413A - Method of enabling touch screen hand input to be presented as handwriting with stoke characteristics - Google Patents
Method of enabling touch screen hand input to be presented as handwriting with stoke characteristics Download PDFInfo
- Publication number
- CN106708413A CN106708413A CN201710052049.5A CN201710052049A CN106708413A CN 106708413 A CN106708413 A CN 106708413A CN 201710052049 A CN201710052049 A CN 201710052049A CN 106708413 A CN106708413 A CN 106708413A
- Authority
- CN
- China
- Prior art keywords
- point
- handwriting
- points
- person
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
- G06F3/04883—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/80—Creating 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 invention discloses a method of enabling touch screen hand input to be presented as handwriting with stoke characteristics and belongs to presentation methods of touch screen handwriting. The method includes the steps that the speed characteristics of touch writing except track points are obtained, the handwriting presentation width of each point is determined according to the speed characteristics, the handwriting between two adjacent two points of the trajectory is presented by inserting n-1 points by a moderate distance between two points, according to the handwriting presentation width on two adjacent two points of the trajectory, n-1 handwriting presentation widths are inserted linearly for n-1 points, finally, in n+1 points, for all adjacent two points, through the two points and four auxiliary points related to the two points, the handwriting presentation widths of the two points and the handwriting slope angle, the method is realized by drawing six linear segments. The method solves the problems that the handwriting of the existing touch writing product is inflexible, the writing feature of the computer is obvious and the stroke style of different writers is not reflected.
Description
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 is used, 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 symbol, the phonetic element of country variant to be input into.This person's handwriting is presented, and writing is stayed
Plate, computerized feature substantially, can not reflect the type style of different writers at all.With handwriting input application with it is general
And, computer software how can be in by the track of this single-point sequence, the characteristics of track is formed when being write according to touch
Now for the beautiful person's handwriting (such as pen, chalk, writing brush etc. shape pen) with common written shape feature attractive in appearance is always big
The problem of family's concern research.Certain methods and patent are also occurred in that in these research process:The such as A of CN 103257735《Hand
Write the stroke display method and electronic installation of input》, application number 201510401837.1《The written handwriting for being applied to writing brush is presented
Method and apparatus》Etc., but they all do not solve this problem well.The solution of this problem is to some handheld devices
Chinese Character Recognition be not critically important, but for the touch apparatus for writing that one-to-many communicating site is used, such as classroom instruction
For interactive electronic blackboard system product, solve this problem it is critical that.Because touch can be presented when writing
Go out the beautiful person's handwriting with common written shape feature attractive in appearance, writing on the blackboard (writing) feature of different teachers can be showed, directly
Connect the popularization and application for having influence on interactive electronic blackboard system in classroom teaching.
For this problem, our common feature to common written shape person's handwriting (such as pen, chalk, writing brushes etc.
Shape pen) substantial amounts of research has been carried out, obtain on the basis of common touch-screen (i.e. non-pressure screen),《Touch screen hand-writing is input into
Single-point track is rendered as the method with type feature person's handwriting》Technical scheme, 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.
The content of the invention:
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 presentation is write, 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, computerized feature is obvious, it is impossible to reflect the problem of the type style of different writers, there is provided a kind of
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 the present invention, the substance of rendering method of identifying the handwriting first is described as follows:
Any rendering method for touching handwriting trace, its core is the coordinate for obtaining any two neighboring tracing point on track
And after further feature, the rendering method between 2 points.This core determines a presentation for 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 on track of person's handwriting that person's handwriting per unicursal track is presented.
On a stroke, there are multiple tracing points, every bit has a person's handwriting that width is presented, 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, typically can use 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 is by adjacent touch to move to the speed of this point and k is determined, the value of m is equal to this speed
Except k.When point be stroke track first stroke of a Chinese character point or from track consecutive points move to the speed of this point and are less than a certain valve
During value, it is that maximum person's handwriting is presented width D rawWidth*k that the person's handwriting of this point is presented width;So DrawWidth*k can also claim
For the first stroke of a Chinese character of stroke is presented width.
It is to insert n-1 point by two moderate distances that adjacent 2 points of person's handwriting is presented on per unicursal track, and
And the person's handwriting according to adjacent 2 points on track is presented width for n-1 point Linear inserts n-1 person's handwriting presentation width, finally in n+
In 1 point, to all adjacent 2 points, by this 2 points and " and this 2 points, the person's handwriting at this 2 point is presented width, person's handwriting and inclines
Oblique angle is related " four auxiliary magnets, draw what six straightways were realized.
To achieve the above object, the present invention provides following technical scheme:
A kind of touch screen hand-writing input single-point track is rendered as the method with type feature person's handwriting, comprises the following steps:
First, initialize
One timer J (counter) the 1st, is set, for recording adjacent 2 points from track of former point to latter point
Touch traveling time;
2nd, define three arrays A (n), B (1, n), C (1,3), n spans generally for 3 to 100 integer:
A (0), A (n) are respectively used to deposit adjacent 2 points of former point on track in A (n), the person's handwriting of latter point is presented wide
Degree, the person's handwriting that A (1) ... A (n-1) is used for the equidistant interpolation point in centre for depositing adjacent 2 points on track is presented width;
[B (0,0), B (1,0)], [B (0, n), B (1, n)] be respectively used to deposit track on adjacent 2 points former point, after
The coordinate of a bit, adjacent 2 points of centre is equidistantly inserted on [B (0,1), B (1,1)] ... [B (0, n-1), B (1, n-1)] storage track
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
In depositing 1 point of four auxiliary magnets,, 4 points of the coordinate that are needed when person's handwriting is presented at 2 points at 3 points, this four points be with [B (and 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)] place is presented
(the 0 of width A (h), A (h+1) and person's handwriting inclination angle correlation<=h<=n-1);
3rd, a basic width integer constant DrawWidth for drawing straight line is defined, span is generally 1-10, and changing it can
To change the fineness that overall person's handwriting is presented;
4th, define one and determine that the maximum person's handwriting per unicursal is presented the constant k of width, span is generally between 5-20
Integer, changing it can also change the fineness that overall person's handwriting is presented;
5th, unicursal first stroke of a Chinese character inclination angle constant G is defined, span 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;
6th, define a person's handwriting and incline angle variable P, the folder for needing inclined person's handwriting line and X-axis is presented for depositing all person's handwritings
Angle, line direction of the person's handwriting inclination angle with adjacent 2 points and stroke first stroke of a Chinese character inclination angle constant G are relevant;
2nd, next touch point (or first touch point) coordinate of touch track is obtained, coordinate is assigned to [B (0, n), B
(1, n)], determine whether the first touch point, if:By in maximum person's handwriting presentation width D rawWidth*k assignment to A (n), count
When device J reset, start timing, in going to step three (7);If not turning next step;
3rd, comprising the following steps that of presenting of adjacent 2 person's handwritings 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 obtains the touch translational speed of the adjacent point-to-point transmission on track, timer except the value in timer J
J resets, and restarts timing;
(3) width D rawWidth*k is presented with the maximum person's handwriting of stroke to be obtained divided by the touch translational speed of adjacent point-to-point transmission
Person's handwriting to latter point is presented width, is A (n) assignment;If speed is less than a certain threshold values, width is presented with maximum person's handwriting
DrawWidth*k is presented pen A (n) assignment wide for the person's handwriting of latter point;
(4) according to [B (0,0), B (1,0)], [B (0, n), B (1, n)] adjacent 2 points of coordinate value on track, with equidistant
The method of interpolation, n-1 point is inserted 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 on track of person's handwritings, the value of A (n) calculates n-1 with linear method
Person's handwriting at individual insertion point is presented width, is A (1) ... A (n-1) assignment;
(5) according to adjacent two point coordinates on track [B (0,0), B (1,0)], [B (0, n), B (1, n)], calculate two tracing points
The vertical line of the line angle positive with transverse coordinate axis, then is added with G and obtains this person's handwriting presentation person's handwriting inclination angle P;
(6) to 2 points of the n group consecutive points in n+1 point [B (and 0, h), B (1, h)], [B (0, h+1), B (1, h+1)] enters
Row person's handwriting is presented (0<=h<=n-1):
1. coordinate according to P and point [B (0, h+1), B (1, h+1)] place, person's handwriting are presented width A (h+1) and calculate person's handwriting presentation
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;
If 2. point [B (and 0, h), B (1, h)] be unicursal first stroke of a Chinese character point, then according to P and point [B (and 0, h), B (1, h)] place
It is auxiliary that coordinate, person's handwriting are presented 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
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)] no
It is the first stroke of a Chinese character point of unicursal, then [C (0,0), C (1,0)], the value of [C (0,1), C (1,1)] are the presented in upper once person's handwriting
4. step is assigned;
3. following six line segments are drawn using the basic width DrawWidth of picture straight line:
[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. 4 points of auxiliary magnet coordinate value [C (0,3), C (1,3)] 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
If 5. [B (0, h+1), B (1, h+1)] has been adjacent 2 points on track of latter point, i.e. h+1=n turns (7);
6. 1. h=h+1 turns
(7) judge [B (and 0, n), B (1, n)] point whether be 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;
4th, single-point track is rendered as the method with type feature person's handwriting and terminates.
Beneficial effect of the present invention:Product being write the present invention be directed to existing touch and being presented that writing is stiff, computerized is special
Levy substantially, it is impossible to reflect the problem of the type style of different writers, by the common feature (ratio to common written shape person's handwriting
Such as pen, chalk, writing brush shape pen) and the touch in addition to the locus of points is touched that can obtain when writing of touch-screen write
The research of feature, acquisition on the basis of common touch-screen (i.e. non-pressure screen)《Touch screen hand-writing input single-point track is presented
It is the method with type feature person's handwriting》Technical scheme, this programme touched during handwriting trace is presented software using can make
Touch is write and shows the handwriting characteristic that plain edition pen is write, 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.
Brief 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 incline 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 embodiment
Further description is made to the present invention below in conjunction with accompanying drawing.
Embodiment 1
Any rendering method for touching handwriting trace, its core is the coordinate for obtaining any two neighboring tracing point on track
And after further feature, the rendering method between 2 points.This core determines a presentation for 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 on track of person's handwriting that person's handwriting per unicursal track is presented.Such as Fig. 3 B
It is shown.
On a stroke, there are multiple tracing points, every bit has a person's handwriting that width is presented, and the person's handwriting of every bit is presented
Width is be relatively fixed value 2 (DrawWidth values are 2) m a times, and m values are the real number between 1 to 10 (k values 10)
(k is an integer, the integer between general desirable 5-20, is taken in this example 10), and 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 by adjacent touch to move to the speed of this point and 10 (k) determines
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 of this point is moved less than 1.1 (during a certain threshold values), it is that maximum person's handwriting is presented width 2* that the person's handwriting of this point is presented width
10(DrawWidth*k);So the first stroke of a Chinese character that 2*10 (DrawWidth*k) is alternatively referred to as stroke is presented width.
It is to insert 8-1 point by two moderate distances that adjacent 2 points of person's handwriting is presented on per unicursal track, and
And the person's handwriting according to adjacent 2 points on track is presented width for 8-1 point Linear inserts 8-1 person's handwriting presentation width, finally in 8+
In 1 point, to all adjacent 2 points, by this 2 points and " and this 2 points, the person's handwriting at this 2 point is presented width, person's handwriting and inclines
Oblique angle is related " 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 Figure 1-3 is rendered as the method with type feature person's handwriting,
Comprise the following steps:
First, initialize
One timer J (counter) the 1st, is set, for recording adjacent 2 points from track of former point to latter point
Touch traveling time;
2nd, 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 deposit adjacent 2 points of former point on track in A (8), the person's handwriting of latter point is presented wide
Degree, A (1) ... A (7) is presented width for depositing the person's handwriting of the equidistant interpolation point in adjacent 2 points on track of centre;
[B (0,0), B (1,0)], [B (0,8), B (1,8)] be respectively used to deposit track on adjacent 2 points former point, after
The coordinate of a bit, adjacent 2 points of the equidistant interpolation point in centre on [B (0,1), B (1,1)] ... [B (0,7), B (1,7)] storage 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
In depositing 1 point of four auxiliary magnets,, 4 points of the coordinate that are needed when person's handwriting is presented at 2 points at 3 points, this four points be with [B (and 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)] place is presented
(the 0 of width A (h), A (h+1) and person's handwriting inclination angle correlation<=h<=7);
3rd, a basic width integer constant DrawWidth for drawing straight line is defined, value is 2, and changing it can change entirety
The fineness that person's handwriting is presented;
4th, define one and determine that the maximum person's handwriting per unicursal is presented the constant k of width, value is 10, and changing it can also change
Become the fineness that overall person's handwriting is presented;
5th, unicursal first stroke of a Chinese character inclination angle constant G, 45 degree of span, " 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;
6th, define a person's handwriting and incline angle variable P, the folder for needing inclined person's handwriting line and X-axis is presented for depositing all person's handwritings
Angle, line direction of the person's handwriting inclination angle with adjacent 2 points and stroke first stroke of a Chinese character inclination angle constant G are relevant, are in this example:Calculate two rails
The vertical line of the mark point line angle positive with transverse coordinate axis, 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;
2nd, next touch point (or) coordinate of touch track is obtained at first point, coordinate is assigned to [B (0,8), B (1,
8) the first touch point], is determined whether, if:By maximum person's handwriting present width 2*10 (value of DrawWidth*k, at this moment k take
It is worth for 10), in assignment to A (8), timer J resets, and starts timing, in going to step three (7);If not turning next step;
3rd, comprising the following steps that of presenting of adjacent 2 person's handwritings 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 obtains the touch translational speed of the adjacent point-to-point transmission on track, such as Fig. 3 except the value in timer J
Middle C, shown timer J resets, and restarts timing;
(3) width 2*10 (value of DrawWidth*k) is presented divided by the touch of adjacent point-to-point transmission with the maximum person's handwriting of stroke
The person's handwriting that translational speed obtains at latter point is presented width, is A (8) assignment;If when speed is less than 1.1 when (a certain threshold values), using
Maximum person's handwriting is presented width 2*10 (value of DrawWidth*k) for the person's handwriting of latter point is presented pen A wide (8) assignment;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 [B (0,8), B (1,8)] track, with equidistant
The method of interpolation, 8-1 point is inserted 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 on track of person's handwritings
Method calculate 8-1 insertion point at person's handwriting presentation width, be 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)], [B (0,8), B (1,8)], two tracing points are calculated
The vertical line of the line angle positive with transverse coordinate axis, then be added with 45 degree (values of G), obtain this person's handwriting and person's handwriting inclination is presented
Angle P, as shown in F in Fig. 3;
(6) in 8+1 point 8 groups the two of consecutive points points [B (and 0, h), B (1, h)], [B (0, h+1), B (1, h+1)] enters
Row person's handwriting is presented (0<=h<=8-1):As shown in G, H in Fig. 3.
1. coordinate according to P and point [B (0, h+1), B (1, h+1)] place, person's handwriting are presented width A (h+1) and calculate person's handwriting presentation
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), B (1, h+1)] it is 3 points, 4 Along ents of line segment, as shown in G in Fig. 3;
If 2. point [B (and 0, h), B (1, h)] be unicursal first stroke of a Chinese character point, then according to P and point [B (and 0, h), B (1, h)] place
It is auxiliary that coordinate, person's handwriting are presented 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
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), B (1, h)] be not unicursal first stroke of a Chinese character point, then [C (0,0), C (1,0)], the value of [C (0,1), C (1,1)] be it is upper once
Person's handwriting present the 4. step assign;
3. following six line segments are drawn using the basic width 2 (value of DrawWidth) of picture straight line, 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. 4 points of auxiliary magnet coordinate value [C (0,3), C (1,3)] 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;
If 5. [B (0, h+1), B (1, h+1)] has been adjacent 2 points on track of latter point, 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;
4th, single-point track is rendered as the method with type feature person's handwriting and terminates;
The presentation effect of this method is as shown in A, B in Fig. 3.
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, it is characterised in that including
Following steps:
First, initialize
One timer J (counter) the 1st, is set, for recording adjacent 2 points from track of former point to the touch of latter point
Traveling time;
2nd, define three arrays A (n), B (1, n), C (1,3), n spans generally for 3 to 100 integer:
A (0), A (n) are respectively used to deposit adjacent 2 points of former point on track in A (n), the person's handwriting of latter point is presented width, A
(1) ... A (n-1) is used for the person's handwriting presentation width of the equidistant interpolation point in centre for depositing adjacent 2 points on track;
[B (0,0), B (1,0)], [B (0, n), B (1, n)] it is respectively used to deposit adjacent 2 points on track of former point, latter point
Coordinate, adjacent 2 points of the equidistant interpolation point in centre on [B (0,1), B (1,1)] ... [B (0, n-1), B (1, n-1)] storage 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)] is respectively used to deposit
Put 1 point of four auxiliary magnets,, 4 points of the coordinate that need when person's handwriting is presented at 2 points at 3 points, this four points be with [B (and 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)] place width is presented
(the 0 of A (h), A (h+1) and person's handwriting inclination angle correlation<=h<=n-1);
3rd, a basic width integer constant DrawWidth for drawing straight line is defined, span is generally 1-10, and changing it can change
Become the fineness that overall person's handwriting is presented;
4th, define one and determine that the maximum person's handwriting per unicursal is presented the constant k of width, span is generally whole between 5-20
Number, changing it can also change the fineness that overall person's handwriting is presented;
5th, unicursal first stroke of a Chinese character inclination angle constant G is defined, span 0 to 60 is spent, " 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;
6th, define a person's handwriting and incline angle variable P, the angle for needing inclined person's handwriting line and X-axis is presented for depositing all person's handwritings,
Line direction of the person's handwriting inclination angle with adjacent 2 points and stroke first stroke of a Chinese character inclination angle constant G are relevant;
2nd, next touch point (or first touch point) coordinate of touch track is obtained, coordinate is assigned to [B (0, n), B (1,
N)], the first touch point is determined whether, if:Maximum person's handwriting is presented into width D rawWidth*k assignment in A (n), timing
Device J resets, and starts timing, in going to step three (7);If not turning next step;
3rd, comprising the following steps that of presenting of adjacent 2 person's handwritings 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 obtains the touch translational speed of the adjacent point-to-point transmission on track except the value in timer J, and timer J is clear
Zero, restart timing;
(3) after being obtained divided by the touch translational speed of adjacent point-to-point transmission with the maximum person's handwriting presentation width D rawWidth*k of stroke
Person's handwriting at a little is presented width, is A (n) assignment;If speed is less than a certain threshold values, width is presented with maximum person's handwriting
DrawWidth*k is presented pen A (n) assignment wide for the person's handwriting of latter point;
(4) according to [B (0,0), B (1,0)], [B (0, n), B (1, n)] adjacent 2 points of coordinate value on track, use equidistant interpolation
Method, insert 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 on track of person's handwritings, the value of A (n) calculates n-1 and inserts with linear method
Person's handwriting at access point is presented width, is A (1) ... A (n-1) assignment;
(5) according to adjacent two point coordinates on track [B (0,0), B (1,0)], [B (0, n), B (1, n)], calculate two tracing point lines
The positive angle of vertical line and transverse coordinate axis, then is added with G and obtains this person's handwriting presentation person's handwriting inclination angle P;
(6) to 2 points of the n group consecutive points in n+1 point [B (and 0, h), B (1, h)], [B (0, h+1), B (1, h+1)] carries out pen
Mark is presented (0<=h<=n-1):
1. coordinate according to P and point [B (0, h+1), B (1, h+1)] place, person's handwriting are presented when width A (h+1) calculates person's handwriting presentation and needed
3 points of two auxiliary magnets wanting, 4 points of coordinate are [C (0,2), C (1,2)], [C (0,3), C (1,3)] assignment;
If 2. point [B (and 0, h), B (1, h)] be unicursal first stroke of a Chinese character point, then according to P and point [B (and 0, h), B (1, h)] coordinate at place,
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)] it is not one
The first stroke of a Chinese character point of picture, then [C (0,0), C (1,0)], the value of [C (0,1), C (1,1)] are the 4. step taxes presented in upper once person's handwriting
Give;
3. following six line segments are drawn using the basic width DrawWidth of picture straight line:
[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)] of 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;
If 5. [B (0, h+1), B (1, h+1)] has been adjacent 2 points on track of latter point, i.e. h+1=n turns (7);
6. 1. h=h+1 turns;
(7) judge [B (and 0, n), B (1, n)] point whether be last point in touch track, if so, going to step four;If it is not, then A
N the value of () assigns A (0);[B (0, n), B (1, n)] assignment and [B (0,0), B (1,0)], go to step two;
4th, single-point track is rendered as the method with type feature person's handwriting and terminates.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
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 |
CN201710350804.8A CN108334270B (en) | 2017-01-20 | 2017-05-18 | Method for presenting handwriting with type pen characteristic to touch screen handwriting input |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
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 (1)
Publication Number | Publication Date |
---|---|
CN106708413A true CN106708413A (en) | 2017-05-24 |
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 After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710350804.8A Active CN108334270B (en) | 2017-01-20 | 2017-05-18 | Method for presenting handwriting with type pen characteristic to touch screen handwriting input |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN106708413A (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108597006A (en) * | 2018-04-28 | 2018-09-28 | 掌阅科技股份有限公司 | Method for drafting, computing device and the computer storage media of handwriting |
CN108628532A (en) * | 2018-04-28 | 2018-10-09 | 掌阅科技股份有限公司 | Method for drafting, computing device and the computer storage media of broken line person's handwriting |
CN109271084A (en) * | 2018-08-22 | 2019-01-25 | 安徽慧视金瞳科技有限公司 | A kind of rendering algorithm for simulating art designing pen style of writing |
CN111142770A (en) * | 2019-12-23 | 2020-05-12 | 江苏欧帝电子科技有限公司 | Method for generating pen point and processing device |
CN112102434A (en) * | 2020-09-22 | 2020-12-18 | 深圳市皓丽智能科技有限公司 | Handwriting drawing method, device and equipment |
CN113589999A (en) * | 2020-04-30 | 2021-11-02 | 京东方科技集团股份有限公司 | Handwriting processing method, handwriting processing device and non-transient storage medium |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111381754B (en) * | 2020-04-30 | 2021-10-22 | 京东方科技集团股份有限公司 | Handwriting processing method, equipment and medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH05503383A (en) * | 1990-01-08 | 1993-06-03 | ウォング・ラボラトリーズ・インコーポレーテッド | Computer device for brush style writing |
CN100590659C (en) * | 2007-09-14 | 2010-02-17 | 广东威创视讯科技股份有限公司 | Writing style instantaneous realizing method |
CN102103761B (en) * | 2011-01-31 | 2013-05-08 | 北京壹人壹本信息科技有限公司 | Method for realizing original handwriting |
CN102902407B (en) * | 2012-09-12 | 2015-08-05 | 青岛海信移动通信技术股份有限公司 | A kind of touch-screen output display touches the method and apparatus of person's handwriting |
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 |
-
2017
- 2017-01-20 CN CN201710052049.5A patent/CN106708413A/en not_active Withdrawn
- 2017-05-18 CN CN201710350804.8A patent/CN108334270B/en active Active
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108597006A (en) * | 2018-04-28 | 2018-09-28 | 掌阅科技股份有限公司 | Method for drafting, computing device and the computer storage media of handwriting |
CN108628532A (en) * | 2018-04-28 | 2018-10-09 | 掌阅科技股份有限公司 | Method for drafting, computing device and the computer storage media of broken line person's handwriting |
CN109271084A (en) * | 2018-08-22 | 2019-01-25 | 安徽慧视金瞳科技有限公司 | A kind of rendering algorithm for simulating art designing pen style of writing |
CN109271084B (en) * | 2018-08-22 | 2021-05-07 | 安徽慧视金瞳科技有限公司 | Drawing method for simulating pen touch of art designing pen |
CN111142770A (en) * | 2019-12-23 | 2020-05-12 | 江苏欧帝电子科技有限公司 | Method for generating pen point and processing device |
CN111142770B (en) * | 2019-12-23 | 2023-04-25 | 江苏欧帝电子科技有限公司 | Method and processing device for generating strokes |
CN113589999A (en) * | 2020-04-30 | 2021-11-02 | 京东方科技集团股份有限公司 | Handwriting processing method, handwriting processing device and non-transient storage medium |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN108334270A (en) | 2018-07-27 |
CN108334270B (en) | 2022-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106708413A (en) | Method of enabling touch screen hand input to be presented as handwriting with stoke characteristics | |
CN102521858B (en) | Handwriting generating method for electronic writing brush | |
CN106547433A (en) | Written handwriting determines method and device | |
CN108227980A (en) | Electronic device and its driving method with touch sensor | |
CN103440101A (en) | Handwritten original handwriting data processing method and system and mobile phone | |
CN106527940A (en) | Handwriting determination method and apparatus | |
CN109445676A (en) | The method of the handwritten stroke information of user's input is deleted on handwriting equipment | |
CN103823554A (en) | Digital virtual-real interaction system and digital virtual-real interaction method | |
CN102135836B (en) | Superposition hand input method and system | |
CN103500037A (en) | Track smoothing method and device | |
CN107526526A (en) | Determine the method and device in pressure sensitivity person's handwriting region | |
CN108335340A (en) | Pressure touch screen handwriting input is rendered as the method with type feature person's handwriting | |
CN111142770A (en) | Method for generating pen point and processing device | |
CN103606315A (en) | Touch-screen painting and calligraphy practicing method and practicing device thereof | |
CN108628455B (en) | Virtual sand painting drawing method based on touch screen gesture recognition | |
CN108304129A (en) | Teaching electronics exhibition booth annotation method, equipment, storage medium and system | |
CN102141892A (en) | Display method and system for overlaying handwritten input | |
CN103310489A (en) | Three-dimensional model interactive method based on dynamitic depth hierarchy structure | |
CN102999321A (en) | Writing brush electronic paintbrush setting device and writing brush electronic paintbrush | |
CN104123027A (en) | Touch track smoothing method | |
CN103838429A (en) | Method and system for conducting drawing on touch screen to achieve writing brush effect | |
CN109545012A (en) | A kind of shared tutoring system | |
CN109509240A (en) | A kind of smart machine display methods, readable storage medium storing program for executing and smart machine | |
CN102375994A (en) | Method and device for detecting and reducing correctness of order of strokes of written Chinese character | |
CN201918044U (en) | Interactive language classroom |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170524 |
|
WW01 | Invention patent application withdrawn after publication |