CN102937848B - Method for editing handwritings and electronic equipment - Google Patents

Method for editing handwritings and electronic equipment Download PDF

Info

Publication number
CN102937848B
CN102937848B CN201210512978.7A CN201210512978A CN102937848B CN 102937848 B CN102937848 B CN 102937848B CN 201210512978 A CN201210512978 A CN 201210512978A CN 102937848 B CN102937848 B CN 102937848B
Authority
CN
China
Prior art keywords
tracing point
handwriting
size
person
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210512978.7A
Other languages
Chinese (zh)
Other versions
CN102937848A (en
Inventor
金连文
黄树东
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Hehe Information Technology Development Co Ltd
Original Assignee
Shanghai Hehe Information Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Hehe Information Technology Development Co Ltd filed Critical Shanghai Hehe Information Technology Development Co Ltd
Priority to CN201210512978.7A priority Critical patent/CN102937848B/en
Publication of CN102937848A publication Critical patent/CN102937848A/en
Application granted granted Critical
Publication of CN102937848B publication Critical patent/CN102937848B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method for editing handwritings and electronic equipment. The method comprises the following steps of: monitoring a process in which a track input device performs track input in a user input image layer, and capturing the coordinate and the time of track points on each input track in real time by using the electronic equipment; setting a first scaling ratio used for scaling the coordinate of each track point according to configuration information of a screen of the electronic equipment and format information of an editing image layer displayed by the screen, and scaling the coordinate of each track point according to the first scaling ratio so as to obtain the coordinate of each scaled track point; and beautifying each track formed by all the scaled track points so as to obtain a corresponding handwriting based on the coordinate and the time of each scaled track point, and sticking an image consisting of all the handwritings at a specified area of the editing image layer. Therefore, the handwritings with individual styles can be written and edited.

Description

Handwriting is carried out to method and the electronic equipment of editing and processing
Technical field
The present invention relates to a kind of method and the electronic equipment that handwriting are carried out to editing and processing.
Background technology
Along with popularizing of the electronic equipment such as smart mobile phone, panel computer, pen-based interaction becomes more and more flexible.People can carry out Hand writing with the multiple input media such as touch screen, mouse, to obtain real hand-written experience.
At present, text editing function is mainly edited the font of standard character library, is inputted by input method, is presented in text box by the word that user inputs.For the hand-written script that form is changeable, traditional text editing function cannot be suitable for.So there is the one in several or tens kinds of handwritings utilizing the technology such as stroke simulation, stroke coupling, template fusion to become to preset by the text conversion of handwriting input.But this mode can not reflect that each user's writes individual character well, make cannot effectively promote in the fields such as electronic signature.
Personalized problem cannot be embodied to solve handwriting, market also there is a kind of electronic writing plate, it has the sensing devices such as pressure transducer, and force value, velocity amplitude etc. during the handwriting input that board can be detected are drawn and can be embodied original person's handwriting and the handwriting with writing brush or pen landscaping effect.When utilizing this kind of electronic writing plate to write, the handwritten word of writing out when convergent-divergent, owing to adopting image zooming technology, therefore there will be the defect such as distortion, distortion.
Therefore, need the scheme of existing handwriting being carried out to editing and processing to improve, make user utilize the conventional trace input device such as mouse, felt pen to obtain having the handwriting of landscaping effect, and handwriting is zoomed to specified size clearly.
Summary of the invention
The shortcoming of prior art in view of the above, the object of the present invention is to provide a kind of method and the electronic equipment that handwriting are carried out to editing and processing, easy handwriting Writing method cannot be provided for solving in prior art, and the problems such as handwriting convergent-divergent distortion.
For achieving the above object and other relevant objects, the invention provides a kind of method of handwriting being carried out to editing and processing, be applied to and have in the electronic equipment of trace input device, it at least comprises: 1) monitor described trace input device and input the process of carrying out track input in layer user, and catches coordinate and the time of the tracing point on inputted each track in real time; 2) the first scaling of the coordinate being used for each tracing point of convergent-divergent is set according to the format information of the editor's layer shown by the configuration information of the screen of described electronic equipment and described screen, and the coordinate of each described tracing point is carried out convergent-divergent according to described first scaling, to obtain the coordinate of each tracing point after convergent-divergent; 3) based on coordinate and the time of each tracing point after convergent-divergent, each track that each tracing point after convergent-divergent is formed is carried out landscaping treatment, to obtain corresponding handwriting, and the image that all described handwritings are formed is attached to the appointed area of described editor's layer.
Preferably, described step 1) also comprises: when catching described tracing point, based on coordinate and the time of each described tracing point of having caught, in real time the track that caught each described tracing point is formed is beautified into handwriting, and be presented at described user and input in layer.
Preferably, described step 2) in the first scaling of inputted track is set according to the format information of the editor's layer shown by the configuration information of the display screen of described electronic equipment and described screen mode comprise: utilize formula 1 to determine described first scaling η 1;
η 1 = λ × s w l w Formula 1
Wherein, λ is the screen resolution of described electronic equipment; Sw is the screen width of described electronic equipment; Lw is the line width of described editor's layer.
Preferably, in described step 3), each track that each tracing point after convergent-divergent is formed is carried out landscaping treatment, comprise in the mode obtaining corresponding handwriting: 3-1) according to time sequencing, from second described tracing point, based on coordinate and the time of tracing point described in tracing point described in n-th and before this at least one, obtain the characteristic information of the person's handwriting size for characterizing tracing point described in n-th; And at least one component acquired characteristic information converted to for determining described person's handwriting size; And each described component is merged, to obtain the person's handwriting size described in n-th corresponding to tracing point; Wherein, n be greater than 1 integer; 3-2) tracing point described in each is carried out landscaping treatment by described person's handwriting size, the image be formed by connecting with the handwriting obtained corresponding to each described tracing point.
Preferably, described characteristic information comprises: one or more in the deflection angle of the speed of described tracing point, the acceleration of described tracing point, the deflection of described tracing point, described tracing point.
Preferably, described step 3-1) also comprise: the variable quantity obtaining the person's handwriting size of a described tracing point in the person's handwriting size of tracing point described in n-th and preset time period, and described variable quantity and the variable quantity preset are compared, if be greater than default variable quantity, then determine that the person's handwriting of tracing point described in n-th is of a size of the person's handwriting size sum of default variable quantity and a described tracing point, if otherwise be less than default variable quantity, then the person's handwriting size of tracing point described in acquired n-th is defined as the person's handwriting size of tracing point described in n-th, wherein, 1≤a≤n, a is integer.
Preferably, described step 3-2) in the mode that tracing point described in each carries out landscaping treatment by described person's handwriting size is comprised: based on the mean value of adjacent described tracing point person's handwriting size separately, interpolation algorithm is utilized to fill, the described mean value of pressing between adjacent described tracing point to obtain continuous print handwriting.
Preferably, at the described step 3-1 of execution) before, also comprise: by the smoothing process of each described tracing point, with the step of the coordinate and time that obtain the tracing point after smoothing processing.
Preferably, in described step 3), each track that each tracing point after convergent-divergent is formed is carried out landscaping treatment, also comprises in the mode obtaining corresponding handwriting:
3-a) according to time sequencing, from second described tracing point, utilize coordinate and the time of tracing point described in n-th and a described tracing point before this, calculate the speed of tracing point described in n-th, wherein, n be greater than 1 integer;
3-b) based on preset tracing point speed respectively with the size of handwriting and the corresponding relation of transparency, determine size and the transparency of the handwriting described in n-th corresponding to tracing point;
3-c) utilize preset trajectory segment rule, each section of track that each described tracing point is formed according to described tracing point separately corresponding to size and transparency carry out landscaping treatment, to obtain the image that all described handwritings are formed.
Preferably, described step 3-c) comprising:
Utilize the chopping rule preset, the sub-trajectory that each described tracing point in each section of track is formed is carried out interpolation processing, to obtain the sub-trajectory be made up of interpolation point and described tracing point;
The size of the handwriting corresponding to the described tracing point on the described sub-trajectory after interpolation processing and transparency determine size and the transparency of the handwriting that described interpolation point is corresponding separately;
The size of the handwriting utilizing described interpolation point and tracing point corresponding separately and transparency, become size and transparency continually varying handwriting by the sub-trajectory landscaping treatment after interpolation processing; And
Based on the annexation of the sub-trajectory in each section of track, all handwritings after interpolation processing are coupled together, to obtain the image that all described handwritings are formed.
Preferably, described step 3) also comprises: described image is carried out convergent-divergent by the second scaling, and the described image after convergent-divergent is attached to the appointed area of described editor's layer.
Preferably, described second scaling η 2determined by formula 2;
η 2=k 7η 1formula 2; Wherein, k7 is constant; η 1first scaling.
Preferably, described method also comprises: obtain user by the operation of described trace input device in described editor's layer, and travels through the nearest described image in the position that operates described in described editor's layer middle distance, so that after cursor is placed in described image.
Based on above-mentioned purpose, the present invention also provides a kind of electronic equipment, and it at least comprises: trace input device; Catching processing module, inputting the process of carrying out track input in layer user for monitoring described trace input device, and catch coordinate and the time of the tracing point on inputted each track in real time; Zoom module, format information for the editor's layer shown by the configuration information of the screen according to described electronic equipment and described screen arranges the first scaling of the coordinate being used for each tracing point of convergent-divergent, and described coordinate of catching each described tracing point that processing module is caught is carried out convergent-divergent according to described first scaling, to obtain the coordinate of each tracing point after convergent-divergent; Person's handwriting processing module, for based on the coordinate of each tracing point after convergent-divergent and time, each track that each tracing point after convergent-divergent is formed is carried out landscaping treatment, to obtain corresponding handwriting, and the image that all described handwritings are formed is attached to the appointed area of described editor's layer.
Preferably, described processing module of catching also comprises: the first person's handwriting process submodule, for when catching described tracing point, based on coordinate and the time of each described tracing point of having caught, in real time the track that caught each described tracing point is formed is beautified into handwriting, and be presented at described user and input in layer.
Preferably, described Zoom module comprises: the first convergent-divergent submodule, for the first scaling η utilizing formula 1 to determine the coordinate of each tracing point of convergent-divergent 1;
η 1 = λ × s w l w Formula 1
Wherein, λ is the screen resolution of described electronic equipment; Sw is the screen width of described electronic equipment; Lw is the line width of described editor's layer.
Preferably, described person's handwriting processing module at least comprises: fisrt feature information processing submodule, for according to time sequencing, from second described tracing point, based on coordinate and the time of tracing point described in tracing point described in n-th and before this at least one, obtain the characteristic information of the person's handwriting size for characterizing tracing point described in n-th; And at least one component acquired characteristic information converted to for determining described person's handwriting size; And each described component is merged, to obtain the described person's handwriting size described in n-th corresponding to tracing point; Wherein, n be greater than 1 integer; First landscaping treatment submodule, carries out landscaping treatment for the person's handwriting size obtained by described fisrt feature information processing submodule by tracing point described in each, the image be formed by connecting with the handwriting obtained corresponding to each described tracing point.
Preferably, described characteristic information comprises: one or more in the deflection angle of the speed of described tracing point, the acceleration of described tracing point, the deflection of described tracing point, described tracing point.
Preferably, described fisrt feature information processing submodule is also for obtaining the variable quantity of the person's handwriting size of a described tracing point in the person's handwriting size of tracing point described in n-th and preset time period, and described variable quantity and the variable quantity preset are compared, if be greater than default variable quantity, then determine that the person's handwriting of tracing point described in n-th is of a size of the person's handwriting size sum of default variable quantity and a described tracing point, if otherwise be less than default variable quantity, then the person's handwriting size of tracing point described in acquired n-th is defined as the person's handwriting size of tracing point described in n-th, wherein, 1≤a≤n.
Preferably, the first landscaping treatment submodule also for the mean value based on adjacent described tracing point person's handwriting size separately, utilize interpolation algorithm to fill, the described mean value of pressing between adjacent described tracing point to obtain continuous print handwriting.
Preferably, described person's handwriting processing module also comprises: smoothing processing submodule, for the smoothing process of each described tracing point that Zoom module is provided, to obtain coordinate and the time of the tracing point after smoothing processing, and each tracing point after smoothing processing is supplied to described feature information extraction submodule, so that the characteristic information of each tracing point after described feature information extraction submodule extraction smoothing processing.
Preferably, described person's handwriting processing module also comprises: velograph operator module, for according to time sequencing, from second described tracing point, utilize coordinate and the time of tracing point described in n-th and a described tracing point before this, calculate the speed of tracing point described in n-th, wherein, n be greater than 1 integer; Second feature information processing submodule, for based on preset tracing point speed respectively with the size of handwriting and the corresponding relation of transparency, determine size and the transparency of the handwriting described in n-th corresponding to tracing point; Second landscaping treatment submodule, for utilizing default trajectory segment rule, each section of track formed by each described tracing point carries out landscaping treatment, to obtain the image that all described handwritings are formed according to the corresponding separately size of described tracing point and transparency.
Preferably, described second landscaping treatment submodule comprises: the first process submodule, for utilizing default chopping rule, the sub-trajectory that each tracing point in each section of described track is formed is carried out interpolation processing, to obtain the sub-trajectory be made up of interpolation point and described tracing point; Second process submodule, determines size and the transparency of the handwriting corresponding to described interpolation point separately for the size of the handwriting corresponding to the described tracing point on the described sub-trajectory after interpolation processing and transparency; 3rd process submodule, for utilize described interpolation point and tracing point separately corresponding to the size of handwriting and transparency, the sub-trajectory landscaping treatment after interpolation processing is become size and transparency continually varying handwriting; All handwritings after interpolation processing for the annexation based on the sub-trajectory in each section of track, are coupled together, to obtain the image that all described handwritings are formed by the 4th process submodule.
Preferably, described person's handwriting processing module also comprises: the second convergent-divergent submodule, for described image is carried out convergent-divergent by the second scaling, and the described image after convergent-divergent is attached to the appointed area of editor's layer.
Preferably, described second scaling is determined by formula 2;
η 2=k 7η 1formula 2; Wherein, k7 is constant; η 1first scaling.
Preferably, described system also comprises: editor module, for obtaining user by the operation of described trace input device in editor's layer, and travel through the nearest described image in the position that operates described in described editor's layer middle distance, so that after cursor is placed in described image.
As mentioned above, method and electronic equipment handwriting being carried out to editing and processing of the present invention, there is following beneficial effect: described trace input device can be inputted user the handwriting tracks that layer is write and carry out convergent-divergent process, and described track is beautified into the handwriting with user writing style, thus, user can utilize the present invention to write the handwriting with personalized style in multiple occasions such as the signatures of microblogging, network log, electronic contract; Wherein, the coordinate of each tracing point is zoomed to the size of specifying in editor's layer, the shape of track can be kept undistorted; In addition, input in layer user, in real time caught tracing point is beautified into handwriting, user can be allowed to experience the effect of handwriting more intuitively; In addition, by by the seizure to the user operation in editor's layer, user can be helped to operate generating the image comprising word or symbol.
Accompanying drawing explanation
Fig. 1 is shown as process flow diagram handwriting being carried out to the method for editing and processing of the present invention.
Fig. 2 is shown as a kind of optimal way process flow diagram carrying out beautifying in the method for editing and processing disposal route to handwriting of the present invention.
Fig. 3 is shown as process flow diagram handwriting being carried out to another optimal way beautifying disposal route in the method for editing and processing of the present invention.
Fig. 4 is shown as the structural representation of electronic equipment of the present invention.
Fig. 5 is shown as the structural representation of a kind of preferred version of the person's handwriting processing module in electronic equipment of the present invention.
Fig. 6 is shown as the structural representation of another preferred version of the person's handwriting processing module in electronic equipment of the present invention.
Embodiment
Below by way of specific instantiation, embodiments of the present invention are described, those skilled in the art the content disclosed by this instructions can understand other advantages of the present invention and effect easily.The present invention can also be implemented or be applied by embodiments different in addition, and the every details in this instructions also can based on different viewpoints and application, carries out various modification or change not deviating under spirit of the present invention.
As shown in Figure 1 to Figure 3, the invention provides a kind of method of handwriting being carried out to editing and processing.Described disposal route performs primarily of disposal system.Described disposal route is applicable to be had in the electronic equipment of the trace input device such as mouse, touch-screen.Described electronic equipment includes but not limited to: mobile phone, panel computer etc.
Embodiment one
As shown in Figure 1, in step sl, described disposal system is monitored described trace input device and is inputted the process of carrying out track input in layer user, and catches coordinate and the time of the tracing point on inputted each track in real time.
Particularly, described disposal system monitor user ' utilizes trace input device to carry out the beginning action of handwriting input and the action of end, and during this period, catch in real time described trace input device each tracing point coordinate of process and time.
Such as, described disposal system monitors user when pressing the action of mouse, confirms that handwriting input starts, at preset timed intervals interval catch mouse each tracing point of process, when monitoring user and lifting the action of mouse, confirm that a handwriting input terminates; When user utilize mouse click on the screen of described electronic equipment complete button time, described disposal system performs step S2.
Preferably, described step S1 also comprises: when catching described tracing point, described disposal system is also based on coordinate and the time of each described tracing point of having caught, in real time the track that caught each described tracing point is formed is beautified into handwriting, and be presented at described user and input step in layer.
It should be noted that, described disposal system is based on the coordinate of each described tracing point of having caught and time, in real time the track that caught each described tracing point is formed is beautified into disposal system described in the mode of handwriting and following step S3 based on the coordinate of each tracing point after convergent-divergent and time, by same or similar for the mode that each track that each tracing point after convergent-divergent is formed carries out landscaping treatment in detail, the description seen in step S3 is described in detail.
Such as, described disposal system is from caught second described tracing point, based on coordinate and the time of tracing point described in tracing point described in n-th and before this at least one, obtain the characteristic information for characterizing the person's handwriting size described in n-th corresponding to tracing point; And at least one component acquired characteristic information converted to for determining described person's handwriting size; And each described component is merged, to obtain the described person's handwriting size described in n-th corresponding to tracing point; Then tracing point described in each is carried out landscaping treatment by described person's handwriting size, to obtain the handwriting corresponding to track that each described tracing point formed; Thus, described disposal system inputs layer user and shows the handwriting with user's handwriting in real time.Wherein, n be greater than 1 integer.
And for example, described disposal system, from caught second described tracing point, utilizes coordinate and the time of tracing point described in n-th and a described tracing point before this, calculates the speed of tracing point described in n-th, wherein, n be greater than 1 integer; Again based on preset tracing point speed respectively with the size of handwriting and the corresponding relation of transparency, determine size and the transparency of the handwriting described in n-th corresponding to tracing point; Then, utilize preset trajectory segment rule, the track in real time up-to-date multiple described tracing point of catching formed according to corresponding described tracing point separately corresponding to size and transparency carry out landscaping treatment; Thus, described disposal system inputs layer user and shows the handwriting with user's handwriting in real time.
In step s 2, described disposal system arranges the first scaling of the coordinate being used for each tracing point of convergent-divergent according to the format information of the editor's layer shown by the configuration information of the screen of described electronic equipment and described screen, and the coordinate of each described tracing point is carried out convergent-divergent according to described first scaling, to obtain the coordinate of each tracing point after convergent-divergent.
Wherein, the configuration information of described screen includes but not limited to: one or more in the sum of the resolution of described screen, the width of described screen reality, the pixel in screen width direction.The format information of described editor's layer includes but not limited to: one or more in font size, line space, certain distance.Such as, the screen width of described electronic equipment is 240mm, and font size is 10mm, then described disposal system determines that the first scaling is
Preferably, described disposal system utilizes formula (1) to determine described first scaling η 1;
η 1 = λ × s w l w - - - ( 1 )
Wherein, λ is the screen resolution of described electronic equipment; S wfor the screen width of described electronic equipment; l wfor described user inputs the line width of layer.
Then, described disposal system determines the region at each described tracing point place based on the coordinate of caught each described tracing point, and according to the formula comprising the starting point coordinate after convergent-divergent and described first scaling preset, the coordinate of each described tracing point in described region is carried out convergent-divergent, to obtain the coordinate of each tracing point after convergent-divergent; Meanwhile, the time of each tracing point is constant.
Such as, the coordinate of each tracing point of the track of catching comprises { (2,2), (3,2), (3,4), (3,5) }, described first scaling is 1/2, and described disposal system therefrom determines that the region in this track shared by each tracing point is that (2,2) are to (3,5) rectangular area surrounded, then described disposal system is with first tracing point for starting point, and its coordinate is constant, and other tracing points are according to formula x i ′ = ( x i - x 0 ) η 1 + x 0 y i ′ = ( y i - y 0 ) η 1 + y 0 Calculate, obtain each tracing point after reducing, wherein x ifor the horizontal ordinate of caught tracing point, x 0for the horizontal ordinate of starting point, y ifor the ordinate of caught tracing point, y 0for the ordinate of starting point, then each tracing point coordinate after convergent-divergent is respectively { (2,2), (2.5,2), (2.5,3), (2.5,3.5) }.
It should be noted that, those skilled in the art should understand that, the mode of the coordinate of each tracing point after above-mentioned calculating convergent-divergent is only citing, but not limitation of the present invention, in fact, anyly utilize described first scaling that each tracing point coordinate is carried out the mode of convergent-divergent, be all included within the present invention.
In step s3, described disposal system is based on the coordinate of each tracing point after convergent-divergent and time, each track that each tracing point after convergent-divergent is formed is carried out landscaping treatment, to obtain corresponding handwriting, and the image that all described handwritings are formed is attached to the appointed area of editor's layer.
Particularly, described disposal system calculates the characteristic information such as size, transparency of the handwriting corresponding to each tracing point by the coordinate of each tracing point after convergent-divergent and time, and by described characteristic information, described tracing point and point around thereof are filled, to obtain corresponding handwriting, so, all handwritings couple together and just obtain the image that all described handwritings form, and are attached to by described image on position that in editor's layer, cursor is specified.
Wherein, each track that each tracing point after convergent-divergent is formed is carried out landscaping treatment by described disposal system, comprises step S31 and S32 in the mode obtaining corresponding handwriting.As shown in Figure 2.
In step S31, described disposal system is according to time sequencing, from second described tracing point, based on coordinate and the time of tracing point described in tracing point described in n-th and before this at least one, obtain the characteristic information of the person's handwriting size for characterizing tracing point described in n-th; And at least one component acquired characteristic information converted to for determining described person's handwriting size; And each described component is merged, to obtain the person's handwriting size described in n-th corresponding to tracing point; Wherein, n be greater than 1 integer.The characteristic information of described tracing point comprises any information that can help to determine the person's handwriting size of described tracing point, such as, according to the statistics to writing style, writing speed is faster, the person's handwriting write is thinner, then handwriting input belongs to described characteristic information to speed during described tracing point; And for example, the person's handwriting that the person's handwriting of the bending place of stroke is comparatively kept straight on is thicker, then handwriting input belongs to described characteristic information etc. to deflection angle during described tracing point.Thus, described characteristic information includes but not limited to: one or more in the deflection angle of the speed of described tracing point, the acceleration of described tracing point, the deflection of described tracing point, described tracing point.
Particularly, described disposal system only records coordinate and the time of first described tracing point, from second described tracing point, the formula preset is utilized to carry out mathematical computations to the coordinate of each described tracing point and time, to obtain the characteristic information such as speed, acceleration, deflection, deflection angle of each described tracing point.Wherein, the characteristic information of first described tracing point can be preset value.
In the present embodiment, the mode that described disposal system obtains the speed of tracing point described in n-th for: calculate the displacement between two tracing points based on the coordinate of tracing point described in n-th and the coordinate of a tracing point before this, again according to the ratio of the difference of the time of described displacement and these two tracing points, obtain the speed of tracing point described in n-th.
Such as, described disposal system utilizes formula (2) to obtain the speed of tracing point described in n-th.
v n = ( x n - x n - 1 ) 2 + ( y n - y n - 1 ) 2 t n - t n - 1 - - - ( 2 )
Wherein, v nrepresent the speed of tracing point described in n-th, (x n, y n) and (x n-1, y n-1) coordinate when being respectively n-th and (n-1)th tracing point after convergent-divergent, t nand t n-1be respectively the time of n-th and (n-1) individual tracing point.
The mode that described disposal system obtains the acceleration of tracing point described in n-th for: utilize the speed of tracing point described in acquired n-th and the difference of speed of a tracing point before this and the ratio of the difference of the time of these two tracing points, obtain the acceleration of tracing point described in n-th.
Such as, described disposal system utilizes formula (3) to obtain the acceleration of tracing point described in n-th.
a n = v n - v n - 1 t n - t n - 1 - - - ( 3 )
Wherein, a nbe the acceleration of the n-th tracing point, v nand v n-1speed when handwriting input to the n-th tracing point and (n-1) individual tracing point that calculate based on formula (2) respectively, t nand t n-1be respectively the time of the n-th tracing point and (n-1)th tracing point.
The mode that described disposal system obtains the deflection of tracing point described in n-th for: tracing point described in n-th and a described tracing point are before this formed a vector, and obtain the deflection of described vector, using the deflection of the deflection of described vector as tracing point described in n-th.
Such as, described disposal system obtains the deflection of tracing point described in n-th based on formula (4).
θ n = arctan ( y n - y n - k x n - x n - k ) - - - ( 4 )
Wherein, θ nbe the deflection of the n-th tracing point, (x n, y n) and (x n-1, y n-1) coordinate when being respectively the n-th and n-th-k after convergent-divergent tracing point, wherein, 1≤k≤n, n and k is integer.
It should be noted that, owing to being subject to the impact of noise, if two tracing points distance is too near, the direction of the vector that two tracing points are formed may too be limited to, and in fact can not reflect the real direction of stroke.
So preferably, in order to choose the vector that accurately can reflect stroke direction accurately, described disposal system is before obtaining described deflection, a tracing point is determined first each tracing point before tracing point described in n-th, to form a vector with tracing point described in n-th, and then determine the direction of tracing point described in n-th by the deflection calculating this vector.
Particularly, the tracing point that in each tracing point before tracing point described in n-th, existence two is adjacent, the displacement of tracing point described in one of them tracing point and n-th is made to be greater than default threshold value, the displacement of tracing point described in another tracing point and n-th is less than described threshold value, then described disposal system is chosen and is made displacement be greater than tracing point corresponding to described threshold value, and the vector utilizing tracing point described in n-th and selected described tracing point to form, obtain the deflection of tracing point described in n-th.
Such as, described disposal system determines before this based on formula (5) a tracing point.
( x n - x n - k ) 2 + ( y n - y n - k ) 2 &GreaterEqual; th ( x n - x n - k + 1 ) 2 + ( y n - y n - k + 1 ) 2 < th - - - ( 5 )
Wherein, described th is threshold value, (x n, y n), (x n-k, y n-k), (x n-k+1, y n-k+1) be respectively the coordinate of individual and (n-k+1) the individual described tracing point of n-th after convergent-divergent, (n-k).
Described disposal system chooses (n-k) the individual tracing point before the n-th tracing point based on formula (5), and utilizes formula (4) to determine the deflection of the vector that the n-th tracing point and (n-k) individual tracing point are formed, i.e. the deflection of the n-th tracing point.
The mode that described disposal system obtains the deflection angle of tracing point described in n-th for: the difference based on the deflection of tracing point described in n-th and the deflection of a tracing point before this obtains the deflection angle of tracing point described in n-th.
Such as, described disposal system obtains the deflection angle of tracing point described in n-th based on formula (6).
Wherein, θ n, θ n-1be respectively n-th, the deflection of (n-1) individual tracing point, it is the deflection angle of the n-th tracing point.
Then, acquired characteristic information is converted at least one component for determining person's handwriting size by described disposal system.Wherein, described person's handwriting size can be person's handwriting width.
Particularly, the determined characteristic information of described disposal system only can comprise one in speed, acceleration, deflection, deflection angle, and what also can comprise in speed, acceleration, deflection, deflection angle is several or whole.Described disposal system utilizes the formula preset, and acquired characteristic information is converted at least one component for determining corresponding person's handwriting size.
In the present embodiment, characteristic information acquired by described disposal system comprises: the speed of described tracing point, the acceleration of described tracing point, the deflection of described tracing point and the deflection angle of described tracing point, then utilize acquired characteristic information to determine component described at least one.
First, described disposal system to the corresponding relation of the factor of influence of the sensitivity of speed, determines the factor of influence f of the deflection of tracing point described in n-th to the sensitivity of speed based on the scope of deflection preset and deflection vn).Wherein, the scope of the deflection preset sees the following form:
Such as, the deflection that described disposal system obtains tracing point described in n-th is 180 °, then by the angular range of the upper table of contrast, determine the factor of influence f of the deflection of tracing point described in n-th to the sensitivity of speed vn) be 0.9.
Then, described disposal system utilizes formula (7) to determine the component of the person's handwriting size corresponding to speed of tracing point described in n-th
f v n = k 1 &times; v n k 2 &times; f v ( &theta; n ) - - - ( 7 )
Wherein, k 1, k 2for being in harmonious proportion parameter, can adjusting according to the writing style of user and preference, may also be fixed constant, preferably, k 1span at 0.1 ~ 0.5, k 2span at 0.3 ~ 1.5, f vn) be the deflection of tracing point described in n-th to the factor of influence of the sensitivity of speed, v nfor described disposal system obtain n-th described in the speed of tracing point.
In addition, described disposal system utilizes formula (8) to determine the component of the person's handwriting size corresponding to acceleration of tracing point described in n-th
f a n = - | a n | &times; e | a n | &times; k 3 - - - ( 8 )
Wherein, k 3for being in harmonious proportion the factor, preferably, k 3span at 0.2 ~ 2, a nfor described disposal system obtain n-th described in the acceleration of tracing point.
Further, described disposal system utilizes formula (9) to determine the component of the person's handwriting size corresponding to acceleration of tracing point described in n-th
Wherein, k 4for parameter, k 4preferred span 1 ~ 10, for described disposal system obtain n-th described in the deflection angle of tracing point.
Then, each described component merges by described disposal system, to obtain the described person's handwriting size described in n-th corresponding to tracing point.
In the present embodiment, described disposal system is used for determining that each component of person's handwriting size is weighted and gets by above-mentioned changed and or get and the computing such as weighting, to obtain the person's handwriting size corresponding to described tracing point.
Such as, the described disposal system person's handwriting size R that utilizes formula (10) to determine corresponding to described tracing point n.
Wherein, k 6for weights.
It should be noted that, it should be appreciated by those skilled in the art that when the determined component of described disposal system only has one, then also can determine the person's handwriting size R corresponding to described tracing point according to described formula (10) n.
Preferably, described step S31 is also optimized process for the person's handwriting size that amplitude of variation is excessive, so that the person's handwriting of handwriting input is round and smooth.
Particularly, described disposal system obtains the variable quantity of the person's handwriting size of a described tracing point in the person's handwriting size of tracing point described in n-th and preset time period, and described variable quantity and the variable quantity preset are compared, if be greater than default variable quantity, then determine that the person's handwriting of tracing point described in n-th is of a size of the person's handwriting size sum of default variable quantity and a described tracing point, if otherwise be less than default variable quantity, then the person's handwriting size of tracing point described in acquired n-th is defined as the person's handwriting size of tracing point described in n-th, wherein, 1≤a≤n, a is integer.Wherein, the variation delta w preset maxcan be default fixed value, preferably, described default variation delta w maxdetermined by formula (11).
&Delta; w max = ( &Integral; t n - 1 t n k 5 dt ) / &lambda; - - - ( 11 )
Wherein, k 5be inhibiting factor parameter, λ is input equipment picture element density Adaptation factor, t nand t n-1be respectively the time of the n-th tracing point and (n-1) individual tracing point.Preferably, k 5span is 0.1 ~ 1.0.
In the present embodiment, the person's handwriting size that described disposal system utilizes above-mentioned formula (10) to obtain described in n-th corresponding to tracing point, then, the amplitude of variation Δ w of the person's handwriting size utilizing formula (12) to determine tracing point described in n-th and the person's handwriting size of a tracing point before this.
Δw=R n-R n-1(12)
Wherein, R nbe the person's handwriting size of the n-th tracing point, R n-1it is the person's handwriting size of (n-1) individual tracing point.If the person's handwriting of tracing point is of a size of R described in n-th n, then Δ w is used for the variable quantity of person's handwriting size of tracing point described in expression n-th, and then, described disposal system is by comparing, if determine, amplitude of variation Δ w is greater than default variation delta w max, then determine that described in n-th, the person's handwriting of tracing point is of a size of (R n-1+ Δ w), on the contrary if determine, amplitude of variation Δ w is not more than default variation delta w max, then determine that described in n-th, the person's handwriting of tracing point is of a size of R n.
In step s 32, tracing point described in each is carried out landscaping treatment by described person's handwriting size by described disposal system, the image be formed by connecting with the handwriting obtained corresponding to each described tracing point.
Particularly, each point in each described tracing point on every bar track and neighbouring described person's handwriting range of size thereof is shown as the handwriting corresponding to each described tracing point by described disposal system.
Such as, described in n-th, the person's handwriting of tracing point is of a size of: person's handwriting width is 15 pixels, then described disposal system is centered by tracing point described in n-th, and width is shown as the handwriting described in n-th corresponding to tracing point for the pixel within the scope of 15 pixels.
Then, the handwriting corresponding to each tracing point on described track couples together by described disposal system, must the image that is formed by connecting of the handwriting corresponding to each described tracing point.
Particularly, described disposal system, based on the mean value of the person's handwriting size of adjacent described tracing point, utilizes interpolation algorithm to fill, the described mean value of pressing between adjacent described tracing point to obtain continuous print handwriting.Wherein, described interpolation algorithm includes but not limited to: DDA interpolation algorithm (Numerical Differential Interpolation algorithm).
Such as, adjacent tracing point p nand p n-1person's handwriting width be 13 and 15 pixels respectively, then the person's handwriting width of these two tracing points is averaged by described disposal system, obtains 14 pixels, and utilizes DDA interpolation algorithm by tracing point p nand p n-1between the person's handwriting width pressing 14 pixels fill, obtain continuous print handwriting thus.
More preferably, described handwriting is carried out landscaping treatment by the person's handwriting pattern chosen in advance by described disposal system.Wherein, described brush pattern includes but not limited to: common brush, three-dimensional brush, scarce writing brush brush, fluorescence brush, thin brush, shade brush.
Such as, the brush pattern chosen in advance is three-dimensional brush, then described disposal system plays up one deck shade along the handwriting corresponding to described tracing point at bottom, more described handwriting is offset a segment distance toward upper left, draws prospect person's handwriting on upper strata.
More preferably, the relation that described disposal system is inversely proportional to based on the speed of person's handwriting concentration and described tracing point, carries out landscaping treatment by tracing point described in n-th by described person's handwriting size and described person's handwriting concentration.
Such as, described disposal system utilizes formula (13) to determine the person's handwriting concentration of tracing point described in n-th, and is presented on screen by described person's handwriting size and described person's handwriting concentration by described tracing point by the brush pattern chosen in advance.
f n = c v n - - - ( 13 )
Wherein, c is for being in harmonious proportion parameter, v nfor the speed of tracing point described in n-th, f nfor the person's handwriting concentration of tracing point described in n-th.
As a kind of preferred version, described method, before execution step S31, also performs the smoothing process of each described tracing point after by convergent-divergent, with the step of the coordinate and time that obtain the tracing point after smoothing processing.Wherein, the mode of the smoothing process of each described tracing point after convergent-divergent is included but not limited to: utilize the smoothing process of the mode of Bezier matching.
Such as, described disposal system extracts three tracing points: the n-th tracing point P 0, first tracing point P before this 1, and second tracing point P before this 2.Using the reference mark of these three tracing points as second order Bezier, and Bezier interpolation fitting is carried out, to obtain the set of the coordinate of the tracing point after smoothing processing to the track that these three tracing points are formed.Equation is as follows:
P(t)=(1-t) 2P 0+2t(1-t)P 1+t 2P 2
Wherein, t represents the tracing point after matching, P(t) represent the set of the coordinate of the tracing point after matching.
Then, the time of each tracing point after convergent-divergent, according to the tracing point after convergent-divergent and the proportionate relationship quantitatively of the tracing point after smoothing processing, divides equally by described disposal system, to obtain the time of each tracing point in the track after smoothing processing.
Then, described disposal system carries out the extraction of characteristic information successively to each tracing point after smoothing processing by step S31; And then according to step S32, each tracing point after smoothing processing is carried out landscaping treatment, to obtain the image that all handwritings are formed according to person's handwriting size corresponding separately.
It should be noted that, it should be appreciated by those skilled in the art that described disposal system successively the mode of the process of characteristic information is carried out to each tracing point acquired after smoothing processing and abovementioned steps S31 same or similar, be not described in detail in this.
Embodiment two
With embodiment one unlike, in described step S3, each track that each tracing point after convergent-divergent is formed is carried out landscaping treatment, also comprises step S311, S312 and S313 in the mode obtaining corresponding handwriting.As shown in Figure 3.
In step S311, described disposal system according to time sequencing, from the described tracing point of second after convergent-divergent, utilize coordinate and the time of tracing point described in n-th and a described tracing point before this, calculate the speed of tracing point described in n-th, wherein, n be greater than 1 integer.
Particularly, when described disposal system catches first described tracing point, only record coordinate and the time of described tracing point, from catching second described tracing point, calculate the speed of all tracing points of catching in real time.
Wherein, the mode of catching the speed of tracing point described in n-th is the coordinate utilizing the n-th tracing point and a tracing point before this, calculates the displacement between these two tracing points; Again according to the ratio of the difference of the time of described displacement and these two tracing points, obtain the speed of tracing point described in n-th.
Such as, the described tracing point P after described disposal system determination convergent-divergent 1coordinate (x 1, y 1) and time t 1, and tracing point P 2coordinate (x 2, y 2) and time t 2; Wherein t1<t2; Then, the tracing point P that formula (14) obtains is utilized 1and P 2between average velocity v, and using described average velocity v as tracing point P 2speed.
v = ( x 2 - x 1 ) 2 + ( y 2 - y 1 ) 2 t 2 - t 1 - - - ( 14 )
In step S312, described disposal system based on preset tracing point speed respectively with the size of handwriting and the corresponding relation of transparency, determine size and the transparency of the handwriting described in n-th corresponding to tracing point.Wherein, described size can be the width of handwriting.
Particularly, the speed of tracing point preset and the corresponding relation of the corresponding relation of the size of handwriting and the transparency of speed and handwriting carry out calculating according to the experience of the writing style of people, such as, according to the statistics to people's writing style, writing speed is faster, and handwriting is thinner; Writing speed is faster, and handwriting is more transparent.Therefore, described speed can be proportional corresponding relation with the size of handwriting and the corresponding relation of transparency respectively.
Preferably, described disposal system, based on the linear relationship of size of the speed preset and handwriting, determines the size of the handwriting described in n-th corresponding to tracing point.
Such as, described disposal system utilizes formula (15) to determine the size of the caught handwriting corresponding to the n-th tracing point.
W = W max + W max - W min v min - v max v - - - ( 15 )
Wherein, W represents the size of the handwriting corresponding to the n-th tracing point; V represents the hand-written speed of tracing point described in n-th, parameter W max, W minrepresent maximal value and the minimum value of the size of handwriting respectively, v max, v minrepresent maximal value and the minimum value of the speed of described tracing point respectively; W max, W min, v max, v mindescribed change in size effect can be adjusted represent the intensity of variation of described size, its value is larger, then described change in size is more obvious.
Wherein, W max, W min, v max, v mincan be default fixed value, also can be preset by user.
Described disposal system, based on the linear relationship of transparency of the speed preset and handwriting, determines the transparency of the handwriting described in n-th corresponding to tracing point.
Such as, described disposal system utilizes formula (16) to determine the size of the caught handwriting corresponding to the n-th tracing point.
A = A max + A max - A min v min - v max v - - - ( 16 )
Wherein, A represents the transparency of the handwriting corresponding to the n-th tracing point; V represents the hand-written speed of tracing point described in n-th, parameter A max, A minrepresent maximal value and the minimum value of the transparency of handwriting respectively, v max, v minrepresent maximal value and the minimum value of the speed of described tracing point respectively; A max, A min, v max, v mindescribed transparency change effect can be adjusted represent the intensity of variation of described transparency, its value is larger, then described transparency change is more obvious.
Wherein, A max, A min, v max, v mincan be default fixed value, also can be preset by user.
It should be noted that, first described tracing point of catching according to formula (15), (16) due to speed be 0, then the size of the handwriting corresponding to it and transparency can be maximal value.Preferably, size and the transparency of the handwriting corresponding to first described tracing point of catching are preset value.Such as, described disposal system presets the transparency that the size of the handwriting corresponding to first described tracing point of catching and transparency are respectively 1 pixel and 50%.
In step S313, described disposal system utilizes the trajectory segment rule preset, each section of track formed by each described tracing point carries out landscaping treatment, to obtain the image that all described handwritings are formed according to the corresponding separately size of described tracing point and transparency.
Particularly, according to time sequencing, described disposal system carries out segmentation according to the track that formed by described tracing point of trajectory segment rule preset, and according to described tracing point separately corresponding to size and transparency carry out image procossing, to obtain the handwriting corresponding to this section of track; The rest may be inferred, and the track that each described tracing point is formed is carried out landscaping treatment by described disposal system piecewise, and to obtain continuous print handwriting, all handwritings just form an image.
Preferably, described step S313 also comprises: step S3131, S3132, S3133, S3134(do not give diagram).
In step S3131, described disposal system utilizes the chopping rule preset, and the sub-trajectory that each described tracing point in each section of track is formed is carried out interpolation processing, to obtain the sub-trajectory be made up of interpolation point and described tracing point.Wherein, the mode of interpolation processing includes but not limited to: utilize DDA interpolation algorithm to carry out interpolation processing.Preferably, the mode of interpolation processing carries out interpolation processing for utilizing Bezier algorithm.
Particularly, described disposal system utilizes formula (17), and described sub-trajectory is carried out interpolation processing;
B n(t)=MidPoint(P 2n-2,P 2n-1)(1-t) 3+3P 2n-1t(1-t) 2+3P 2nt 2(1-t)+MidPoint(P 2n,P 2n+1)t 3(17)
Wherein, B nt () represents the set of the coordinate of interpolation point; P 2n-2, P 2n-1, P 2n, P 2n+1be the coordinate of the described tracing point after convergent-divergent; N be greater than 1 integer; T is stepping number of times, MidPoint(P 2n-2, P 2n-1) represent described tracing point P 2n-2, P 2n-1the coordinate of mid point, be also the starting point of the sub-trajectory after interpolation processing; MidPoint(P 2n, P 2n+1) represent described tracing point P 2n, P 2n+1the coordinate of mid point, the terminal of the sub-trajectory namely after interpolation processing.
Preferably, described disposal system also utilizes formula (18) to carry out interpolation processing to sub-trajectory described in first paragraph;
B 1(t)=P 1(1-t) 3+3P 2t(1-t) 2+3P 3t 2(1-t)+MidPoint(P 3,P 4)t 3(18)
Wherein, B 1the set of the interpolation point in sub-trajectory described in (t) expression first paragraph and the coordinate of tracing point; P 1, P 2, P 3, P 4be the coordinate of caught described tracing point; T is stepping number of times; MidPoint(P 3, P 4) represent described tracing point P 3, P 4the coordinate of mid point.
In step S3132, the size of described disposal system corresponding to each described tracing point on the described sub-trajectory after interpolation processing and transparency determine size and the transparency of the handwriting corresponding to each described interpolation point.
Particularly, described disposal system, according to the quantity of the interpolation point inserted between adjacent track point, is divided equally the size of the handwriting corresponding to adjacent tracing point and transparency, to obtain size and the transparency of the handwriting corresponding to each interpolation point.
Such as, described disposal system according to formula (17) by tracing point P 3, P 4, P 5and P 6the sub-trajectory formed carries out interpolation processing, to obtain interpolation point set B 2(t), it comprises { P 3', P 4, P 41', P 42', P 43', P 5, P 51', P 52', P 53', P 6, P 6' individual interpolation point and tracing point, wherein, interpolation point P 3' be the coordinate of the starting point of sub-trajectory after interpolation processing, it is positioned at tracing point P 3, P 4mid point, { P 41', P 42', P 43' interpolation point is tracing point P 4, P 5between the coordinate of interpolation point, { P 51', P 52', P 53' interpolation point is tracing point P 5, P 6between the coordinate of interpolation point, P 6' be the coordinate of the terminal of sub-trajectory after interpolation processing, it is positioned at tracing point P 5, P 6mid point; Then described disposal system is according to tracing point P 3, P 4the mean value of the size of handwriting corresponding separately determines starting point P 3' corresponding to the size of handwriting, according to tracing point P 3, P 4the mean value of the transparency of handwriting corresponding separately determines starting point P 3' corresponding to the transparency of handwriting; Similar, described terminal P 6' corresponding to the size of handwriting and transparency by tracing point P 5and P 6the size of handwriting corresponding separately and the mean value of transparency are determined; Interpolation point { P 41', P 42', P 43' size of separately corresponding handwriting and transparency be then by decile tracing point P 4, P 5size corresponding separately and transparency calculate and obtain; Interpolation point { P 51', P 52', P 53' size of separately corresponding handwriting and transparency be then by decile tracing point P 5, P 6size corresponding separately and transparency calculate and obtain.
Preferably, described disposal system utilizes formula (19) to obtain the size of the handwriting corresponding to each interpolation point;
W(t)=(1-t) 3BeginPt.Width+3t(1-t) 2ControlPt1.Width (19);
+3t 3(1-t)ControlPt2.Width+t 3EndPt.Width
Wherein, W (t) represents the set of the size of each interpolation point and the handwriting corresponding to tracing point in described sub-trajectory; BeginPt.Width represents the size of the handwriting corresponding to the starting point of described sub-trajectory; ControlPt1.Width, ControlPt2.Width represent the size of the handwriting that two described tracing points between described starting point and terminal are corresponding separately respectively; EndPt.Width represents the size of the handwriting corresponding to the terminal of described sub-trajectory.
Similar, described disposal system utilizes formula (20) to obtain the transparency of the handwriting corresponding to each interpolation point;
A(t)=(1-t) 3BeginPt.Alpha+3t(1-t) 2ControlPt1.Alpha (20);
+3t 3(1-t)ControlPt2.Alpha+t 3EndPt.Alpha
Wherein, A (t) represents the set of the transparency of interpolation point; BeginPt.Alpha represents the transparency of the starting point of the described sub-trajectory after interpolation processing; ControlPt1.Alpha, ControlPt2.Alpha represent the transparency of two described tracing points between described starting point and terminal; EndPt.Alpha represents the transparency of the terminal of the described sub-trajectory after interpolation processing.
Wherein, if the starting point of described track and terminal interpolation point, then described disposal system is based on the position between described starting point and terminal separately adjacent tracing point after scaling, determines the transparency of the handwriting that described starting point and terminal are corresponding separately.
In step S3133, the size of the handwriting that described disposal system utilizes described interpolation point and tracing point corresponding separately and transparency, track landscaping treatment after interpolation processing is become size and transparency continually varying handwriting, all described handwriting tracks form polar plot.
It should be noted that, described disposal system can convert each interpolation point in described sub-trajectory and tracing point to size and transparency continually varying handwriting successively according to the mode in described step S313.
Preferably, described tracing point and interpolation point, according to the template of the handwriting preset, are carried out the splicing of handwriting by described disposal system successively with corresponding size and transparency.Wherein, the template of handwriting includes but not limited to: the template of writing brush style, the template etc. of pen style.Wherein, the mode of described splicing includes but not limited to: the mode etc. of image rendering.
Such as, the template of the handwriting preset is the template of writing brush style, and the tracing point on the track after interpolation processing and interpolation point are followed successively by { P 3', P 4, P 41', P 42', P 43', P 5, P 51', P 52', P 53', P 6, P 6', wherein, P 4, P 5, P 6for tracing point, other points are interpolation point, then described disposal system is by the size of the handwriting corresponding to each point obtained in step S313 and transparency, the handwriting of the writing brush style that size and transparency are consistent is rendered successively, to obtain stroke weight and the level and smooth handwriting of the deep or light change of pen and ink near each point.
In step S314, all handwritings after interpolation processing, based on the annexation of the sub-trajectory in each section of track, couple together by described disposal system, to obtain the image that all described handwritings are formed.
Particularly, visible according to above-mentioned formula (17), the starting point of adjacent sub-trajectory and terminal are a point, so adjacent sub-trajectory can seamless link, therefore the handwriting corresponding to each sub-trajectory splices according to the sequencing of the sub-trajectory in each track by described disposal system, can obtain the handwriting corresponding to described track, all described handwritings just form piece image.
As a kind of preferred version, described step S3 also comprises: described image is carried out convergent-divergent by the second scaling, and the described image after convergent-divergent is attached to the appointed area of editor's layer.Wherein, described second scaling can be relevant to described first scaling, also can have nothing to do with described first scaling, preferably, and described second scaling η 2with the first scaling η 1between meet formula η 2=k 7η 1; Wherein, k 7for constant.
Embodiment three
With the first two embodiment unlike, described method also comprises: step S4.
In step s 4 which, described disposal system obtains user by the operation of described trace input device in described editor's layer, and travels through the nearest described image in the position that operates described in described editor's layer middle distance, so that after cursor is placed in described image.Wherein, user is comprised by the operation of described trace input device in editor's layer: update, choose operation etc.Such as, user is by editing certain position in layer described in double mouse click, the coordinate of this position is (x1, y1), then described disposal system is attached to the start-stop coordinate of all images in described editor's layer based on the coordinate traversal of this position, and obtain the coordinate (x2 of image c3, y2) nearest and between the coordinate of described position, after then cursor is placed in described image c3 by described disposal system, so that user inserts described image or deletes the operation being positioned at previous/rear image of described cursor.
As shown in Figures 4 to 6, the present invention also provides a kind of electronic equipment, for carrying out editing and processing to handwriting tracks.
Embodiment four
As shown in Figure 4, described electronic equipment comprises: trace input device, catch processing module, Zoom module and person's handwriting processing module, and user inputs layer and editor's layer.Wherein, described user inputs layer and edits layer and is in described electronic equipment the interface be presented on screen.
Described trace input device comprise any can the device of manual input trajectory, it includes but not limited to: mouse, screen touch pen, touch-screen etc.
Described processing module of catching inputs the process of carrying out track input in layer for monitoring described trace input device described user, and catches coordinate and the time of the tracing point on inputted each track in real time.
Particularly, described in catch processing module monitor user ' and utilize trace input device to carry out the beginning action of handwriting input and the action of end, and during this period, catch in real time described trace input device each tracing point coordinate of process and time.
Such as, described in catch processing module and monitor user when pressing the action of mouse, confirm that handwriting input starts, at preset timed intervals interval catch mouse each tracing point of process, when monitoring user and lifting the action of mouse, confirm that a handwriting input terminates; When user utilize mouse click on the screen of described electronic equipment complete button time, described in catch processing module caught each tracing point transported to described Zoom module.
Preferably, catch processing module described in also to comprise: the first person's handwriting process submodule.
Described first person's handwriting process submodule is used for when catching described tracing point, based on coordinate and the time of each described tracing point of having caught, in real time the track that caught each described tracing point is formed is beautified into handwriting, and be presented at described user and input in layer.
It should be noted that, described first person's handwriting process submodule is based on the coordinate of each described tracing point of having caught and time, in real time the track that caught each described tracing point is formed is beautified in the mode of handwriting and following person's handwriting processing module based on the coordinate of each tracing point after convergent-divergent and time, by same or similar for the mode that each track that each tracing point after convergent-divergent is formed carries out landscaping treatment in detail, the description seen in person's handwriting processing module is described in detail.
Such as, described first person's handwriting process submodule is from caught second described tracing point, based on coordinate and the time of tracing point described in tracing point described in n-th and before this at least one, obtain the characteristic information for characterizing the person's handwriting size described in n-th corresponding to tracing point; And at least one component acquired characteristic information converted to for determining described person's handwriting size; And each described component is merged, to obtain the described person's handwriting size described in n-th corresponding to tracing point; Then tracing point described in each is carried out landscaping treatment by described person's handwriting size, to obtain the handwriting corresponding to track that each described tracing point formed; Thus, described first person's handwriting process submodule inputs layer user and shows the handwriting with user's handwriting in real time.Wherein, n be greater than 1 integer.
And for example, described first person's handwriting process submodule, from caught second described tracing point, utilizes coordinate and the time of tracing point described in n-th and a described tracing point before this, calculates the speed of tracing point described in n-th, wherein, n be greater than 1 integer; Again based on preset tracing point speed respectively with the size of handwriting and the corresponding relation of transparency, determine size and the transparency of the handwriting described in n-th corresponding to tracing point; Then, utilize preset trajectory segment rule, the track in real time up-to-date multiple described tracing point of catching formed according to corresponding described tracing point separately corresponding to size and transparency carry out landscaping treatment; Thus, described first person's handwriting process submodule inputs layer user and shows the handwriting with user's handwriting in real time.
Described Zoom module is used for the first scaling arranging the coordinate being used for each tracing point of convergent-divergent according to the format information of the editor's layer shown by the configuration information of the screen of described electronic equipment and described screen, and described coordinate of catching each described tracing point that processing module is caught is carried out convergent-divergent according to described first scaling, to obtain the coordinate of each tracing point after convergent-divergent.
Wherein, the configuration information of described screen includes but not limited to: one or more in the sum of the resolution of described screen, the width of described screen reality, the pixel in screen width direction.The format information of described editor's layer includes but not limited to: one or more in font size, line space, certain distance.Such as, the screen width of described electronic equipment is 240mm, and font size is 10mm, then described Zoom module determines that the first scaling is
Preferably, described Zoom module utilizes formula (1) to determine described first scaling η 1; Wherein, λ is the screen resolution of described electronic equipment; S wfor the screen width of described electronic equipment; l wfor described user inputs the line width of layer.
Then, described Zoom module determines the region at each described tracing point place based on the coordinate of caught each described tracing point, and according to the formula comprising the starting point coordinate after convergent-divergent and described first scaling preset, the coordinate of each described tracing point in described region is carried out convergent-divergent, to obtain the coordinate of each tracing point after convergent-divergent; Meanwhile, the time of each tracing point is constant.
Such as, the coordinate of each tracing point of the track of catching comprises { (2,2), (3,2), (3,4), (3,5) }, described first scaling is 1/2, and described Zoom module therefrom determines that the region in this track shared by each tracing point is that (2,2) are to (3,5) rectangular area surrounded, then described Zoom module is with first tracing point for starting point, and its coordinate is constant, and other tracing points are according to formula x i &prime; = ( x i - x 0 ) &eta; 1 + x 0 y i &prime; = ( y i - y 0 ) &eta; 1 + y 0 Calculate, obtain each tracing point after reducing, wherein x ifor the horizontal ordinate of caught tracing point, x 0for the horizontal ordinate of starting point, y ifor the ordinate of caught tracing point, y 0for the ordinate of starting point, then each tracing point coordinate after convergent-divergent is respectively { (2,2), (2.5,2), (2.5,3), (2.5,3.5) }.
It should be noted that, those skilled in the art should understand that, the mode of the coordinate of each tracing point after above-mentioned calculating convergent-divergent is only citing, but not limitation of the present invention, in fact, anyly utilize described first scaling that each tracing point coordinate is carried out the mode of convergent-divergent, be all included within the present invention.
Described person's handwriting processing module is used for based on the coordinate of each tracing point after convergent-divergent and time, each track that each tracing point after convergent-divergent is formed is carried out landscaping treatment, to obtain corresponding handwriting, and the image that all described handwritings are formed is attached to the appointed area of described editor's layer.
Particularly, described person's handwriting processing module calculates the characteristic information such as size, transparency of the handwriting corresponding to each tracing point by the coordinate of each tracing point after convergent-divergent and time, and by described characteristic information, described tracing point and point around thereof are filled, to obtain corresponding handwriting, so, all handwritings couple together and just obtain the image that all described handwritings form, and are attached to by described image on position that in editor's layer, cursor is specified.
Wherein, described person's handwriting processing module comprises fisrt feature information processing submodule and the first landscaping treatment submodule.As shown in Figure 5.
Described fisrt feature information processing submodule is used for according to time sequencing, from second described tracing point, based on coordinate and the time of tracing point described in tracing point described in n-th and before this at least one, obtain the characteristic information of the person's handwriting size for characterizing tracing point described in n-th; And at least one component acquired characteristic information converted to for determining described person's handwriting size; And each described component is merged, to obtain the described person's handwriting size described in n-th corresponding to tracing point; Wherein, n be greater than 1 integer.The characteristic information of described tracing point comprises any information that can help to determine the person's handwriting size of described tracing point, such as, according to the statistics to writing style, writing speed is faster, the person's handwriting write is thinner, then handwriting input belongs to described characteristic information to speed during described tracing point; And for example, the person's handwriting that the person's handwriting of the bending place of stroke is comparatively kept straight on is thicker, then handwriting input belongs to described characteristic information etc. to deflection angle during described tracing point.Thus, described characteristic information includes but not limited to: one or more in the deflection angle of the speed of described tracing point, the acceleration of described tracing point, the deflection of described tracing point, described tracing point.
Particularly, described fisrt feature information processing submodule only records coordinate and the time of first described tracing point, from second described tracing point, the formula preset is utilized to carry out mathematical computations to the coordinate of each described tracing point and time, to obtain the characteristic information such as speed, acceleration, deflection, deflection angle of each described tracing point.Wherein, the characteristic information of first described tracing point can be preset value.
In the present embodiment, the mode that described fisrt feature information processing submodule obtains the speed of tracing point described in n-th for: calculate the displacement between two tracing points based on the coordinate of tracing point described in n-th and the coordinate of a tracing point before this, again according to the ratio of the difference of the time of described displacement and these two tracing points, obtain the speed of tracing point described in n-th.
Such as, described fisrt feature information processing submodule utilizes formula (2) to obtain the speed of tracing point described in n-th; Wherein, v nrepresent the speed of tracing point described in n-th, (x n, y n) and (x n-1, y n-1) coordinate when being respectively n-th and (n-1)th tracing point after convergent-divergent, t nand t n-1be respectively the time of n-th and (n-1) individual tracing point.
The mode that described fisrt feature information processing submodule obtains the acceleration of tracing point described in n-th for: utilize the speed of tracing point described in acquired n-th and the difference of speed of a tracing point before this and the ratio of the difference of the time of these two tracing points, obtain the acceleration of tracing point described in n-th.
Such as, described fisrt feature information processing submodule utilizes formula (3) to obtain the acceleration of tracing point described in n-th; Wherein, a nbe the acceleration of the n-th tracing point, v nand v n-1speed when handwriting input to the n-th tracing point and (n-1) individual tracing point that calculate based on formula (2) respectively, t nand t n-1be respectively the time of the n-th tracing point and (n-1)th tracing point.
The mode that described fisrt feature information processing submodule obtains the deflection of tracing point described in n-th for: tracing point described in n-th and a described tracing point are before this formed a vector, and obtain the deflection of described vector, using the deflection of the deflection of described vector as tracing point described in n-th.
Such as, described fisrt feature information processing submodule obtains the deflection of tracing point described in n-th based on formula (4); Wherein, θ nbe the deflection of the n-th tracing point, (x n, y n) and (x n-1, y n-1) coordinate when being respectively the n-th and n-th-k after convergent-divergent tracing point, wherein, 1≤k≤n, n and k is integer.
It should be noted that, owing to being subject to the impact of noise, if two tracing points distance is too near, the direction of the vector that two tracing points are formed may too be limited to, and in fact can not reflect the real direction of stroke.
So preferably, in order to choose the vector that accurately can reflect stroke direction accurately, described fisrt feature information processing submodule is before obtaining described deflection, a tracing point is determined first each tracing point before tracing point described in n-th, to form a vector with tracing point described in n-th, and then determine the direction of tracing point described in n-th by the deflection calculating this vector.
Particularly, the tracing point that in each tracing point before tracing point described in n-th, existence two is adjacent, the displacement of tracing point described in one of them tracing point and n-th is made to be greater than default threshold value, the displacement of tracing point described in another tracing point and n-th is less than described threshold value, then described fisrt feature information processing submodule is chosen and is made displacement be greater than tracing point corresponding to described threshold value, and the vector utilizing tracing point described in n-th and selected described tracing point to form, obtain the deflection of tracing point described in n-th.
Such as, described fisrt feature information processing submodule determines before this based on formula (5) a tracing point; Wherein, described th is threshold value, (x n, y n), (x n-k, y n-k), (x n-k+1, y n-k+1) be respectively the coordinate of individual and (n-k+1) the individual described tracing point of n-th after convergent-divergent, (n-k).
Described fisrt feature information processing submodule chooses (n-k) the individual tracing point before the n-th tracing point based on formula (5), and utilize formula (4) to determine the deflection of the vector that the n-th tracing point and (n-k) individual tracing point are formed, i.e. the deflection of the n-th tracing point.
The mode that described fisrt feature information processing submodule obtains the deflection angle of tracing point described in n-th for: the difference based on the deflection of tracing point described in n-th and the deflection of a tracing point before this obtains the deflection angle of tracing point described in n-th.
Such as, described fisrt feature information processing submodule obtains the deflection angle of tracing point described in n-th based on formula (6); Wherein, θ n, θ n-1be respectively n-th, the deflection of (n-1) individual tracing point, it is the deflection angle of the n-th tracing point.
Then, acquired characteristic information is converted at least one component for determining person's handwriting size by described fisrt feature information processing submodule.Wherein, described person's handwriting size can be person's handwriting width.
Particularly, the determined characteristic information of described fisrt feature information processing submodule only can comprise one in speed, acceleration, deflection, deflection angle, and what also can comprise in speed, acceleration, deflection, deflection angle is several or whole.Described fisrt feature information processing submodule utilizes the formula preset, and acquired characteristic information is converted at least one component for determining corresponding person's handwriting size.
In the present embodiment, characteristic information acquired by described fisrt feature information processing submodule comprises: the speed of described tracing point, the acceleration of described tracing point, the deflection of described tracing point and the deflection angle of described tracing point, then utilize acquired characteristic information to determine component described at least one.
First, described fisrt feature information processing submodule to the corresponding relation of the factor of influence of the sensitivity of speed, determines the factor of influence f of the deflection of tracing point described in n-th to the sensitivity of speed based on the scope of deflection preset and deflection vn).Wherein, the scope of the deflection preset sees the following form:
Such as, the deflection that described fisrt feature information processing submodule obtains tracing point described in n-th is 180 °, then by the angular range of the upper table of contrast, determine the factor of influence f of the deflection of tracing point described in n-th to the sensitivity of speed vn) be 0.9.
Then, described fisrt feature information processing submodule utilizes formula (7) to determine the component of the person's handwriting size corresponding to speed of tracing point described in n-th wherein, k 1, k 2for being in harmonious proportion parameter, can adjusting according to the writing style of user and preference, may also be fixed constant, preferably, k 1span at 0.1 ~ 0.5, k 2span at 0.3 ~ 1.5, f vn) be the deflection of tracing point described in n-th to the factor of influence of the sensitivity of speed, v nfor described fisrt feature information processing submodule obtain n-th described in the speed of tracing point.
In addition, described fisrt feature information processing submodule utilizes formula (8) to determine the component of the person's handwriting size corresponding to acceleration of tracing point described in n-th wherein, k 3for being in harmonious proportion the factor, preferably, k 3span at 0.2 ~ 2, a nfor described fisrt feature information processing submodule obtain n-th described in the acceleration of tracing point.
Further, described fisrt feature information processing submodule utilizes formula (9) to determine the component of the person's handwriting size corresponding to acceleration of tracing point described in n-th wherein, k 4for parameter, k 4preferred span 1 ~ 10, for described fisrt feature information processing submodule obtain n-th described in the deflection angle of tracing point.
Then, each described component merges by described fisrt feature information processing submodule, to obtain the described person's handwriting size described in n-th corresponding to tracing point.
In the present embodiment, described fisrt feature information processing submodule is used for determining that each component of person's handwriting size is weighted and gets by above-mentioned changed and or get and the computing such as weighting, to obtain the person's handwriting size corresponding to described tracing point.
Such as, the described fisrt feature information processing submodule person's handwriting size R that utilizes formula (10) to determine corresponding to described tracing point n; Wherein, k 6for weights.
It should be noted that, it should be appreciated by those skilled in the art that when the determined component of described fisrt feature information processing submodule only has one, then also can determine the person's handwriting size R corresponding to described tracing point according to described formula (10) n.
Preferably, described fisrt feature information processing submodule is also optimized process for the person's handwriting size that amplitude of variation is excessive, so that the person's handwriting of handwriting input is round and smooth.
Particularly, described fisrt feature information processing submodule is also for obtaining the variable quantity of the person's handwriting size of a described tracing point in the person's handwriting size of tracing point described in n-th and preset time period, and described variable quantity and the variable quantity preset are compared, if be greater than default variable quantity, then determine that the person's handwriting of tracing point described in n-th is of a size of the person's handwriting size sum of default variable quantity and a described tracing point, if otherwise be less than default variable quantity, then the person's handwriting size of tracing point described in acquired n-th is defined as the person's handwriting size of tracing point described in n-th, wherein, 1≤a≤n, a is integer.Wherein, the variation delta w preset maxcan be default fixed value, preferably, described default variation delta w maxdetermined by formula (11); Wherein, k 5be inhibiting factor parameter, λ is input equipment picture element density Adaptation factor, tn and tn-1 is respectively the time of the n-th tracing point and (n-1) individual tracing point.Preferably, k 5span is 0.1 ~ 1.0.
In the present embodiment, the person's handwriting size that described fisrt feature information processing submodule utilizes above-mentioned formula (10) to obtain described in n-th corresponding to tracing point, then, the amplitude of variation Δ w of the person's handwriting size utilizing formula (12) to determine tracing point described in n-th and the person's handwriting size of a tracing point before this; Wherein, R nbe the person's handwriting size of the n-th tracing point, R n-1it is the person's handwriting size of (n-1) individual tracing point.If the person's handwriting of tracing point is of a size of R described in n-th n, then Δ w is used for the variable quantity of person's handwriting size of tracing point described in expression n-th, and then, described fisrt feature information processing submodule is by comparing, if determine, amplitude of variation Δ w is greater than default variation delta w max, then determine that described in n-th, the person's handwriting of tracing point is of a size of (R n-1+ Δ w), on the contrary if determine, amplitude of variation Δ w is not more than default variation delta w max, then determine that described in n-th, the person's handwriting of tracing point is of a size of R n.
Described first landscaping treatment submodule is used for the person's handwriting size that tracing point described in each obtains by described fisrt feature information processing submodule being carried out landscaping treatment, the image be formed by connecting with the handwriting obtained corresponding to each described tracing point.
Particularly, each point in each described tracing point on every bar track and neighbouring described person's handwriting range of size thereof is shown as the handwriting corresponding to each described tracing point by described first landscaping treatment submodule.
Such as, described in n-th, the person's handwriting of tracing point is of a size of: person's handwriting width is 15 pixels, then described first landscaping treatment submodule is centered by tracing point described in n-th, and width is shown as the handwriting described in n-th corresponding to tracing point for the pixel within the scope of 15 pixels.
Then, the handwriting corresponding to each tracing point on described track couples together by described first landscaping treatment submodule, must the image that is formed by connecting of the handwriting corresponding to each described tracing point.
Particularly, described first landscaping treatment submodule is used for the mean value based on the person's handwriting size of adjacent described tracing point, utilizes interpolation algorithm to fill, the described mean value of pressing between adjacent described tracing point to obtain continuous print handwriting.Wherein, described interpolation algorithm includes but not limited to: DDA interpolation algorithm (Numerical Differential Interpolation algorithm).
Such as, adjacent tracing point p nand p n-1person's handwriting width be 13 and 15 pixels respectively, then the person's handwriting width of these two tracing points is averaged by described first landscaping treatment submodule, obtains 14 pixels, and utilizes DDA interpolation algorithm by tracing point p nand p n-1between the person's handwriting width pressing 14 pixels fill, obtain continuous print handwriting thus.
More preferably, described handwriting is carried out landscaping treatment by the person's handwriting pattern chosen in advance by described first landscaping treatment submodule.Wherein, described brush pattern includes but not limited to: common brush, three-dimensional brush, scarce writing brush brush, fluorescence brush, thin brush, shade brush.
Such as, the brush pattern chosen in advance is three-dimensional brush, then described first landscaping treatment submodule plays up one deck shade along the handwriting corresponding to described tracing point at bottom, more described handwriting is offset a segment distance toward upper left, draws prospect person's handwriting on upper strata.
More preferably, the relation that described first landscaping treatment submodule is inversely proportional to based on the speed of person's handwriting concentration and described tracing point, carries out landscaping treatment by tracing point described in n-th by described person's handwriting size and described person's handwriting concentration.
Such as, described first landscaping treatment submodule utilizes formula (13) to determine the person's handwriting concentration of tracing point described in n-th, and is presented at screen on by described tracing point by described person's handwriting size and described person's handwriting concentration by the brush pattern chosen in advance; Wherein, c is for being in harmonious proportion parameter, v nfor the speed of tracing point described in n-th, f nfor the person's handwriting concentration of tracing point described in n-th.
As a kind of preferred version, described person's handwriting processing module also comprises smoothing processing submodule (not giving diagram).
Described smoothing processing submodule is used for the smoothing process of each described tracing point provided by Zoom module, to obtain coordinate and the time of the tracing point after smoothing processing, and each tracing point after smoothing processing is supplied to described feature information extraction submodule, so that the characteristic information of each tracing point after described feature information extraction submodule extraction smoothing processing.Wherein, the mode of the smoothing process of each described tracing point after convergent-divergent is included but not limited to: utilize the smoothing process of the mode of Bezier matching.
Such as, described smoothing processing submodule extracts three tracing points: the n-th tracing point P 0, first tracing point P before this 1, and second tracing point P before this 2.Using the reference mark of these three tracing points as second order Bezier, and Bezier interpolation fitting is carried out, to obtain the set of the coordinate of the tracing point after smoothing processing to the track that these three tracing points are formed.Equation is as follows: P (t)=(1-t) 2p 0+ 2t (1-t) P 1+ t 2p 2;
Wherein, t represents the tracing point after matching, P(t) represent the set of the coordinate of the tracing point after matching.
Then, the time of each tracing point after convergent-divergent, according to the tracing point after convergent-divergent and the proportionate relationship quantitatively of the tracing point after smoothing processing, divides equally by described smoothing processing submodule, to obtain the time of each tracing point in the track after smoothing processing.
Then, each tracing point after smoothing processing is transported to described fisrt feature information processing submodule by described smoothing processing submodule, successively each tracing point after smoothing processing is carried out to the process of characteristic information for described fisrt feature information processing submodule; By the first landscaping treatment submodule, each tracing point after smoothing processing is carried out landscaping treatment, to obtain the image that all handwritings are formed according to person's handwriting size corresponding separately again.
Embodiment five
With embodiment five unlike, described person's handwriting processing module comprises velograph operator module, second feature information processing submodule, the second landscaping treatment submodule.As shown in Figure 6.
Described velograph operator module is used for according to time sequencing, from the described tracing point of second after convergent-divergent, utilize coordinate and the time of tracing point described in n-th and a described tracing point before this, calculate the speed of tracing point described in n-th, wherein, n be greater than 1 integer.
Particularly, when described velograph operator module catches first described tracing point, only record coordinate and the time of described tracing point, from catching second described tracing point, calculate the speed of all tracing points of catching in real time.
Wherein, the mode of catching the speed of tracing point described in n-th is the coordinate utilizing the n-th tracing point and a tracing point before this, calculates the displacement between these two tracing points; Again according to the ratio of the difference of the time of described displacement and these two tracing points, obtain the speed of tracing point described in n-th.
Such as, the described tracing point P after described velograph operator module determination convergent-divergent 1coordinate (x 1, y 1) and time t 1, and tracing point P 2coordinate (x 2, y 2) and time t 2; Wherein t1<t2; Then, the tracing point P that formula (14) obtains is utilized 1and P 2between average velocity v, and using described average velocity v as tracing point P 2speed.
Described second feature information processing submodule be used for based on preset tracing point speed respectively with the size of handwriting and the corresponding relation of transparency, determine size and the transparency of the handwriting described in n-th corresponding to tracing point.Wherein, described size can be the width of handwriting.
Particularly, the speed of tracing point preset and the corresponding relation of the corresponding relation of the size of handwriting and the transparency of speed and handwriting carry out calculating according to the experience of the writing style of people, such as, according to the statistics to people's writing style, writing speed is faster, and handwriting is thinner; Writing speed is faster, and handwriting is more transparent.Therefore, described speed can be proportional corresponding relation with the size of handwriting and the corresponding relation of transparency respectively.
Preferably, described second feature information processing submodule, based on the linear relationship of size of the speed preset and handwriting, determines the size of the handwriting described in n-th corresponding to tracing point.
Such as, described second feature information processing submodule utilizes formula (15) to determine the size of the caught handwriting corresponding to the n-th tracing point; Wherein, W represents the size of the handwriting corresponding to the n-th tracing point; V represents the hand-written speed of tracing point described in n-th, parameter W max, W minrepresent maximal value and the minimum value of the size of handwriting respectively, v max, v minrepresent maximal value and the minimum value of the speed of described tracing point respectively; W max, W min, v max, v mindescribed change in size effect can be adjusted represent the intensity of variation of described size, its value is larger, then described change in size is more obvious.
Wherein, W max, W min, v max, v mincan be default fixed value, also can be preset by user.
Described second feature information processing submodule, based on the linear relationship of transparency of the speed preset and handwriting, determines the transparency of the handwriting described in n-th corresponding to tracing point.
Such as, described second feature information processing submodule utilizes formula (16) to determine the size of the caught handwriting corresponding to the n-th tracing point; Wherein, A represents the transparency of the handwriting corresponding to the n-th tracing point; V represents the hand-written speed of tracing point described in n-th, parameter A max, A minrepresent maximal value and the minimum value of the transparency of handwriting respectively, v max, v minrepresent maximal value and the minimum value of the speed of described tracing point respectively; A max, A min, v max, v mindescribed transparency change effect can be adjusted represent the intensity of variation of described transparency, its value is larger, then described transparency change is more obvious.
Wherein, A max, A min, v max, v mincan be default fixed value, also can be preset by user.
It should be noted that, first described tracing point of catching according to formula (15), (16) due to speed be 0, then the size of the handwriting corresponding to it and transparency can be maximal value.Preferably, size and the transparency of the handwriting corresponding to first described tracing point of catching are preset value.Such as, described second feature information processing submodule presets the transparency that the size of the handwriting corresponding to first described tracing point of catching and transparency are respectively 1 pixel and 50%.
Described second landscaping treatment submodule is for utilizing default trajectory segment rule, each section of track formed by each described tracing point carries out landscaping treatment, to obtain the image that all described handwritings are formed according to the corresponding separately size of described tracing point and transparency.
Particularly, according to time sequencing, the track that described tracing point forms according to the trajectory segment rule preset by described second landscaping treatment submodule carries out segmentation, and carry out image procossing, to obtain the handwriting corresponding to this section of track according to the corresponding separately size of described tracing point and transparency; The rest may be inferred, and the track that each described tracing point is formed is carried out landscaping treatment by described second landscaping treatment submodule piecewise, and to obtain continuous print handwriting, all handwritings just form an image.
Preferably, described second landscaping treatment submodule also comprises: the first process submodule, the second process submodule, the 3rd process submodule, the 4th process submodule (not giving diagram).
The sub-trajectory that each described tracing point in each section of track is formed, for utilizing default chopping rule, is carried out interpolation processing, to obtain the sub-trajectory be made up of interpolation point and described tracing point by described first process submodule.Wherein, the mode of interpolation processing includes but not limited to: utilize DDA interpolation algorithm to carry out interpolation processing.Preferably, the mode of interpolation processing carries out interpolation processing for utilizing Bezier algorithm.
Particularly, described first process submodule utilizes formula (17), and described sub-trajectory is carried out interpolation processing; Wherein, B nt () represents the set of the coordinate of interpolation point; P 2n-2, P 2n-1, P 2n, P 2n+1be the coordinate of the described tracing point after convergent-divergent; N be greater than 1 integer; T is stepping number of times, MidPoint(P 2n-2, P 2n-1) represent described tracing point P 2n-2, P 2n-1the coordinate of mid point, be also the starting point of the sub-trajectory after interpolation processing; MidPoint(P 2n, P 2n+1) represent described tracing point P 2n, P 2n+1the coordinate of mid point, the terminal of the sub-trajectory namely after interpolation processing.
Preferably, described first process submodule also utilizes formula (18) to carry out interpolation processing to sub-trajectory described in first paragraph; Wherein, B 1the set of the interpolation point in sub-trajectory described in (t) expression first paragraph and the coordinate of tracing point; P 1, P 2, P 3, P 4be the coordinate of caught described tracing point; T is stepping number of times; MidPoint(P 3, P 4) represent described tracing point P 3, P 4the coordinate of mid point.
Described second process submodule determines size and the transparency of the handwriting corresponding to each described interpolation point for the size corresponding to each described tracing point on the described sub-trajectory after interpolation processing and transparency.
Particularly, described second process submodule is according to the quantity of the interpolation point inserted between adjacent track point, the size of the handwriting corresponding to adjacent tracing point and transparency are divided equally, to obtain size and the transparency of the handwriting corresponding to each interpolation point.
Such as, described second submodule is processed according to formula (17) by tracing point P 3, P 4, P 5and P 6the sub-trajectory formed carries out interpolation processing, to obtain interpolation point set B 2(t), it comprises { P 3', P 4, P 41', P 42', P 43', P 5, P 51', P 52', P 53', P 6, P 6' individual interpolation point and tracing point, wherein, interpolation point P 3' be the coordinate of the starting point of sub-trajectory after interpolation processing, it is positioned at tracing point P 3, P 4mid point, { P 41', P 42', P 43' interpolation point is tracing point P 4, P 5between the coordinate of interpolation point, { P 51', P 52', P 53' interpolation point is tracing point P 5, P 6between the coordinate of interpolation point, P 6' be the coordinate of the terminal of sub-trajectory after interpolation processing, it is positioned at tracing point P 5, P 6mid point; Then described second process submodule is according to tracing point P 3, P 4the mean value of the size of handwriting corresponding separately determines starting point P 3' corresponding to the size of handwriting, according to tracing point P 3, P 4the mean value of the transparency of handwriting corresponding separately determines starting point P 3' corresponding to the transparency of handwriting; Similar, described terminal P 6' corresponding to the size of handwriting and transparency by tracing point P 5and P 6the size of handwriting corresponding separately and the mean value of transparency are determined; Interpolation point { P 41', P 42', P 43' size of separately corresponding handwriting and transparency be then by decile tracing point P 4, P 5size corresponding separately and transparency calculate and obtain; Interpolation point { P 51', P 52', P 53' size of separately corresponding handwriting and transparency be then by decile tracing point P 5, P 6size corresponding separately and transparency calculate and obtain.
Preferably, described second process submodule utilizes formula (19) to obtain the size of the handwriting corresponding to each interpolation point; Wherein, W (t) represents the set of the size of each interpolation point and the handwriting corresponding to tracing point in described sub-trajectory; BeginPt.Width represents the size of the handwriting corresponding to the starting point of described sub-trajectory; ControlPt1.Width, ControlPt2.Width represent the size of the handwriting that two described tracing points between described starting point and terminal are corresponding separately respectively; EndPt.Width represents the size of the handwriting corresponding to the terminal of described sub-trajectory.
Similar, described second process submodule utilizes formula (20) to obtain the transparency of the handwriting corresponding to each interpolation point; Wherein, A (t) represents the set of the transparency of interpolation point; BeginPt.Alpha represents the transparency of the starting point of the described sub-trajectory after interpolation processing; ControlPt1.Alpha, ControlPt2.Alpha represent the transparency of two described tracing points between described starting point and terminal; EndPt.Alpha represents the transparency of the terminal of the described sub-trajectory after interpolation processing.
Wherein, if the starting point of described track and terminal interpolation point, then described second process submodule is based on the position between described starting point and terminal separately adjacent tracing point after scaling, determines the transparency of the handwriting corresponding to described starting point and terminal are separately.
Described 3rd process submodule for utilize described interpolation point and tracing point separately corresponding to the size of handwriting and transparency, track landscaping treatment after interpolation processing is become size and transparency continually varying handwriting, all described handwriting tracks form polar plot.
It should be noted that, described 3rd process submodule can convert each interpolation point in described sub-trajectory and tracing point to size and transparency continually varying handwriting successively according to the mode in described step S313.
Preferably, described tracing point and interpolation point, according to the template of the handwriting preset, are carried out the splicing of handwriting by described 3rd process submodule successively with corresponding size and transparency.Wherein, the template of handwriting includes but not limited to: the template of writing brush style, the template etc. of pen style.Wherein, the mode of described splicing includes but not limited to: the mode etc. of image rendering.
Such as, the template of the handwriting preset is the template of writing brush style, and the tracing point on the track after interpolation processing and interpolation point are followed successively by { P 3', P 4, P 41', P 42', P 43', P 5, P 51', P 52', P 53', P 6, P 6', wherein, P 4, P 5, P 6for tracing point, other points are interpolation point, then described 3rd process submodule is by the size of the handwriting corresponding to each point obtained in step S313 and transparency, the handwriting of the writing brush style that size and transparency are consistent is rendered successively, to obtain stroke weight and the level and smooth handwriting of the deep or light change of pen and ink near each point.
Described 4th process submodule is used for the annexation based on the sub-trajectory in each section of track, is coupled together by all handwritings after interpolation processing, to obtain the image that all described handwritings are formed.
Particularly, visible according to above-mentioned formula (17), the starting point of adjacent sub-trajectory and terminal are a point, so adjacent sub-trajectory can seamless link, therefore the handwriting corresponding to each sub-trajectory splices according to the sequencing of the sub-trajectory in each track by described 4th process submodule, can obtain the handwriting corresponding to described track, all described handwritings just form piece image.
As a kind of preferred version, described step S3 also comprises: described image is carried out convergent-divergent by the second scaling, and the described image after convergent-divergent is attached to the appointed area of editor's layer.Wherein, described second scaling can be relevant to described first scaling, also can have nothing to do with described first scaling, preferably, and described second scaling η 2with the first scaling η 1between meet formula η 2=k 7η 1; Wherein, k 7for constant.
Embodiment six
With embodiment four, five unlike, described electronic equipment also comprises: editor module (not giving diagram).
Described electronic equipment for obtaining user by the operation of described trace input device in described editor's layer, and travels through the nearest described image in the position that operates described in described editor's layer middle distance, so that after cursor is placed in described image.Wherein, user is comprised by the operation of described trace input device in editor's layer: update, choose operation etc.Such as, user is by editing certain position in layer described in double mouse click, the coordinate of this position is (x1, y1), then described editor module is attached to the start-stop coordinate of all images in described editor's layer based on the coordinate traversal of this position, and obtain the coordinate (x2 of image c3, y2) nearest and between the coordinate of described position, after then cursor is placed in described image c3 by described editor module, so that user inserts described image or deletes the operation being positioned at previous/rear image of described cursor.
In sum, method and electronic equipment handwriting being carried out to editing and processing of the present invention, described trace input device can be inputted user the handwriting tracks that layer is write and carry out convergent-divergent process, and described track is beautified into the handwriting with user writing style, thus, user can utilize the present invention to write the handwriting with personalized style in multiple occasions such as the signatures of microblogging, network log, electronic contract; Wherein, the coordinate of each tracing point is zoomed to the size of specifying in editor's layer, the shape of track can be kept undistorted; In addition, input in layer user, in real time caught tracing point is beautified into handwriting, user can be allowed to experience the effect of handwriting more intuitively; In addition, by by the seizure to the user operation in editor's layer, user can be helped to operate generating the image comprising word or symbol.So the present invention effectively overcomes various shortcoming of the prior art and tool high industrial utilization.
Above-described embodiment is illustrative principle of the present invention and effect thereof only, but not for limiting the present invention.Any person skilled in the art scholar all without prejudice under spirit of the present invention and category, can modify above-described embodiment or changes.Therefore, such as have in art usually know the knowledgeable do not depart from complete under disclosed spirit and technological thought all equivalence modify or change, must be contained by claim of the present invention.

Claims (24)

1. handwriting is carried out to a method for editing and processing, is applied to and has in the electronic equipment of trace input device, it is characterized in that, at least comprise:
Monitor described trace input device and input the process of carrying out track input in layer user, and catch coordinate and the time of the tracing point on inputted each track in real time;
First scaling of the coordinate being used for each tracing point of convergent-divergent is set according to the format information of the editor's layer shown by the configuration information of the screen of described electronic equipment and described screen, and the coordinate of each described tracing point is carried out convergent-divergent according to described first scaling, to obtain the coordinate of each tracing point after convergent-divergent;
Based on coordinate and the time of each tracing point after convergent-divergent, each track that each tracing point after convergent-divergent is formed is carried out landscaping treatment, to obtain corresponding handwriting, and the image that all described handwritings are formed is attached to the appointed area of described editor's layer;
Each track that each tracing point after convergent-divergent is formed is carried out landscaping treatment, comprises in the mode obtaining corresponding handwriting:
3-1) according to time sequencing, from second described tracing point, based on coordinate and the time of tracing point described in tracing point described in n-th and before this at least one, obtain the characteristic information of the person's handwriting size for characterizing tracing point described in n-th; And at least one component acquired characteristic information converted to for determining described person's handwriting size; And each described component is merged, to obtain the person's handwriting size described in n-th corresponding to tracing point; Wherein, n be greater than 1 integer;
3-2) tracing point described in each is carried out landscaping treatment by described person's handwriting size, the image be formed by connecting with the handwriting obtained corresponding to each described tracing point.
2. method of handwriting being carried out to editing and processing according to claim 1, it is characterized in that, catch in real time the tracing point on inputted each track coordinate and when the time, described method also comprises: when catching described tracing point, based on coordinate and the time of each described tracing point of having caught, in real time the track that caught each described tracing point is formed is beautified into handwriting, and be presented at described user and input in layer.
3. method of handwriting being carried out to editing and processing according to claim 1, it is characterized in that, the mode arranging the first scaling of inputted track according to the format information of the editor's layer shown by the configuration information of the display screen of described electronic equipment and described screen comprises: utilize formula 1 to determine described first scaling η 1;
&eta; 1 = &lambda; &times; s w l w Formula 1
Wherein, λ is the screen resolution of described electronic equipment; S wfor the screen width of described electronic equipment; l wfor the line width of described editor's layer.
4. method of handwriting being carried out to editing and processing according to claim 1, it is characterized in that, described characteristic information comprises: one or more in the deflection angle of the speed of described tracing point, the acceleration of described tracing point, the deflection of described tracing point, described tracing point.
5. method of handwriting being carried out to editing and processing according to claim 1, it is characterized in that, described step 3-1) also comprise: the variable quantity obtaining the person's handwriting size of a described tracing point in the person's handwriting size of tracing point described in n-th and preset time period, and described variable quantity and the variable quantity preset are compared, if be greater than default variable quantity, then determine that the person's handwriting of tracing point described in n-th is of a size of the person's handwriting size sum of default variable quantity and a described tracing point, if otherwise be less than default variable quantity, then the person's handwriting size of tracing point described in acquired n-th is defined as the person's handwriting size of tracing point described in n-th, wherein, 1≤a≤n, a is integer.
6. method of handwriting being carried out to editing and processing according to claim 1, it is characterized in that, described step 3-2) in the mode that tracing point described in each carries out landscaping treatment by described person's handwriting size is comprised: based on the mean value of adjacent described tracing point person's handwriting size separately, interpolation algorithm is utilized to fill, the described mean value of pressing between adjacent described tracing point to obtain continuous print handwriting.
7. method of handwriting being carried out to editing and processing according to claim 1, it is characterized in that, at the described step 3-1 of execution) before, also comprise: by the smoothing process of each described tracing point, with the step of the coordinate and time that obtain the tracing point after smoothing processing.
8. method of handwriting being carried out to editing and processing according to claim 1, is characterized in that, each track that each tracing point after convergent-divergent is formed is carried out landscaping treatment, also comprises in the mode obtaining corresponding handwriting:
3-a) according to time sequencing, from second described tracing point, utilize coordinate and the time of tracing point described in n-th and a described tracing point before this, calculate the speed of tracing point described in n-th, wherein, n be greater than 1 integer;
3-b) based on preset tracing point speed respectively with the size of handwriting and the corresponding relation of transparency, determine size and the transparency of the handwriting described in n-th corresponding to tracing point;
3-c) utilize preset trajectory segment rule, each section of track that each described tracing point is formed according to described tracing point separately corresponding to size and transparency carry out landscaping treatment, to obtain the image that all described handwritings are formed.
9. method of handwriting being carried out to editing and processing according to claim 8, is characterized in that, described step 3-c) comprising:
Utilize the chopping rule preset, the sub-trajectory that each described tracing point in each section of track is formed is carried out interpolation processing, to obtain the sub-trajectory be made up of interpolation point and described tracing point;
The size of the handwriting corresponding to the described tracing point on the described sub-trajectory after interpolation processing and transparency determine size and the transparency of the handwriting that described interpolation point is corresponding separately;
The size of the handwriting utilizing described interpolation point and tracing point corresponding separately and transparency, become size and transparency continually varying handwriting by the sub-trajectory landscaping treatment after interpolation processing;
Based on the annexation of the sub-trajectory in each section of track, all handwritings after interpolation processing are coupled together, to obtain the image that all described handwritings are formed.
10. method of handwriting being carried out to editing and processing according to claim 1, is characterized in that, described method also comprises: described image is carried out convergent-divergent by the second scaling, and the described image after convergent-divergent is attached to the appointed area of described editor's layer.
11. methods of handwriting being carried out to editing and processing according to claim 10, is characterized in that, described second scaling η 2determined by formula 2;
η 2=k 7η 1formula 2; Wherein, k 7for constant; η 1it is the first scaling.
12. methods of handwriting being carried out to editing and processing according to claim 1, it is characterized in that, described method also comprises: obtain user by the operation of described trace input device in described editor's layer, and travel through the nearest described image in the position that operates described in described editor's layer middle distance, so that after cursor is placed in described image.
13. 1 kinds are carried out the device of editing and processing to handwriting, are applied to and have in the electronic equipment of trace input device, it is characterized in that, at least comprise:
Catching processing module, inputting the process of carrying out track input in layer user for monitoring described trace input device, and catch coordinate and the time of the tracing point on inputted each track in real time;
Zoom module, format information for the editor's layer shown by the configuration information of the screen according to described electronic equipment and described screen arranges the first scaling of the coordinate being used for each tracing point of convergent-divergent, and described coordinate of catching each described tracing point that processing module is caught is carried out convergent-divergent according to described first scaling, to obtain the coordinate of each tracing point after convergent-divergent;
Person's handwriting processing module, for based on the coordinate of each tracing point after convergent-divergent and time, each track that each tracing point after convergent-divergent is formed is carried out landscaping treatment, to obtain corresponding handwriting, and the image that all described handwritings are formed is attached to the appointed area of described editor's layer;
Described person's handwriting processing module at least comprises:
Fisrt feature information processing submodule, for according to time sequencing, from second described tracing point, based on coordinate and the time of tracing point described in tracing point described in n-th and before this at least one, obtain the characteristic information of the person's handwriting size for characterizing tracing point described in n-th; And at least one component acquired characteristic information converted to for determining described person's handwriting size; And each described component is merged, to obtain the described person's handwriting size described in n-th corresponding to tracing point; Wherein, n be greater than 1 integer;
First landscaping treatment submodule, carries out landscaping treatment for the person's handwriting size obtained by described fisrt feature information processing submodule by tracing point described in each, the image be formed by connecting with the handwriting obtained corresponding to each described tracing point.
14. devices handwriting being carried out to editing and processing according to claim 13, it is characterized in that, described processing module of catching also comprises: the first person's handwriting process submodule, for when catching described tracing point, based on coordinate and the time of each described tracing point of having caught, in real time the track that caught each described tracing point is formed is beautified into handwriting, and be presented at described user and input in layer.
15. devices handwriting being carried out to editing and processing according to claim 13, it is characterized in that, described Zoom module comprises: the first convergent-divergent submodule, for the first scaling η utilizing formula 1 to determine the coordinate of each tracing point of convergent-divergent 1;
&eta; 1 = &lambda; &times; s w l w Formula 1
Wherein, λ is the screen resolution of described electronic equipment; S wfor the screen width of described electronic equipment; l wfor the line width of described editor's layer.
16. devices handwriting being carried out to editing and processing according to claim 13, it is characterized in that, described characteristic information comprises: one or more in the deflection angle of the speed of described tracing point, the acceleration of described tracing point, the deflection of described tracing point, described tracing point.
17. devices handwriting being carried out to editing and processing according to claim 13, it is characterized in that, described fisrt feature information processing submodule is also for obtaining the variable quantity of the person's handwriting size of a described tracing point in the person's handwriting size of tracing point described in n-th and preset time period, and described variable quantity and the variable quantity preset are compared, if be greater than default variable quantity, then determine that the person's handwriting of tracing point described in n-th is of a size of the person's handwriting size sum of default variable quantity and a described tracing point, if otherwise be less than default variable quantity, then the person's handwriting size of tracing point described in acquired n-th is defined as the person's handwriting size of tracing point described in n-th, wherein, 1≤a≤n.
18. devices handwriting being carried out to editing and processing according to claim 13, it is characterized in that, described first landscaping treatment submodule is also for the mean value based on adjacent described tracing point person's handwriting size separately, interpolation algorithm is utilized to fill, the described mean value of pressing between adjacent described tracing point to obtain continuous print handwriting.
19. devices handwriting being carried out to editing and processing according to claim 13, is characterized in that, described person's handwriting processing module also comprises:
Smoothing processing submodule, for the smoothing process of each described tracing point that Zoom module is provided, to obtain coordinate and the time of the tracing point after smoothing processing, and each tracing point after smoothing processing is supplied to described fisrt feature information processing submodule, so that the characteristic information of each tracing point after described fisrt feature information processing submodule extraction smoothing processing.
20. devices handwriting being carried out to editing and processing according to claim 13, is characterized in that, described person's handwriting processing module also comprises:
Velograph operator module, for according to time sequencing, from second described tracing point, utilize coordinate and the time of tracing point described in n-th and a described tracing point before this, calculate the speed of tracing point described in n-th, wherein, n be greater than 1 integer;
Second feature information processing submodule, for based on preset tracing point speed respectively with the size of handwriting and the corresponding relation of transparency, determine size and the transparency of the handwriting described in n-th corresponding to tracing point;
Second landscaping treatment submodule, for utilizing default trajectory segment rule, each section of track formed by each described tracing point carries out landscaping treatment, to obtain the image that all described handwritings are formed according to the corresponding separately size of described tracing point and transparency.
21. devices handwriting being carried out to editing and processing according to claim 20, is characterized in that, described second landscaping treatment submodule comprises:
First process submodule, for utilizing default chopping rule, carries out interpolation processing by the sub-trajectory that each tracing point in each section of described track is formed, to obtain the sub-trajectory be made up of interpolation point and described tracing point;
Second process submodule, determines size and the transparency of the handwriting corresponding to described interpolation point separately for the size of the handwriting corresponding to the described tracing point on the described sub-trajectory after interpolation processing and transparency;
3rd process submodule, for utilize described interpolation point and tracing point separately corresponding to the size of handwriting and transparency, the sub-trajectory landscaping treatment after interpolation processing is become size and transparency continually varying handwriting;
All handwritings after interpolation processing for the annexation based on the sub-trajectory in each section of track, are coupled together, to obtain the image that all described handwritings are formed by the 4th process submodule.
22. devices handwriting being carried out to editing and processing according to claim 13, it is characterized in that, described person's handwriting processing module also comprises: the second convergent-divergent submodule, for described image is carried out convergent-divergent by the second scaling, and the described image after convergent-divergent is attached to the appointed area of editor's layer.
23. devices handwriting being carried out to editing and processing according to claim 22, is characterized in that, described second scaling is determined by formula 2;
η 2=k 7η 1formula 2; Wherein, k 7for constant; η 1it is the first scaling.
24. devices handwriting being carried out to editing and processing according to claim 13, it is characterized in that, described the device that handwriting carries out editing and processing also to be comprised: editor module, for obtaining user by the operation of described trace input device in editor's layer, and travel through the nearest described image in the position that operates described in described editor's layer middle distance, so that after cursor is placed in described image.
CN201210512978.7A 2012-12-04 2012-12-04 Method for editing handwritings and electronic equipment Active CN102937848B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210512978.7A CN102937848B (en) 2012-12-04 2012-12-04 Method for editing handwritings and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210512978.7A CN102937848B (en) 2012-12-04 2012-12-04 Method for editing handwritings and electronic equipment

