CN107798717A - Electronic brush writing method, device, computer equipment and storage medium - Google Patents
Electronic brush writing method, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN107798717A CN107798717A CN201710823910.3A CN201710823910A CN107798717A CN 107798717 A CN107798717 A CN 107798717A CN 201710823910 A CN201710823910 A CN 201710823910A CN 107798717 A CN107798717 A CN 107798717A
- Authority
- CN
- China
- Prior art keywords
- contact
- current
- sizes
- writing
- history
- 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.)
- Pending
Links
Classifications
-
- 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
-
- 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
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)
- User Interface Of Digital Computer (AREA)
Abstract
The present invention relates to a kind of electronic brush writing method, device, computer equipment and storage medium.Electronic brush writing method includes:The contact data of written handwriting are obtained, contact data include contact coordinate, contact sizes and generation time;Written handwriting includes current contact and history contact, and history contact is with current contact according to generation Time alignment;The contact sizes of current contact are adjusted according to the difference of the generation time of current contact and the generation time of adjacent history contact, or the contact sizes of predetermined number history contact;According to the writing profile of the contact sizes generation current contact after the contact coordinate of current contact and adjustment, the region that writing profile surrounds is rendered.The written handwriting that this method can make the writing brush person's handwriting simulated relatively actual has preferable reduction degree.
Description
Technical field
The present invention relates to field of computer technology, more particularly to electronic brush writing method, device, computer equipment and
Storage medium.
Background technology
With the continuous development of touch screen technology, touch-screen is got in the terminals such as mobile phone, tablet personal computer, electronic whiteboard
Carry out more applications.User can be carried out by touch-screen and terminal it is a variety of interact, such as input Brush calligraphy.When user needs
When terminal writes Brush calligraphy, the electronic writing application journey such as electronic whiteboard software in terminal can be passed through on the touchscreen
Sequence enters writing interface, and writing brush person's handwriting is simulated by finger or felt pen at writing interface.At present, writing brush is simulated on the touchscreen
The method of person's handwriting mainly obtains contact data using hardware device, and processing is modified to contact data by software algorithm.
But in traditional approach, in order that writing brush person's handwriting has preferable smooth effect, software algorithm is being modified place to contact data
Part number of contacts evidence can be abandoned during reason.Due to having abandoned part contact data so that the writing brush person's handwriting simulated is relatively actual
Written handwriting reduction degree is not high.
The content of the invention
Based on this, it is necessary to for above-mentioned technical problem, there is provided a kind of writing brush person's handwriting that can make to simulate is relatively actual
Written handwriting there is electronic brush writing method, device, computer equipment and the storage medium of preferable reduction degree.
A kind of electronic brush writing method, including:
The contact data of written handwriting are obtained, the contact data include contact coordinate, contact sizes and generation time;Institute
Stating written handwriting includes current contact and history contact, and the history contact is with current contact according to generation Time alignment;
According to the difference of the generation time of current contact and the generation time of adjacent history contact, or predetermined number history
The contact sizes of contact are adjusted to the contact sizes of current contact;
According to the writing profile of the contact sizes generation current contact after the contact coordinate of current contact and adjustment, institute is rendered
State the region that writing profile surrounds.
In one of the embodiments, during the generation according to generation time and the adjacent history contact of current contact
Between the difference the step of contact sizes of current contact are adjusted, including:
Obtain the contact coordinate of the history contact adjacent with current contact;
According to the difference of the generation time of generation time and the adjacent history contact of current contact, and current contact
The changing value of contact coordinate and the contact coordinate of adjacent history contact, calculate writing speed corresponding to current contact;
If the writing speed exceedes threshold value, touching for current contact is reduced according to the difference of writing speed and the threshold value
Point size.
In one of the embodiments, the average value of the contact sizes according to the predetermined number history contact is to working as
The step of contact sizes of front contact are adjusted, including:
Calculate the average value of the contact sizes of the predetermined number history contact adjacent with current contact;
The contact sizes of current contact are adjusted to the average value of the contact sizes of the predetermined number history contact.
In one of the embodiments, the written handwriting includes one or more stroke writings, each stroke writing bag
Include multiple contacts;The writing wheel of contact sizes generation current contact after the contact coordinate according to current contact and adjustment
Before wide step, in addition to:
To be generated in stroke writing where current contact the contact sizes of time forward the first predetermined number contact according to
First preset ratio reduces;And/or
To be generated in stroke writing where current contact the contact sizes of the second predetermined number contact of time rearward according to
Second preset ratio reduces.
In one of the embodiments, the contact sizes generation according to after the contact coordinate of current contact and adjustment is worked as
The step of writing profile of front contact, including:
Centered on the contact coordinate of current contact, using the contact sizes after adjustment as diameter, generation current contact is corresponding
Circular contour;
By the circular contour tangent line connection corresponding with an adjacent history contact of circular contour corresponding to current contact, shape
Into writing profile corresponding to present node.
A kind of electronic brush pen writing device, the device include:
Acquisition module, for obtaining the contact data of written handwriting, the contact data include contact coordinate, contact sizes
With the generation time;The written handwriting includes current contact and history contact, and the history contact is with current contact according to generation
Time alignment;
Adjusting module, for generating time and the difference for generating the time of adjacent history contact according to current contact,
Or the contact sizes of predetermined number history contact are adjusted to the contact sizes of current contact;
Rendering module, the book for the contact sizes generation current contact after the contact coordinate according to current contact and adjustment
Profile is write, renders the region that the writing profile surrounds.
In one of the embodiments, the adjusting module is additionally operable to be gone through with adjacent according to the generation time of current contact
The difference of the generation time of history contact, and the change of the contact coordinate of current contact and the contact coordinate of adjacent history contact
Value, calculate writing speed corresponding to current contact;If the writing speed exceedes threshold value, according to writing speed and the threshold value
Difference reduce current contact contact sizes;Or calculate the contact sizes of the predetermined number history contact adjacent with current contact
Average value;The contact sizes of current contact are adjusted to the average value of the contact sizes of the predetermined number history contact.
In one of the embodiments, the written handwriting includes one or more stroke writings, each stroke writing bag
Include multiple contacts;The adjusting module is additionally operable to that time forward the first present count will be generated in stroke writing where current contact
The contact sizes of amount contact reduce according to the first preset ratio;And/or the generation time in stroke writing where current contact is leaned on
The contact sizes of the second predetermined number contact afterwards reduce according to the second preset ratio.
A kind of computer equipment, including storage device and its processor, computer program is stored in the storage device,
The electronic brush pen writing side provided in any one embodiment of the invention is provided described in the computing device during computer program
The step of method.
A kind of computer-readable recording medium, is stored thereon with computer program, and the computer program is executed by processor
The step of electronic brush writing method provided in any one embodiment of the Shi Shixian present invention.
Above-mentioned electronic brush writing method, device, computer equipment and storage medium, according to current contact in written handwriting
And the contact data of the predetermined number history contact adjacent with current contact can calculate the relatively adjacent history of current contact
The difference of the generation time of contact;Can be with according to the difference or the contact sizes of adjacent predetermined number history contact being calculated
The contact sizes of current contact are adjusted, the writing profile of current contact can be generated according to the contact sizes after adjustment,
The region surrounded by rendering writing profile can simulate writing brush person's handwriting.Due to not abandoning any contact when simulating writing brush person's handwriting
Data, the written handwriting that the writing brush person's handwriting simulated can be made relatively actual have preferable reduction degree;Due to being touched according to history
The contact data of point adjust the contact sizes of current contact in time, and the writing brush person's handwriting that can also make to simulate has preferably smooth
Effect.
Brief description of the drawings
Fig. 1 is the flow chart of the electronic brush writing method in one embodiment;
Fig. 2A is the schematic diagram of written handwriting in electronic brush writing method in one embodiment;
Fig. 2 B are the schematic diagram of written handwriting in electronic brush writing method in another embodiment;
Fig. 3 is the schematic diagram for writing profile in one embodiment in electronic brush writing method;
Fig. 4 is the structure chart of electronic brush pen writing device in one embodiment;
Fig. 5 is the structure chart of one embodiment Computer equipment.
Embodiment
In order to make the purpose , technical scheme and advantage of the present invention be clearer, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not
For limiting the present invention.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein,
But these elements should not be limited by these terms.These terms are only used for distinguishing first element and another element.Citing comes
Say, in the case where not departing from scope of the present application, the first client can be referred to as the second client, and similarly, can incite somebody to action
Second client is referred to as the first client.First client and the second client both clients, but it is not same visitor
Family end.
In one embodiment, as shown in Figure 1, there is provided a kind of electronic brush writing method, specifically include following steps:
Step 102, the contact data of written handwriting are obtained, when contact data include contact coordinate, contact sizes and generation
Between;Written handwriting includes current contact and history contact, and history contact is with current contact according to generation Time alignment.
When user needs to write Brush calligraphy in terminal, the electronic writing in terminal can be passed through on the touchscreen
Application program enters writing interface, carries out writing operation by finger or felt pen at writing interface, forms written handwriting.Writing
Person's handwriting includes one or more stroke writings, and each stroke writing includes multiple contacts, and multiple contacts are according to the elder generation for generating the time
After arrange.Above-mentioned touch-screen can be infrared touch panel, optical touch screen etc..Terminal can obtain written handwriting by touch-screen
In each contact contact data.Contact data include contact coordinate, contact sizes and generation time etc..Wherein, contact coordinate
Refer to pixel coordinate of the contact center in the dot matrix that touch-screen is formed, such as (30pixel, 40pixel);Contact sizes refer to touch
The pixel quantity that point occupies in the dot matrix that touch-screen is formed.
According to the priority of generation time, contact can be divided into current contact and history contact.It is readily appreciated that, it is current to touch
Point exists only in the stroke writing just in writing process.Terminal can be to different stroke writings according to the change of contact coordinate
Make a distinction.Touched specifically, terminal can calculate a relatively adjacent history of current contact using electronic writing application program
The changing value of the contact coordinate of point, if the changing value exceedes distance threshold, current contact is labeled as stroke writing
Home-position contact, a history contact adjacent with current contact is labeled as to the end contact of another stroke writing.In other words
Say, if the changing value exceedes distance threshold, then it represents that current contact is belonging respectively to different lettering pens from adjacent history contact
Draw, and the stroke writing writing where adjacent history contact is completed, the stroke writing where current contact starts to write.Such as figure
Shown in 2A, Chinese character " eight " includes " skimming " and " right-falling stroke " two stroke writings, a relatively adjacent current contact A history contact B1's
The changing value of contact coordinate exceedes distance threshold, then it represents that history contact B1 is located at different lettering pens respectively from current contact A
Draw " slash " and " right-falling stroke ", and the stroke writing " slash " where the B1 of history contact has been completed to write, the stroke writing where current contact A
Have started to write.
It should be noted that the contact in stroke writing where hereafter history contact each means current contact.Such as Fig. 2 B institutes
Show, multiple contact Dn (n=1~5) in stroke writing " right-falling stroke " where history contact includes current contact C.It is readily appreciated that, if working as
Front contact is first contact of place stroke writing, then in the absence of history contact;Otherwise, there is one before current contact
Or multiple history contacts.
Terminal obtains current contact and the predetermined number history adjacent with current contact in written handwriting by touch-screen
The contact data of contact.Predetermined number can be set according to the performance parameter of touch-screen, such as be arranged to 6.If with working as
The quantity of the adjacent history contact of front contact is less than predetermined number, then terminal obtains all history contacts adjacent with current contact
Contact data.
Step 104, according to the difference of the generation time of current contact and the generation time of adjacent history contact, or preset
The contact sizes of quantity history contact are adjusted to the contact sizes of current contact.
Preferably put down in order to which the writing brush person's handwriting in the case where not abandoning any contact data, making to simulate can both have
Sliding effect, written handwriting that again can be relatively actual has preferable reduction degree, so as to embody Brush calligraphy writing feature, this implementation
The contact sizes for each contact that example terminal is generated using electronic writing application program to written handwriting are adjusted.Specifically,
Terminal calculates being averaged for the contact sizes of the predetermined number history contact adjacent with current contact using electronic writing application program
Value, the contact sizes of current contact are adjusted to the average value of the contact sizes of predetermined number history contact, to prevent that contact is big
Micromutation, so that written handwriting is smoother.
In one embodiment, terminal is in the contact sizes according to the predetermined number history contact adjacent with current contact
, can also be according to the generation time and adjacent one of current contact after average value is adjusted to the contact sizes of current contact
The difference of the generation time of individual history contact is adjusted to the contact sizes of current contact.Specifically, terminal utilizes e-book
Write the difference that application program calculates the generation time of current contact and the generation time of adjacent history contact, and current contact
Contact coordinate and the contact coordinate of adjacent history contact changing value, current touch is calculated according to obtained difference and changing value
Writing speed corresponding to point.If the writing speed of current contact exceedes threshold value, reduced according to the difference of writing speed and threshold value
The contact sizes of current contact.The contact sizes of current contact are adjusted according to writing speed so that the writing brush person's handwriting simulated is more
Add and meet Brush calligraphy writing feature.
Step 106, the writing wheel of current contact is generated according to the contact sizes after the contact coordinate of current contact and adjustment
Exterior feature, render the region that writing profile surrounds.
A contact is often generated in written handwriting, the contact sizes of the terminal-pair contact are adjusted, root after the completion of adjustment
Describe the writing profile of the contact according to the contact sizes after adjustment, and the writing profile is carried out to fill, so as to realize side book
Write side amendment display.
In one embodiment, current contact is generated according to the contact sizes after the contact coordinate of current contact and adjustment
The step of writing profile includes:Centered on the contact coordinate of current contact, using the contact sizes after adjustment as diameter, generation is worked as
Circular contour corresponding to front contact;By the circular wheel corresponding with an adjacent history contact of circular contour corresponding to current contact
Wide tangent line connection, forms writing profile corresponding to present node.
As shown in figure 3, after being adjusted to the contact sizes of current contact, terminal passes through electronic writing application program
Centered on the contact coordinate of current contact, using the contact sizes after adjustment as diameter, circular wheel corresponding to current contact is generated
Exterior feature, and the circular contour tangent line corresponding with an adjacent history contact of circular contour corresponding to current contact is connected, formed
Writing profile corresponding to present node.If current contact is first contact of place stroke writing, corresponding to current contact
Circular contour is that it writes profile.
It should be noted that Fig. 3 is only for circular contour corresponding to the apparent each contact of displaying and writes profile, and
Writing profile not to contact renders.It should be appreciated that in practical operation, writing profile all should corresponding to each history contact
When having completed to render, i.e., each contact is to correct display in writing, and is not construed as each stroke writing and only has
Just carry out rendering display when writing and completing.
Terminal will be write profile by the way of tangent line connection and is attached corresponding to two neighboring contact, from there through more
Bar line segment forms profile corresponding to written handwriting, and in practical operation, the distance between two neighboring contact is very small, and approximation can be with
Regard the profile that a smooth curve describes written handwriting as so that written handwriting is smoother.
In the present embodiment, according to current contact in written handwriting and the predetermined number history contact adjacent with current contact
Contact data can calculate the relatively adjacent history contact of current contact generation the time difference;According to the difference being calculated
Value or the contact sizes of adjacent predetermined number history contact can be adjusted to the contact sizes of current contact, according to adjustment
Contact sizes afterwards can generate the writing profile of current contact, and the region surrounded by rendering writing profile can simulate writing brush
Person's handwriting.Due to not abandoning any contact data when simulating writing brush person's handwriting, the writing brush person's handwriting that simulates can be made relatively actual
Written handwriting has preferable reduction degree;Because the contact for adjusting current contact in time according to the contact data of history contact is big
Small, the writing brush person's handwriting that can also make to simulate has preferable smooth effect.
In one embodiment, according to the difference of the generation time of current contact and the generation time of adjacent history contact
The step of contact sizes of current contact are adjusted, including:The contact for obtaining the history contact adjacent with current contact is sat
Mark;According to the difference of the generation time of current contact and the generation time of adjacent history contact, and the contact of current contact
The changing value of coordinate and the contact coordinate of adjacent history contact, calculate writing speed corresponding to current contact;If writing speed
More than threshold value, then according to the contact sizes of the difference of writing speed and threshold value reduction current contact.
Terminal calculates generation time and the generation of adjacent history contact of current contact using electronic writing application program
The difference of time, and the changing value of the contact coordinate of the contact coordinate of current contact and adjacent history contact, according to obtaining
Difference and changing value calculate current contact corresponding to writing speed, judge whether the writing speed exceedes threshold value, if so, then pressing
Reduce the contact sizes of current contact according to the first preset formula;Otherwise, the contact of current contact is increased according to the second preset formula
Size.It is accustomed to according to user writing or is passed through specifically, above-mentioned threshold value, the first preset formula and the second preset formula may each be
Test what is freely set, such as above-mentioned threshold value can be 30pixel/s;Above-mentioned first preset formula can be that the contact of current contact is big
Small * 20%* ((writing speed-threshold value)/writing speed).In another embodiment, if the writing speed of current contact is less than
Or the contact sizes equal to threshold value, then holding current contact.
In the present embodiment, the contact sizes of current contact are adjusted according to writing speed so that the writing brush person's handwriting simulated is more
Add and meet Brush calligraphy writing feature.
In one embodiment, the contact according to the average value of the contact sizes of predetermined number history contact to current contact
The step of size is adjusted, including:Calculate being averaged for the contact sizes of the predetermined number history contact adjacent with current contact
Value;The contact sizes of current contact are adjusted to the average value of the contact sizes of predetermined number history contact.
The contact that terminal calculates the predetermined number history contact adjacent with current contact using electronic writing application program is big
Small average value, the contact sizes of current contact are adjusted to the average value of the contact sizes of the predetermined number history contact.In advance
If quantity can be set according to the performance parameter of touch-screen, 6 are such as arranged to.It is readily appreciated that, terminal can also ought
The contact sizes of front contact are adjusted to the multiple of the average value of the contact sizes of the predetermined number history contact, and such as 60%.
The present embodiment, the contact sizes that the contact sizes of current contact are adjusted to predetermined number history contact are averaged
Value, can prevent contact sizes to be mutated, so that written handwriting is smoother.
In one embodiment, written handwriting includes one or more stroke writings, and each stroke writing includes multiple touch
Point;After the contact coordinate according to current contact and adjustment contact sizes generation current contact writing profile the step of it
Before, in addition to:The contact sizes that time forward the first predetermined number contact is generated in stroke writing where current contact are pressed
Reduce according to the first preset ratio;And/or touched the second predetermined number of time rearward is generated in stroke writing where current contact
The contact sizes of point reduce according to the second preset ratio.
When a stroke writing is completed, terminal is multiple to being originated in the stroke writing using electronic writing application program
The contact sizes of contact, and/or the contact sizes of multiple contacts at end are adjusted.Multiple contacts of starting refer to the writing
The contact of time forward the first predetermined number contact is generated in stroke;Multiple contacts at end refer to generate in the stroke writing
Time the second predetermined number contact rearward.First predetermined number and the second predetermined number can be accustomed to according to user writing respectively
Or experience is freely set.
Terminal will generate time forward first pre- using electronic writing application program in stroke writing where current contact
If the contact sizes of quantity contact reduce according to the first preset ratio, or the generation time in stroke writing where current contact is leaned on
The contact sizes of the second predetermined number contact afterwards reduce according to the second preset ratio.First preset ratio and the second preset ratio
It can be accustomed to respectively according to user writing or experience is freely set, such as 50%.First preset ratio and the second preset ratio can be with
It is identical, can also be different.
The present embodiment, according to Brush calligraphy writing feature, such as entering pen should gently enter, and receiving pen should gently receive, to the pen in written handwriting
The thickness of cutting edge of a knife or a sword and/or a tail is adjusted so that the writing brush person's handwriting simulated, which has, preferably to be entered pen and receive an effect, so as to more
Add and meet thick among Brush calligraphy, the strong writing feature of both sides time cutting edge of a knife or a sword, improve the simulation effect of writing brush person's handwriting.
In one embodiment, as shown in Figure 4, there is provided a kind of electronic brush pen writing device, including:Acquisition module 402,
Adjusting module 404 and rendering module 406, wherein,
Acquisition module 402, for obtaining the contact data of written handwriting, contact data include contact coordinate, contact sizes
With the generation time;Written handwriting includes current contact and history contact, and history contact is with current contact according to generation Time alignment.
Adjusting module 404, the difference for the generation time according to current contact and the generation time of adjacent history contact
Value, or the contact sizes of predetermined number history contact are adjusted to the contact sizes of current contact.
Rendering module 406, current contact is generated for the contact sizes after the contact coordinate according to current contact and adjustment
Writing profile, render the region that surrounds of writing profile.
In one embodiment, adjusting module 404 is additionally operable to calculate the predetermined number history contact adjacent with current contact
Contact sizes average value, the contact sizes that the contact sizes of current contact are adjusted to predetermined number history contact are averaged
Value;Or the difference of the generation time and the generation time of adjacent history contact according to current contact, and current contact
The changing value of contact coordinate and the contact coordinate of adjacent history contact, calculate writing speed corresponding to current contact;If writing
Speed exceedes threshold value, then reduces the contact sizes of current contact according to the difference of writing speed and threshold value.
In one embodiment, written handwriting includes one or more stroke writings, and each stroke writing includes multiple touch
Point.Adjusting module 404 is additionally operable to that time forward the first predetermined number contact will be generated in stroke writing where current contact
Contact sizes reduce according to the first preset ratio;And/or second of time rearward will be generated in stroke writing where current contact
The contact sizes of predetermined number contact reduce according to the second preset ratio.
In one embodiment, there is provided a kind of internal frame diagram of computer equipment, as shown in figure 5, the computer equipment
Including processor, non-volatile memory medium, built-in storage, network interface, display screen and the input connected by system bus
Device.Wherein, the processor of computer equipment is used to provide calculating and control ability.The memory of the computer equipment includes non-
Volatile storage medium, built-in storage.The non-volatile memory medium of the computer equipment is stored with operating system and computer
Program, the built-in storage of the computer equipment are that the operation of operating system and computer program in non-volatile memory medium carries
For environment.To realize a kind of electronic brush writing method when the computer program is executed by processor.The network interface of the terminal
For being communicated with the network interface of outside.The display screen of terminal can be infrared touch panel etc., and input unit can be aobvious
The touch layer covered in display screen, it can also be the button set in terminal enclosure, trace ball, Trackpad, external keyboard, touch-control
Plate or mouse etc..The computer equipment can be desktop computer, notebook personal computer, mobile phone, tablet personal computer, electronic whiteboard
Deng.Following steps can be performed during computing device computer program:The contact data of written handwriting are obtained, contact data include
Contact coordinate, contact sizes and generation time;Written handwriting includes current contact and history contact, history contact and current contact
According to generation Time alignment;According to the difference of the generation time of current contact and the generation time of adjacent history contact, or in advance
If the contact sizes of quantity history contact are adjusted to the contact sizes of current contact;According to the contact coordinate of current contact and
The writing profile of contact sizes generation current contact after adjustment, renders the region that writing profile surrounds.
It will be understood by those skilled in the art that the structure shown in Fig. 5, the only part related to application scheme knot
The block diagram of structure, the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment are not formed
It can include, than more or less parts shown in figure, either combining some parts or arranging with different parts.
In one embodiment, following steps are also performed during computing device computer program:Obtain and current contact phase
The contact coordinate of adjacent history contact;According to the difference of the generation time of current contact and the generation time of adjacent history contact
Value, and the changing value of the contact coordinate of current contact and the contact coordinate of adjacent history contact, it is corresponding to calculate current contact
Writing speed;If writing speed exceedes threshold value, the contact for reducing current contact according to the difference of writing speed and threshold value is big
It is small.
In one embodiment, following steps are also performed during computing device computer program:Calculate and current contact phase
The average value of the contact sizes of adjacent predetermined number history contact;The contact sizes of current contact are adjusted to predetermined number history
The average value of the contact sizes of contact.
In one embodiment, written handwriting includes one or more stroke writings, and each stroke writing includes multiple touch
Point;Following steps are also performed during computing device computer program:It is forward by the time is generated in stroke writing where current contact
The contact sizes of the first predetermined number contact reduce according to the first preset ratio;And/or by stroke writing where current contact
The contact sizes of the second predetermined number contact rearward of middle generation time reduce according to the second preset ratio.
In one embodiment, following steps are also performed during computing device computer program:With the contact of current contact
Centered on coordinate, using the contact sizes after adjustment as diameter, circular contour corresponding to current contact is generated;Current contact is corresponding
The connection of circular contour corresponding with adjacent history contact circular contour tangent line, form writing wheel corresponding to present node
It is wide.
In one embodiment, there is provided a kind of computer-readable recording medium, be stored thereon with computer program, the journey
Computer program following steps are realized when sequence is executed by processor:The contact data of written handwriting are obtained, contact data include touching
Point coordinates, contact sizes and generation time;Written handwriting includes current contact and history contact, and history contact is pressed with current contact
According to generation Time alignment;According to the difference of the generation time of current contact and the generation time of adjacent history contact, or preset
The contact sizes of quantity history contact are adjusted to the contact sizes of current contact;According to the contact coordinate and tune of current contact
The writing profile of contact sizes generation current contact after whole, renders the region that writing profile surrounds.
In one embodiment, following steps are also performed when computer program is executed by processor:Acquisition and current contact
The contact coordinate of adjacent history contact;According to the difference of the generation time of current contact and the generation time of adjacent history contact
Value, and the changing value of the contact coordinate of current contact and the contact coordinate of adjacent history contact, it is corresponding to calculate current contact
Writing speed;If writing speed exceedes threshold value, the contact for reducing current contact according to the difference of writing speed and threshold value is big
It is small.
In one embodiment, following steps are also performed when computer program is executed by processor:Calculating and current contact
The average value of the contact sizes of adjacent predetermined number history contact;The contact sizes of current contact are adjusted into predetermined number to go through
The average value of the contact sizes of history contact.
In one embodiment, written handwriting includes one or more stroke writings, and each stroke writing includes multiple touch
Point;Following steps are also performed when computer program is executed by processor:The generation time in stroke writing where current contact is leaned on
The contact sizes of the first preceding predetermined number contact reduce according to the first preset ratio;And/or by lettering pen where current contact
The contact sizes that the second predetermined number contact of time rearward is generated in picture reduce according to the second preset ratio.
In one embodiment, following steps are also performed when computer program is executed by processor:With touching for current contact
Centered on point coordinates, using the contact sizes after adjustment as diameter, circular contour corresponding to current contact is generated;By current contact pair
The circular contour answered circular contour tangent line connection corresponding with an adjacent history contact, forms and is write corresponding to present node
Profile.
One of ordinary skill in the art will appreciate that realize all or part of flow in above-described embodiment method, being can be with
The hardware of correlation is instructed to complete by computer program, aforementioned computer program can be stored in a non-volatile computer can
Read in storage medium, the computer program is upon execution, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, it is preceding
It can be that magnetic disc, CD, read-only memory (Read-Only Memory, ROM) etc. are non-to state computer read/write memory medium
Volatile storage medium.
Each technical characteristic of above example can be combined arbitrarily, to make description succinct, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, lance is not present in the combination of these technical characteristics
Shield, all it is considered to be the scope of this specification record.
Above example only expresses the several embodiments of the present invention, and its description is more specific and detailed, but can not
Therefore it is construed as limiting the scope of the patent.It should be pointed out that for the person of ordinary skill of the art,
On the premise of not departing from present inventive concept, various modifications and improvements can be made, these belong to protection scope of the present invention.
Therefore, the protection domain of patent of the present invention should be determined by the appended claims.
Claims (10)
1. a kind of electronic brush writing method, including:
The contact data of written handwriting are obtained, the contact data include contact coordinate, contact sizes and generation time;The book
Writing person's handwriting includes current contact and history contact, and the history contact is with current contact according to generation Time alignment;
According to the difference of the generation time of current contact and the generation time of adjacent history contact, or predetermined number history contact
Contact sizes the contact sizes of current contact are adjusted;
According to the writing profile of the contact sizes generation current contact after the contact coordinate of current contact and adjustment, the book is rendered
Write the region that profile surrounds.
2. according to the method for claim 1, it is characterised in that the generation time according to current contact is gone through with adjacent
The step of contact sizes that the difference of the generation time of history contact is adjusted to the contact sizes of current contact are adjusted, bag
Include:
Obtain the contact coordinate of the history contact adjacent with current contact;
According to the difference of the generation time of current contact and the generation time of adjacent history contact, and the contact of current contact
The changing value of coordinate and the contact coordinate of adjacent history contact, calculate writing speed corresponding to current contact;
If the writing speed exceedes threshold value, the contact for reducing current contact according to the difference of writing speed and the threshold value is big
It is small.
3. according to the method for claim 1, it is characterised in that the contact according to the predetermined number history contact is big
The step of small contact sizes to current contact are adjusted, including:
Calculate the average value of the contact sizes of the predetermined number history contact adjacent with current contact;
The contact sizes of current contact are adjusted to the average value of the contact sizes of the predetermined number history contact.
4. according to the method for claim 1, it is characterised in that the written handwriting includes one or more stroke writings,
Each stroke writing includes multiple contacts;Contact sizes generation after the contact coordinate according to current contact and adjustment is worked as
Before the step of writing profile of front contact, in addition to:
The contact sizes of time forward the first predetermined number contact will be generated in stroke writing where current contact according to first
Preset ratio reduces;And/or
The contact sizes of the second predetermined number contact of time rearward will be generated in stroke writing where current contact according to second
Preset ratio reduces.
5. according to the method for claim 1, it is characterised in that it is described according to the contact coordinate of current contact and adjustment after
Contact sizes generate the step of writing profile of current contact, including:
Centered on the contact coordinate of current contact, using the contact sizes after adjustment as diameter, circle corresponding to current contact is generated
Shape profile;
By the circular contour tangent line connection corresponding with an adjacent history contact of circular contour corresponding to current contact, formed and worked as
Writing profile corresponding to front nodal point.
6. a kind of electronic brush pen writing device, it is characterised in that described device includes:
Acquisition module, for obtaining the contact data of written handwriting, the contact data include contact coordinate, contact sizes and life
Into the time;The written handwriting includes current contact and history contact, and the history contact is with current contact according to the generation time
Arrangement;
Adjusting module, for the difference of the generation time according to current contact and the generation time of adjacent history contact, or in advance
If the contact sizes of quantity history contact are adjusted to the contact sizes of current contact;
Rendering module, the writing wheel for the contact sizes generation current contact after the contact coordinate according to current contact and adjustment
Exterior feature, render the region that the writing profile surrounds.
7. device according to claim 6, it is characterised in that the adjusting module is additionally operable to the generation according to current contact
The difference of time and the generation time of adjacent history contact, and the contact coordinate of current contact and adjacent history contact
The changing value of contact coordinate, calculate writing speed corresponding to current contact;If the writing speed exceedes threshold value, according to writing
The difference of speed and the threshold value reduces the contact sizes of current contact;Or calculate the predetermined number history adjacent with current contact
The average value of the contact sizes of contact;The contact that the contact sizes of current contact are adjusted to the predetermined number history contact is big
Small average value.
8. device according to claim 6, it is characterised in that the written handwriting includes one or more stroke writings,
Each stroke writing includes multiple contacts;The adjusting module is additionally operable to lean on the generation time in stroke writing where current contact
The contact sizes of the first preceding predetermined number contact reduce according to the first preset ratio;And/or by lettering pen where current contact
The contact sizes that the second predetermined number contact of time rearward is generated in picture reduce according to the second preset ratio.
9. a kind of computer equipment, including storage device and processor, computer program is stored in the storage device, it is special
Sign is, the step of realizing claim 1-5 any one methods describeds described in the computing device during computer program.
10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the computer program quilt
The step computer program of claim 1-5 any one methods describeds is realized during computing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710823910.3A CN107798717A (en) | 2017-09-13 | 2017-09-13 | Electronic brush writing method, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710823910.3A CN107798717A (en) | 2017-09-13 | 2017-09-13 | Electronic brush writing method, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107798717A true CN107798717A (en) | 2018-03-13 |
Family
ID=61532167
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710823910.3A Pending CN107798717A (en) | 2017-09-13 | 2017-09-13 | Electronic brush writing method, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107798717A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189259A (en) * | 2018-07-24 | 2019-01-11 | 深圳市创易联合科技有限公司 | A kind of touch-control erasing anti-disturbance method, device and terminal device |
CN110263636A (en) * | 2019-05-15 | 2019-09-20 | 赞同科技股份有限公司 | A kind of lossless person's handwriting restoring method and system |
WO2020056619A1 (en) * | 2018-09-19 | 2020-03-26 | 深圳市柔宇科技有限公司 | Method for error detection in text writing, terminal device, and storage medium |
CN111427497A (en) * | 2019-05-17 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | Handwriting display method and device |
CN113589999A (en) * | 2020-04-30 | 2021-11-02 | 京东方科技集团股份有限公司 | Handwriting processing method, handwriting processing device and non-transient storage medium |
CN113658299A (en) * | 2021-08-23 | 2021-11-16 | 浙江大华技术股份有限公司 | Display method and device of movement track, storage medium and electronic device |
WO2022067585A1 (en) * | 2020-09-29 | 2022-04-07 | 京东方科技集团股份有限公司 | Writing trajectory processing method, touch device, writing system, and storage medium |
CN114510158A (en) * | 2021-12-08 | 2022-05-17 | 深圳市康冠商用科技有限公司 | Electronic stroke error correction method and device, touch screen device and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130182956A1 (en) * | 2011-12-31 | 2013-07-18 | Peking University Founder Group Co., Ltd. | Methods and Devices for Processing Handwriting Input |
CN103310474A (en) * | 2013-06-08 | 2013-09-18 | 深圳市经纬科技有限公司 | Method and system for implementing original handwriting |
CN106201314A (en) * | 2016-06-30 | 2016-12-07 | 成都东方闻道科技发展有限公司 | A kind of display packing realizing handwriting input on touch screen and display device |
CN106681631A (en) * | 2016-12-07 | 2017-05-17 | 南京仁光电子科技有限公司 | Method and device for handwriting optimization |
-
2017
- 2017-09-13 CN CN201710823910.3A patent/CN107798717A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130182956A1 (en) * | 2011-12-31 | 2013-07-18 | Peking University Founder Group Co., Ltd. | Methods and Devices for Processing Handwriting Input |
CN103310474A (en) * | 2013-06-08 | 2013-09-18 | 深圳市经纬科技有限公司 | Method and system for implementing original handwriting |
CN106201314A (en) * | 2016-06-30 | 2016-12-07 | 成都东方闻道科技发展有限公司 | A kind of display packing realizing handwriting input on touch screen and display device |
CN106681631A (en) * | 2016-12-07 | 2017-05-17 | 南京仁光电子科技有限公司 | Method and device for handwriting optimization |
Non-Patent Citations (1)
Title |
---|
黄树东: "数字笔迹书法风格生成技术研究及实现", 《中国优秀硕士学位论文全文数据库-信息科技辑》 * |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189259A (en) * | 2018-07-24 | 2019-01-11 | 深圳市创易联合科技有限公司 | A kind of touch-control erasing anti-disturbance method, device and terminal device |
CN109189259B (en) * | 2018-07-24 | 2021-08-06 | 深圳市创易联合科技有限公司 | Touch erase anti-interference method and device and terminal equipment |
WO2020056619A1 (en) * | 2018-09-19 | 2020-03-26 | 深圳市柔宇科技有限公司 | Method for error detection in text writing, terminal device, and storage medium |
CN112639712A (en) * | 2018-09-19 | 2021-04-09 | 深圳市柔宇科技股份有限公司 | Character writing error detection method, terminal equipment and storage medium |
CN110263636A (en) * | 2019-05-15 | 2019-09-20 | 赞同科技股份有限公司 | A kind of lossless person's handwriting restoring method and system |
CN111427497A (en) * | 2019-05-17 | 2020-07-17 | 杭州海康威视数字技术股份有限公司 | Handwriting display method and device |
CN111427497B (en) * | 2019-05-17 | 2021-08-24 | 杭州海康威视数字技术股份有限公司 | Handwriting display method and device |
WO2021218446A1 (en) * | 2020-04-30 | 2021-11-04 | 京东方科技集团股份有限公司 | Handwriting processing method, handwriting processing device and non-transitory storage medium |
CN113589999A (en) * | 2020-04-30 | 2021-11-02 | 京东方科技集团股份有限公司 | Handwriting processing method, handwriting processing device and non-transient storage medium |
US11789604B2 (en) | 2020-04-30 | 2023-10-17 | Boe Technology Group Co., Ltd. | Handwriting processing method, handwriting processing device and non-transitory storage medium |
CN113589999B (en) * | 2020-04-30 | 2024-01-30 | 京东方科技集团股份有限公司 | Handwriting processing method, handwriting processing device and non-transitory storage medium |
WO2022067585A1 (en) * | 2020-09-29 | 2022-04-07 | 京东方科技集团股份有限公司 | Writing trajectory processing method, touch device, writing system, and storage medium |
US11900568B2 (en) | 2020-09-29 | 2024-02-13 | Boe Technology Group Co., Ltd. | Writing trajectory processing method, touch control device, writing system and storage medium |
CN113658299A (en) * | 2021-08-23 | 2021-11-16 | 浙江大华技术股份有限公司 | Display method and device of movement track, storage medium and electronic device |
CN114510158A (en) * | 2021-12-08 | 2022-05-17 | 深圳市康冠商用科技有限公司 | Electronic stroke error correction method and device, touch screen device and storage medium |
CN114510158B (en) * | 2021-12-08 | 2022-12-30 | 深圳市康冠商用科技有限公司 | Electronic stroke error correction method and device, touch screen device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107798717A (en) | Electronic brush writing method, device, computer equipment and storage medium | |
CN103186345B (en) | The section system of selection of a kind of literary composition and device | |
JP5516535B2 (en) | Electronic information terminal and area setting control program | |
CN107463302B (en) | Icon layout adjusting method and device | |
CN104063128B (en) | A kind of information processing method and electronic equipment | |
CN107797752B (en) | Handwriting presenting method and device, interactive intelligent panel and storage medium | |
CN103136180A (en) | Text segment copying and pasting method and device and terminal for implementing same | |
KR20100113147A (en) | Handwriting input processing device and method | |
CN110941382B (en) | Display operation method, device, equipment and storage medium of intelligent interactive panel | |
CN106155540B (en) | Electronic brush pen pen shape treating method and apparatus | |
CN112558812B (en) | Pen point generation method and device, intelligent device and storage medium | |
CN111782131A (en) | Pen point implementation method, device, equipment and readable storage medium | |
CN112394838A (en) | Handwriting determining method and touch display device | |
CN110888549B (en) | Handwriting practicing method, system, equipment and storage medium based on touch equipment | |
CN105700845A (en) | Method and device for displaying digit arithmetic result in document | |
CN112860112B (en) | Handwriting erasing method and device of electronic whiteboard, electronic equipment and storage medium | |
CN106297477A (en) | A kind of method and device generating digitized copybook | |
US11380028B2 (en) | Electronic drawing with handwriting recognition | |
TWI505173B (en) | System and method for improving recognition of a touch keyboard in an electronic device | |
KR20150024213A (en) | Method for resizing window area and electronic device for the same | |
CN104281560A (en) | Memory text information display method and device and terminal | |
CN106990900A (en) | One kind writing implementation method and device | |
CN104808949A (en) | Page adjusting method and mobile terminal | |
CN104915102B (en) | The exchange method and device of graphical interfaces | |
US20200042128A1 (en) | Electronic whiteboard system, operating method thereof and electronic whiteboard |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180313 |