Summary of the invention
Technical matters to be solved by this invention is to provide a kind of character stroke gradual change blanking method and device, the content of the ways of writing input that superposes in same position or certain area clearly can be represented to user.
In order to address the above problem, the invention discloses a kind of character stroke gradual change blanking method, comprising: gather user's stroke input person's handwriting, and each stroke is recorded as to a two-dimensional coordinate array separately; Deposit respectively the new stroke of input at every turn in a buffer area; Every input is new stroke once, all can carry out gradual change elimination of hidden to the historical stroke in each buffer area; New entering stroke in writing real-time display buffer district, district and the historical stroke after gradual change elimination of hidden.
Further, the quantity of buffer area is consistent with the grade quantity of stroke gradual change blanking.
Further, if entering stroke number is less than buffer area quantity n, historical stroke is processed successively according to gradual change blanking grade, until inputted, starts to identify input character.
Further, if entering stroke number is greater than buffer area quantity n, when input is n+1 time, the first stroke can gradual change blanking to disappearing, n+1 stroke deposits in the buffer area that the first stroke stores again; The stroke of new input, can deposit in buffer area successively, until inputted, starts to identify input character.
Further, described gradual change blanking refers to stroke gradual change to consistent with background colour to disappearing.
Further, the number of degrees magnitude relation of the quantity of buffer area and stroke gradual change blanking can arrange.
Further, describedly historical stroke in each buffer area carried out to gradual change elimination of hidden comprise: according in each buffer area separately the generation time sequencing of stroke described historical stroke is carried out to gradual change blanking at the uniform velocity; The speed of stroke gradual change blanking is along with user's input speed changes; In gradual change concealment process, stroke color gradually becomes its contrast colors; The stroke color of gradual change blanking constantly thin out, stroke width constantly attenuates until disappear.
The invention also discloses another kind of character stroke gradual change blanking method, comprising: gather user's stroke input person's handwriting, and each stroke is recorded as to a two-dimensional coordinate array separately; Deposit respectively the new stroke of input at every turn in a buffer area; In Preset Time, without new character stroke input, according to the time order and function of the historical stroke of input, successively historical stroke is carried out to gradual change elimination of hidden; New entering stroke in writing real-time display buffer district, district and the historical stroke after gradual change elimination of hidden.
The invention also discloses a kind of character stroke gradual change blanker, comprising: logging modle, for gathering user's stroke input person's handwriting, and is recorded as a two-dimensional coordinate array separately by each stroke; Memory module, for depositing respectively the new stroke of input at every turn in a buffer area; Processing module, for input once new stroke at every turn, carries out gradual change elimination of hidden to the historical stroke in each buffer area; Display module, for writing the new entering stroke in real-time display buffer district, district and the historical stroke after gradual change elimination of hidden.
The invention also discloses another kind of character stroke gradual change blanker, comprising: the second logging modle, for gathering user's stroke input person's handwriting, and is recorded as a two-dimensional coordinate array separately by each stroke; The second memory module, for depositing respectively the new stroke of input at every turn in a buffer area; The second processing module, for inputting without new character stroke in Preset Time, carries out gradual change elimination of hidden to historical stroke successively according to the time order and function of the historical stroke of input; The second display module, for writing the new entering stroke in real-time display buffer district, district and the historical stroke after gradual change elimination of hidden.
Compared with prior art, the present invention has the following advantages:
The present invention can be effectively for reduplicated word handwriting input in same position or certain area provides character stroke gradual change elimination of hidden, user is in input process, input along with a plurality of characters, stroke in character can carry out gradual change elimination of hidden successively before, make user can be clear that the character of current input, to can once input more character, improve the input efficiency of handwriting recognition technology comprehensively.By technical scheme of the present invention, user can fold and write a plurality of characters of input continuously, fast in same position or certain area, and can be clear that current write character, there will not be stroke to mix phenomenon.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following instance is used for illustrating the present invention, but is not used for limiting the scope of the invention.
Core concept of the present invention is: according to default grade quantity, the historical stroke in each buffer area is carried out to gradual change elimination of hidden, can realize new entering stroke in writing real-time display buffer district, district and the historical stroke after gradual change elimination of hidden.
Embodiment 1, with reference to figure 1, shows a kind of character stroke gradual change blanking method, specifically can comprise:
Step 101, gathers user's stroke input person's handwriting, and each stroke is recorded as to a two-dimensional coordinate array separately;
Step 102, deposits respectively the new stroke of input at every turn in a buffer area;
Step 103, every input is new stroke once, all can carry out gradual change elimination of hidden to the historical stroke in each buffer area;
Step 104, the new entering stroke in writing real-time display buffer district, district and the historical stroke after gradual change elimination of hidden.
In the specific implementation, can the quantity of buffer area and the grade quantity of stroke gradual change blanking be set to consistent, like this when application, after historical stroke is through the gradual change with predetermined level quantity equal times with regard to blanking.Here said gradual change can refer to the color of stroke is shoaled gradually, and more and more close to background colour, when consistent with background colour, stroke is with regard to blanking.In actual applications, entering stroke number can be set and be less than buffer area quantity n, historical stroke is processed successively according to gradual change blanking grade, until inputted, starts to identify input character.Entering stroke number also can be set and be greater than buffer area quantity n, when input is n+1 time, the first stroke can gradual change blanking to disappearing, n+1 stroke deposits in the buffer area that the first stroke stores again; The stroke of new input, can deposit in buffer area successively, until inputted, starts to identify input character.In step 103, by historical stroke gradual change can refer to according in each buffer area separately the generation time sequencing of stroke described historical stroke is carried out to gradual change blanking at the uniform velocity.User's entering stroke direction is input from left to right or input from right to left or input or from bottom to up input from top to bottom.
In the embodiment of the present invention 2, provided in the situation that the quantity of buffer area is consistent with the grade quantity of stroke gradual change blanking, it is n that buffer area quantity can be set, gradual change blanking grade is m, is being originally m=n in example.Process flow diagram during concrete enforcement is referring to Fig. 2,
User inputs the first stroke, and stroke deposits buffer area 1 in the mode of two-dimensional coordinate array;
User inputs second, and stroke deposits buffer area 2 in the mode of two-dimensional coordinate array, and the stroke of buffer area 1 carries out gradual change elimination of hidden m level (1 grade) simultaneously;
User inputs the 3rd, and stroke deposits buffer area 3 in the mode of two-dimensional coordinate array, and the stroke of buffer area 2 carries out gradual change elimination of hidden m level (1 grade) simultaneously, and the stroke of buffer area 1 carries out gradual change elimination of hidden m level (2 grades) again;
User can continue to input new stroke, and stroke number x is less than buffer area quantity n, and historical stroke is processed successively according to gradual change blanking grade, until inputted, starts identification;
If stroke number x is greater than buffer area quantity n, when inputting n+1, the first stroke can gradual change blanking to the , n+1 Pen Association that disappears deposit in buffer area 1 again; The stroke of new input, can deposit in buffer area successively, until inputted, starts identification.Adopt the method for the present embodiment, user can fold and write a plurality of characters of input continuously, fast in same position or certain area, and can be clear that institute's written character, there will not be stroke to mix and superposition phenomenon.
Below in conjunction with 3 pairs of technical scheme further instructions of the present invention of concrete example, so that more clear and get information about technical scheme of the present invention.The input character " central authorities " of take is example, sketch the idiographic flow (referring to Fig. 3) of folded write characters stroke gradual change blanking, input " central authorities " two words in the present embodiment, total stroke is 9, suppose buffer area number n > 9, blanking grade m=buffer area number n, in input process, stroke gradual change blanking there will not be extinction tests.Idiographic flow can comprise:
User inputs the first stroke " Shu ", and stroke deposits buffer area 1 in the mode of two-dimensional coordinate array;
User inputs the 2nd " Ya ", and stroke deposits buffer area 2 in the mode of two-dimensional coordinate array, and the stroke " Shu " of buffer area 1 carries out gradual change elimination of hidden m level (1 grade) simultaneously;
User inputs the 3rd " one ", stroke deposits buffer area 3 in the mode of two-dimensional coordinate array, the stroke “ Ya of while buffer area 2 " carry out gradual change elimination of hidden m level (1 grade), the stroke of buffer area 1 " Shu " carries out gradual change elimination of hidden m level (2 grades) again;
User inputs the 4th " Shu ", stroke deposits buffer area 4 in the mode of two-dimensional coordinate array, the stroke " one " of buffer area 3 carries out gradual change elimination of hidden m level (1 grade) simultaneously, the stroke “ Ya of buffer area 2 " again carry out gradual change elimination of hidden m level (2 grades), the stroke of buffer area 1 " Shu " also carries out gradual change elimination of hidden m level (3 grades) again;
Now complete " in " input of word, at same position, continue input " centre " word;
User inputs the 5th " Shu ", and stroke deposits buffer area 5 in the mode of two-dimensional coordinate array, and historical stroke before this continues to carry out elimination of hidden m level according to gradual change blanking grade;
User has continued input, until handwriting input completes, the historical stroke of having inputted during this period, constantly carries out elimination of hidden, " in " " centre " word of writing of word same position still can clear and legible (participation Fig. 4).
In embodiments of the invention 4, the input character " central authorities " of still take is example, input " central authorities " two words, total stroke is 9, supposes buffer area number n < 9, n=4, blanking grade m=buffer area number n, in input process, stroke gradual change blanking there will be extinction tests:
User inputs the first stroke " Shu ", and stroke deposits buffer area 1 in the mode of two-dimensional coordinate array;
User inputs the 2nd " Ya ", and stroke deposits buffer area 2 in the mode of two-dimensional coordinate array, and the stroke " Shu " of buffer area 1 carries out gradual change elimination of hidden m level (1 grade) simultaneously;
User inputs the 3rd " one ", stroke deposits buffer area 3 in the mode of two-dimensional coordinate array, the stroke “ Ya of while buffer area 2 " carry out gradual change elimination of hidden m level (1 grade), the stroke of buffer area 1 " Shu " carries out gradual change elimination of hidden m level (2 grades) again;
User inputs the 4th " Shu ", stroke deposits buffer area 4 in the mode of two-dimensional coordinate array, the stroke " one " of buffer area 3 carries out gradual change elimination of hidden m level (1 grade) simultaneously, the stroke “ Ya of buffer area 2 " again carry out gradual change elimination of hidden m level (2 grades), the stroke of buffer area 1 " Shu " also carries out gradual change elimination of hidden m level (3 grades) again;
Now complete " in " input of word, at same position, continue input " centre " word;
User inputs the 5th " Shu ", because buffer area number is set to 4, therefore, buffer area 1 will be cleared, the first stroke " Shu " just can disappear simultaneously, and the 5th " Shu " deposits buffer area 1 in again in the mode of two-dimensional coordinate array, and the stroke " Shu " of buffer area 4 carries out gradual change elimination of hidden m level (1 grade) simultaneously, the stroke of buffer area 3 " one " carries out gradual change elimination of hidden m level (2 grades), the stroke “ Ya of buffer area 2 " again carry out gradual change elimination of hidden m level (3 grades);
When user continues input residue stroke, buffer area 2,3,4 replacements of can being cleared successively, to deposit new stroke in, when " centre " word has been inputted, " in " thoroughly disappearance (referring to Fig. 5) of word.
The example of introducing by above-described embodiment 3 and embodiment 4, can see the change arranging along with buffer area quantity, user can fold continuously, fast and write a plurality of characters of input in same position or certain position, and can be clear that institute's written character, there will not be stroke to mix and superposition phenomenon.
In the embodiment of the present invention 5, provided the method for another kind of character stroke gradual change blanking, referring to Fig. 6, can comprise:
Step 501, gathers user's stroke input person's handwriting, and each stroke is recorded as to a two-dimensional coordinate array separately;
Step 502, deposits respectively the new stroke of input at every turn in a buffer area;
Step 503 without new character stroke input, is carried out gradual change elimination of hidden to historical stroke successively according to the time order and function of the historical stroke of input in Preset Time;
Step 504, the new entering stroke in writing real-time display buffer district, district and the historical stroke after gradual change elimination of hidden.
In handwriting recognition region, be expert at input in, can carry out the reduplicated word input of full line, the character of full line can carry out gradual change elimination of hidden successively according to the input sequence of character stroke, thereby makes can repeatedly go in the region of writing input, improves handwriting input efficiency.Be no matter from left to right, from right to left, from the handwriting input of carrying out under upper, from bottom to up, the present invention can realize the gradual change elimination of hidden to historical stroke, thus realize row identification foldedly write input.Character stroke gradual change grade is adjustable flexibly, can adapt to the speed of stroke gradual change blanking in different screen sized devices, thus make row identification folded to write input effect better.Referring to Fig. 7, the display effect after identification input area stack input " People's Republic of China (PRC) " character application row gradual change blanking method.
In the specific implementation, the processing procedure of gradual change blanking specifically can comprise: the speed of stroke gradual change blanking is along with user's input speed changes, and user's handwriting characters speed is fast, and historical stroke gradual change blanking must be just fast, otherwise, can be slow; Stroke is in gradual change concealment process, and person's handwriting color can become its contrast colors (stroke color is for example set for red, it is blue that historical stroke can gradually become) from color is set, and color constantly shoals, and the width of person's handwriting also can constantly attenuate, until disappear.Perfect by gradual change blanking effect, makes stroke gradual change hidden technology be more suitable for the hand-written and capable identification hand-writing technique of reduplicated word, allows user can complete more efficiently handwriting input.
The embodiment of the present invention 6 has provided a kind of character stroke gradual change blanker, can comprise (referring to Fig. 8):
Logging modle 601, for gathering user's stroke input person's handwriting, and is recorded as a two-dimensional coordinate array separately by each stroke;
Memory module 602, for depositing respectively the new stroke of input at every turn in a buffer area;
Processing module 603, carries out gradual change elimination of hidden for the historical stroke to each buffer area;
Display module 604, for writing the new entering stroke in real-time display buffer district, district and the historical stroke after gradual change elimination of hidden.
In actual applications, the character stroke gradual change blanker of embodiment 6 can also comprise as the case may be: module 605 is set, for the relation between the quantity of buffer area and the grade quantity of stroke gradual change blanking is set.
Another device embodiment 7 of the present invention has provided a kind of character stroke gradual change blanker, can comprise (referring to Fig. 9):
The second logging modle 701, for gathering user's stroke input person's handwriting, and is recorded as a two-dimensional coordinate array separately by each stroke;
The second memory module 702, for depositing respectively the new stroke of input at every turn in a buffer area;
The second processing module 703, for inputting without new character stroke in Preset Time, carries out gradual change elimination of hidden to historical stroke successively according to the time order and function of the historical stroke of input;
The second display module 704, for writing the new entering stroke in real-time display buffer district, district and the historical stroke after gradual change elimination of hidden.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, do not departing under the prerequisite of the technology of the present invention principle; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.