Publications (2)

Publication Number Publication Date
CN102937848A CN102937848A (en) 2013-02-20
CN102937848B true CN102937848B (en) 2015-07-22

Family

ID=47696748

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210512978.7A Active CN102937848B (en) 2012-12-04 2012-12-04 Method for editing handwritings and electronic equipment

Country Status (1)

Country Link
CN (1) CN102937848B (en)

Families Citing this family (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063162B (en) * 2013-03-20 2018-04-27 腾讯科技(深圳)有限公司 The method and device of entering handwritten information
CN103500037A (en) * 2013-09-11 2014-01-08 天脉聚源(北京)传媒科技有限公司 Track smoothing method and device
CN103744603B (en) * 2013-12-23 2017-01-11 上海鼎为通讯电子有限公司 Hand inputting method and electronic device
US9508166B2 (en) * 2014-09-15 2016-11-29 Microsoft Technology Licensing, Llc Smoothing and GPU-enabled rendering of digital ink
CN106155540B (en) * 2015-04-03 2019-10-15 北大方正集团有限公司 Electronic brush pen pen shape treating method and apparatus
CN106155607A (en) * 2015-04-08 2016-11-23 北京壹人壹本信息科技有限公司 A kind of former person's handwriting multi-screen adaptation method, system and equipment
CN106155608A (en) * 2015-04-08 2016-11-23 北京壹人壹本信息科技有限公司 A kind of former person's handwriting storage and display packing, system and equipment
CN106373171B (en) * 2015-07-22 2021-03-09 鸿合科技股份有限公司 Drawing prediction compensation method and system
CN106468963B (en) * 2015-08-21 2019-08-13 神讯电脑(昆山)有限公司 Touch device and touch-control control method
CN106990900A (en) * 2016-01-21 2017-07-28 阿里巴巴集团控股有限公司 One kind writing implementation method and device
CN107422974B (en) * 2017-07-21 2020-01-07 广州视源电子科技股份有限公司 Handwriting writing display method and system based on dual systems, storage medium and equipment
CN107728916B (en) * 2017-09-20 2020-07-28 科大讯飞股份有限公司 Display method and device of space handwriting track
CN107943365B (en) * 2017-11-28 2021-05-04 广州视睿电子科技有限公司 Line handwriting presenting method and device, electronic equipment and storage medium
CN108765527B (en) * 2018-06-06 2022-03-29 北京知道创宇信息技术股份有限公司 Animation display method, animation display device, electronic equipment and storage medium
CN111158505A (en) * 2018-11-08 2020-05-15 鸿合科技股份有限公司 Thick-thin handwriting writing method and device and electronic equipment
CN109857322B (en) * 2019-01-24 2021-12-31 广东第二师范学院 Android-based painting brush width control method and device
CN110007787A (en) * 2019-03-21 2019-07-12 深圳点猫科技有限公司 A kind of interpolation method under the network coordinate system based on artificial intelligence, storage medium and system
CN113383302A (en) * 2019-04-16 2021-09-10 深圳市柔宇科技股份有限公司 Method for locally selecting track and track combination, electronic equipment and storage medium
CN110045882B (en) * 2019-06-03 2022-10-11 深圳市康冠商用科技有限公司 Infrared touch data processing method and system and related components
CN113590000B (en) * 2020-04-30 2023-01-17 京东方科技集团股份有限公司 Handwriting processing method, handwriting processing device and storage medium
CN112102434A (en) * 2020-09-22 2020-12-18 深圳市皓丽智能科技有限公司 Handwriting drawing method, device and equipment
CN112532887B (en) * 2020-12-18 2022-08-05 惠州Tcl移动通信有限公司 Shooting method, device, terminal and storage medium
CN112990134B (en) * 2021-04-29 2021-08-20 北京世纪好未来教育科技有限公司 Image simulation method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1538722A (en) * 2003-04-18 2004-10-20 Method of realizing handwriting information exchange for cmmunication terminal
CN102135836A (en) * 2011-03-28 2011-07-27 安徽科大讯飞信息科技股份有限公司 Superposition hand input method and system
CN102141892A (en) * 2011-03-28 2011-08-03 安徽科大讯飞信息科技股份有限公司 Display method and system for overlaying handwritten input
CN102158825A (en) * 2011-04-28 2011-08-17 华南理工大学 Handwritten multimedia message realization method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1538722A (en) * 2003-04-18 2004-10-20 Method of realizing handwriting information exchange for cmmunication terminal
CN102135836A (en) * 2011-03-28 2011-07-27 安徽科大讯飞信息科技股份有限公司 Superposition hand input method and system
CN102141892A (en) * 2011-03-28 2011-08-03 安徽科大讯飞信息科技股份有限公司 Display method and system for overlaying handwritten input
CN102158825A (en) * 2011-04-28 2011-08-17 华南理工大学 Handwritten multimedia message realization method

Also Published As

Publication number Publication date
CN102937848A (en) 2013-02-20

Similar Documents

Publication Publication Date Title
CN102937848B (en) Method for editing handwritings and electronic equipment
CN102937850B (en) Method for beautifying handwriting in real time and electronic equipment
CN102937849B (en) The beautification method of real-time handwriting and electronic equipment
CN106407891B (en) Target matching method and device based on convolutional neural networks
Bonnici et al. Sketch-based interaction and modeling: where do we stand?
CN105718878A (en) Egocentric vision in-the-air hand-writing and in-the-air interaction method based on cascade convolution nerve network
Fu et al. Animated construction of line drawings
CN107369166A (en) A kind of method for tracking target and system based on multiresolution neutral net
CN104751153B (en) A kind of method and device of identification scene word
CN106155540B (en) Electronic brush pen pen shape treating method and apparatus
CN103390088A (en) Full-automatic three-dimensional conversion method aiming at grating architectural plan
Cantrell et al. Modeling the environment: techniques and tools for the 3D illustration of dynamic landscapes
Wang et al. Multi-column point-CNN for sketch segmentation
CN102831427A (en) Texture feature extraction method fused with visual significance and gray level co-occurrence matrix (GLCM)
CN104391651B (en) Calligraphy person&#39;s handwriting rendering method based on optical principle
CN104821005A (en) Method of writing process dynamic reproduction of Chinese character calligraphy works, capable of simulating gesture style
CN105093289A (en) Seismic horizon identification method based on image processing
Tang et al. Animated construction of Chinese brush paintings
CN105354812A (en) Method for identifying profile interaction based on multi-Kinect collaboration depth threshold segmentation algorithm
CN113590000A (en) Handwriting processing method, handwriting processing device and storage medium
Yang et al. The pattern is in the details: An evaluation of interaction techniques for locating, searching, and contextualizing details in multivariate matrix visualizations
CN108628455B (en) Virtual sand painting drawing method based on touch screen gesture recognition
CN107608510A (en) Method for building up, device and the electronic equipment in gesture model storehouse
CN103838429A (en) Method and system for conducting drawing on touch screen to achieve writing brush effect
CN106373126A (en) Image significance detection method based on fusion type geodesic curve and boundary comparison

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 200433, Shanghai, Yangpu District Fudan hi tech Park Road, No. 335, building 11011A room

Patentee after: Shanghai hehe Information Technology Co., Ltd

Address before: 200433, Shanghai, Yangpu District Fudan hi tech Park Road, No. 335, building 11011A room

Patentee before: INTSIG INFORMATION Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: Room 1105-1123, No. 1256, 1258, Wanrong Road, Jing'an District, Shanghai, 200436

Patentee after: Shanghai hehe Information Technology Co., Ltd

Address before: 200433, Shanghai, Yangpu District Fudan hi tech Park Road, No. 335, building 11011A room

Patentee before: Shanghai hehe Information Technology Co., Ltd