CN102902969B - The method of combination of handwriting input text importing and electronic installation - Google Patents

The method of combination of handwriting input text importing and electronic installation Download PDF

Info

Publication number
CN102902969B
CN102902969B CN201210302010.1A CN201210302010A CN102902969B CN 102902969 B CN102902969 B CN 102902969B CN 201210302010 A CN201210302010 A CN 201210302010A CN 102902969 B CN102902969 B CN 102902969B
Authority
CN
China
Prior art keywords
dot matrix
word
row
line
matrix number
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
CN201210302010.1A
Other languages
Chinese (zh)
Other versions
CN102902969A (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.)
Beijing Eren Eben Information Technology Co Ltd
Original Assignee
Beijing Eren Eben Information Technology 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 Beijing Eren Eben Information Technology Co Ltd filed Critical Beijing Eren Eben Information Technology Co Ltd
Priority to CN201210302010.1A priority Critical patent/CN102902969B/en
Publication of CN102902969A publication Critical patent/CN102902969A/en
Application granted granted Critical
Publication of CN102902969B publication Critical patent/CN102902969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of method of combination and electronic installation of handwriting input text importing, method of combination comprises step: center of gravity deterministic process: according to dot matrix distribution characteristics, determines the center of gravity of word cell; Put procedure for displaying: the center of gravity of each word cell determined through described center of gravity deterministic process is dropped on virtual, put the baseline of reference for every row word cell, each word cell order through described convergent-divergent adjustment process is put display.The present invention can to the word of handwriting input, according to the design feature of Chinese character, putting position adjustment is carried out to each word that there is individual difference, after this word shown, its size more meets the design feature of Chinese character, every line inscribed, because its center of gravity drops on same baseline, more neat appearance, more meets the aesthetic conceptions of traditional calligraphy.

Description

The method of combination of handwriting input text importing and electronic installation
[technical field]
The present invention relates to writing technology, particularly hand-written script reproduction in an electronic.
[background technology]
In the calligraphy custom of Chinese character, the alignment of word has special being particular about.A line seems attractive in appearance, in picturesque disorder word, and height and the width of each word are but not quite similar.The different Chinese character of height is arranged in a line, needs to consider the alignment problem of vertical mode, allow content seem in picturesque disorder, attractive in appearance and neat.
In hand-written line inscribed, judge that whether the size of each word is suitable, need " deal " of seeing each word whether suitable.Such as, in Fig. 1, " in ", " state ", " heart " triliteral profile vary in size, but seem it is sizeable.On the contrary, if the size of each word is limited in the profile of a formed objects, then seems that the size of word is inconsistent on the contrary, and become not too attractive in appearance.
Chinese character has the concept of center of gravity, and in line inscribed, the center of gravity of each word preferably falls on the same line, and this line can be called as " baseline ", as medium line in Fig. 1, is " baseline "; When the center of gravity of each word is aligned on baseline, word seems just more neat.
Existing electronic installation, comprises panel computer, PDA and mobile phone etc., has possessed handwriting input word and has carried out the function that shows according to the former person's handwriting of handwriting input.When the word of handwriting input is carried out reproduction display time, there is problem during traditional handwriting equally, as not of uniform size, center of gravity is unbalance.
[summary of the invention]
Fundamental purpose of the present invention is: first, provides a kind of method being applied to electronic installation, hand-written text importing being carried out to layout adjustment; Take second place, provide a kind of can to realize during hand-written text importing layout adjustment electronic installation.
For this reason, the present invention proposes a kind of method of combination of handwriting input text importing, comprise following process:
Center of gravity deterministic process, according to dot matrix distribution characteristics, determines the center of gravity of word cell;
Put procedure for displaying, the center of gravity of each word cell determined through described center of gravity deterministic process is dropped on virtual, put the baseline of reference for every row word cell, each word cell order through described convergent-divergent adjustment process is put display;
Above-mentioned method of combination, in embodiment wherein, also comprises convergent-divergent adjustment process, carries out convergent-divergent to the word cell of handwriting input;
Above-mentioned method of combination, in embodiment wherein, described convergent-divergent adjustment process comprises the steps:
Basic adjustment convergent-divergent: by the word cell size of expection, carries out convergent-divergent to the handwritten word unit of input and adjusts and performed before or after described center of gravity deterministic process.
Above-mentioned method of combination, in embodiment wherein, described convergent-divergent adjustment process also comprises the steps:
Fine setting convergent-divergent: according to the dot matrix distribution characteristics of word cell, calculate scaling further, and fine setting convergent-divergent is carried out to the word cell through basic convergent-divergent; Performed before or after described center of gravity deterministic process.
Above-mentioned method of combination, in embodiment wherein, execution described center of gravity deterministic process before, also comprise word cell split process: when described word cell be phrase or one group of word time, split out word independent one by one; Described center of gravity deterministic process is carried out center of gravity to each word and is determined.
Above-mentioned method of combination, in embodiment wherein, described center of gravity deterministic process comprises the steps:
By the ranks dot matrix of difference scan word unit, find out the column locations that dot matrix is intensive, obtain level of confidentiality dot matrix rectangle, the center of this level of confidentiality dot matrix rectangle is level of confidentiality dot matrix center, and getting this level of confidentiality dot matrix center is the center of gravity of word cell.
Or above-mentioned method of combination, in embodiment wherein, described center of gravity deterministic process comprises:
Scan total dot matrix number: total dot matrix number of scan word unit, meter summation is T;
Find out transverse center of gravity line: from the beginning scan every a line and the accumulative dot matrix number of meter, when the dot matrix number accumulative when scanning a certain dot matrix equals X, the horizontal line corresponding to row recording this dot matrix place is transverse center of gravity line, T/3≤X≤2T/3;
Find out longitudinal center of gravity line: from the beginning scan each and arrange and count accumulative dot matrix number, when the dot matrix number accumulative when scanning a certain dot matrix equals X, the vertical curve recording the row correspondence at this dot matrix place is longitudinal center of gravity line, T/3≤X≤2T/3;
The point of crossing of horizontal, vertical two center of gravity line and center of gravity.
Or above-mentioned method of combination, in embodiment wherein, described center of gravity deterministic process comprises:
Find out transverse direction, longitudinal center of gravity line: vertically line by line scan, record the accumulative dot matrix number of total dot matrix number T, each dot matrix, according to total dot matrix number T of record and the accumulative dot matrix number of each dot matrix, calculate the accumulative dot matrix number X of a certain dot matrix, as T/3≤X≤2T/3, the horizontal line corresponding to row recording this dot matrix place is transverse center of gravity line; From the beginning scan each arrange and count accumulative dot matrix number, the dot matrix number Y accumulative when scanning a certain dot matrix, during T/3≤Y≤2T/3, the vertical curve corresponding to row recording this dot matrix place is longitudinal center of gravity line;
The point of crossing of horizontal, vertical two center of gravity line and center of gravity.
Above-mentioned method of combination, in embodiment wherein, described in every a line, baseline is parallel to each other, and the interval between adjacent baselines be equal to, or greater than word cell convergent-divergent adjustment after row high.
Above-mentioned method of combination, in embodiment wherein, the process of described word cell fine setting convergent-divergent comprises step:
Word cell profile rectangle is obtained by scanning;
By the ranks dot matrix of difference scan word unit, find out the column locations that dot matrix is intensive, obtain level of confidentiality dot matrix rectangle;
Calculate ratio between the size of level of confidentiality dot matrix rectangle and the size of whole word cell profile rectangle, be multiplied by a Dynamic gene, as fine setting convergent-divergent ratio.
Above-mentioned method of combination, in embodiment wherein, before convergent-divergent adjustment process or center of gravity deterministic process, also comprises word cell correction process: when described word cell is write askew, to this word cell adjustment angle, rectifies a deviation; Or to being write the whole angle of the askew tone of Chinese characters in word cell, rectifying a deviation.
Above-mentioned method of combination, in embodiment wherein, described in obtain level of confidentiality dot matrix rectangle detailed process comprise:
Find out capable level of confidentiality dot matrix: the dot matrix number that the every a line of line scanning occurs, calculate line number and total dot matrix number, obtain the average dot matrix number of row of the overall situation;
Line scanning again, during the dot matrix number average more than the row of the overall situation of the partial row's average dot matrix number more than continuous two row or two row, the capable appearance of mark level of confidentiality dot matrix, records described level of confidentiality dot matrix capable;
Find out the level of confidentiality dot matrix of row: column scan each list existing dot matrix number, calculate columns and total dot matrix number, or total dot matrix number that the columns obtained by column scan and line scanning obtain, obtain the column average dot matrix number of the overall situation;
Again carry out column scan, when column average dot matrix number more than the overall situation of continuous two row or the above local column average dot matrix number of two row, mark level of confidentiality lattice array occurs, records described level of confidentiality lattice array;
Dot matrix that is capable by level of confidentiality dot matrix and the coincidence of level of confidentiality lattice array obtains level of confidentiality dot matrix rectangle.
Above-mentioned method of combination, in embodiment wherein, described in obtain level of confidentiality dot matrix rectangle detailed process comprise:
Scan from top to bottom, with the horizontal dot matrix number of the first row for standard, when continuing down to scan, being greater than the first row horizontal line dot matrix number when scanning the horizontal dot matrix number of certain a line, recording this horizontal line as upper side frame;
When scanning a certain horizontal dot matrix number nearest from last column and being greater than last column dot matrix number, record this line horizontal line as lower frame;
Scan from left to right, with the dot matrix number of first row perpendicular line for standard, continue scanning of turning right, when the dot matrix number scanning a certain row perpendicular line is greater than the dot matrix number of first row perpendicular line, record this perpendicular line as left frame;
When scanning a certain dot matrix number arranging nearest perpendicular line from last and being greater than the dot matrix number of last row perpendicular line, record this row perpendicular line as left frame;
Described left frame, left frame, upper side frame and lower frame intersect, and enclose formation one rectangle frame, i.e. the level of confidentiality dot matrix rectangle of word.
Above-mentioned method of combination, in embodiment wherein, described in obtain level of confidentiality dot matrix rectangle detailed process comprise:
Scan from top to bottom, with the horizontal dot matrix number of the first row for standard, when continuing down to scan, being greater than the first row horizontal line dot matrix number when scanning the horizontal dot matrix number of certain a line, recording this horizontal line as upper side frame;
Scan from the bottom up, with the horizontal dot matrix number of the first row for standard, being greater than the horizontal dot matrix number of the first row when scanning certain a line horizontal dot matrix number, recording this horizontal line as lower frame;
Scan from left to right, with the dot matrix number of first row perpendicular line for standard, continue scanning of turning right, when the dot matrix number scanning a certain row perpendicular line is greater than the dot matrix number of first row perpendicular line, record this perpendicular line as left frame;
To turn left from the right side scanning, with the dot matrix number of first row perpendicular line for standard, when the dot matrix number scanning a certain row perpendicular line is greater than the dot matrix number of first row perpendicular line, record this row perpendicular line as left frame;
Described left frame, left frame, upper side frame and lower frame intersect, and enclose formation one rectangle frame, i.e. the level of confidentiality dot matrix rectangle of word.
Meanwhile, the present invention proposes a kind of electronic installation, apply the method for combination of above-mentioned handwriting input word cell display, realize the display to handwritten word unit.
By the method for combination of handwriting input text importing of the present invention, can to the word cell of handwriting input, according to the design feature of Chinese character, putting position adjustment is carried out to each word cell that there is individual difference, after this word cell shown, its size more meets the design feature of Chinese character, every a line word cell, its word cell center of gravity drops on same baseline, more neat appearance.
[accompanying drawing explanation]
Fig. 1 is the layout schematic diagram of handwriting input text importing;
Fig. 2 is the basic flow sheet of the embodiment of the present invention one;
Fig. 3 is the general flowchart of the acquisition word cell fine setting scaling of the embodiment of the present invention one;
Fig. 4 is the general flowchart of the acquisition level of confidentiality dot matrix rectangle of the embodiment of the present invention one.
[embodiment]
Below by specific embodiment, also the present invention is described in further detail by reference to the accompanying drawings.
The method of combination of the handwriting input word cell display in the embodiment of the present invention, be applied to electronic installation, such electronic installation has hand-write input function and former person's handwriting Presentation Function, and this device can be panel computer, PAD and mobile phone etc.The method of combination of the handwriting input word cell display in the embodiment of the present invention, realizes the word cell display on a display screen to handwriting input mainly through following steps.
Word cell convergent-divergent adjustment process: to the convergent-divergent of each word cell;
Word cell center of gravity deterministic process: the center of gravity determining each word cell;
Word cell puts procedure for displaying: each word cell order put and show, each word cell center of gravity drop on virtual, put the baseline of reference for every row word cell.
Wherein both word cell convergent-divergent adjustment process and word cell center of gravity deterministic process are arbitrary sequence (not having the requirement of sequencing during execution), convergent-divergent can be carried out in advance adjust row again and determine center of gravity, also center of gravity row convergent-divergent adjustment again can be determined in advance, or the two intersects execution, carries out again or synchronously.
Above-mentioned word cell arranges according to the writing style of user and the response of electronic installation to define.Under normal circumstances, according to the writing style of user, user generally can write once a punctuation mark, word, word, phrase, in short, one section of word etc.; Accordingly, electronic installation, generally can by a punctuation mark, word, word, phrase, in short, one section of word etc. integrally carry out standard word identification and the response such as conversion, convergent-divergent arrangement when responding.So, the word cell described in the application, can be a punctuation mark, word, word, phrase, in short, one section of word etc., can be even the combination etc. of a stroke, radical, a word and some strokes.
Illustrate for the ease of setting forth, below respectively with word cell be a word, one group of word sets forth.Wherein, a word can be understood as: a word, stroke or a radical etc.; Namely one group of word can be regarded as: word, phrase, in short, one section of word etc., can be even the combination of a stroke, radical, a word and some strokes.
Embodiment one
Please refer to shown in Fig. 2,
Word cell convergent-divergent adjustment process: it comprises the basic convergent-divergent of word cell and word cell fine setting convergent-divergent, in this example, word cell fine setting convergent-divergent also can omit, but than the scheme taking word cell to finely tune convergent-divergent, slightly not enough in display effect.
The basic convergent-divergent of word cell: by the word cell size of expection, carries out convergent-divergent adjustment to the handwritten word unit of input;
The expection row height of setting handwriting input word cell is H, and the width of expection is W; Actual word cell original height of writing is OH, and original width is OW.According to the ratio of OH and H, and the ratio of OW and W, get the ratio that both are less, using this ratio as basic scaling; Or according to the ratio of OH and H, and the ratio of OW and W, get weighted mean value as basic scaling; Basic scaling can also be determined by alternate manner, carry out basic convergent-divergent.
According to the basic scaling determined, convergent-divergent is carried out to this handwritten word unit;
The basic convergent-divergent of word cell of this step, object is that to make each handwritten word unit of input be adjusted to size basically identical.
Word cell fine setting convergent-divergent: according to the dot matrix distribution characteristics of word cell, calculate scaling further, and fine setting convergent-divergent is carried out to the word cell through basic convergent-divergent;
Shown in Fig. 3, Fig. 4, the concrete steps of described fine setting convergent-divergent comprise:
First, find out the text profile rectangle of word cell: to word cell (or from the bottom up) scanning from top to bottom, obtain the first row and last column of word cell dot matrix, from left to right (or from right to left) obtain the first row of word cell dot matrix and last row, enclose by this first row and last column, first row and last row the text profile rectangle frame forming whole word cell.
Secondly, the level of confidentiality dot matrix rectangle of word cell is found out:
The level of confidentiality dot matrix rectangle of word cell can be calculated by following two kinds of modes:
Mode one: the calculating point both direction of level of confidentiality dot matrix rectangle is carried out.
In the vertical direction, scan the dot matrix number that every a line occurs from top to bottom, the dot matrix number that line number and all row are total can be calculated, obtain the overall average dot matrix number of row.
From the beginning again scan, when partial row's average dot matrix number of continuous two row (or more than two row) dot matrix number average more than the row of this overall situation, capable appearances of mark level of confidentiality dot matrix, records the position that level of confidentiality dot matrix is capable.
In the horizontal direction, scan each from left to right and list existing dot matrix number, columns and the total dot matrix number of all row can be calculated, or total dot matrix number that the columns obtained by column scan and line scanning obtain, obtain the column average dot matrix number of the overall situation.
From the beginning again scan, when column average dot matrix number more than this overall situation of the local column average dot matrix number of continuous two row (or two row more than), mark level of confidentiality lattice array occurs, the position of record level of confidentiality lattice array.
Dot matrix that is capable by level of confidentiality dot matrix and the coincidence of level of confidentiality lattice array forms a level of confidentiality dot matrix rectangle.
Mode two: scan from top to bottom, with the first row horizontal dot matrix number for standard (such as: the horizontal dot matrix number of the first row is: 3 points), when continuing down to scan, being greater than the first row horizontal line dot matrix number (when being greater than 3) when scanning the horizontal dot matrix number of certain a line, recording this horizontal line as upper side frame;
When scanning certain a line horizontal dot matrix number (from the horizontal line that last column is nearest) and being greater than last column dot matrix number (such as: the horizontal dot matrix number of last column is: 2 points), record this line horizontal line as lower frame;
Another recording mode of lower frame is as follows: scan from the bottom up, with the horizontal dot matrix number of the first row for standard (such as the first horizontal line is: 2 points), being greater than the horizontal dot matrix number (when being greater than 2) of the first row when scanning certain a line horizontal dot matrix number, recording this horizontal line as lower frame;
Scan from left to right, with the dot matrix number of first row perpendicular line for standard (such as: the dot matrix number of first row perpendicular line is: 3 points), continue scanning of turning right, when the dot matrix number scanning a certain row perpendicular line is greater than the dot matrix number (when being greater than 3) of first row perpendicular line, record this perpendicular line as left frame;
When the dot matrix number (arranging nearest perpendicular line from last) scanning a certain row perpendicular line is greater than the dot matrix number of last row perpendicular line (such as the dot matrix number of the perpendicular line of last row is: 2 points), record this row perpendicular line as left frame;
Another recording mode of left frame is as follows: scanning of turning left from the right side, with the dot matrix number of first row perpendicular line for standard (such as the first horizontal line is: 2 points), when the dot matrix number scanning a certain row perpendicular line is greater than the dot matrix number (when being greater than 2) of first row perpendicular line, record this row perpendicular line as left frame;
Above-mentioned left frame, left frame, upper side frame and lower frame intersect, and enclose formation one rectangle frame, i.e. the level of confidentiality dot matrix rectangle of word.
Finally, ratio between the size calculating the size of level of confidentiality dot matrix rectangle and the text profile rectangle of whole word cell; Again this ratio is multiplied by a Dynamic gene, the ratio of further convergent-divergent (fine setting) can be obtained.
Dynamic gene is to balance between the rectangle and word cell profile rectangle of level of confidentiality dot matrix, allows the convergent-divergent of word cell be unlikely to exaggeration.Such as, when the rectangle of level of confidentiality dot matrix and the ratio of word cell profile rectangle very little time (be less than 0.35, as " in " word), Dynamic gene is between 1.5 to 2.5.And when level of confidentiality dot matrix rectangle and word cell profile rectangle larger time (being greater than 0.85, as " state " word), Dynamic gene is between 0.6 to 1.2.This Dynamic gene is the statistical value that can draw by experiment, needs to adjust according to actual effect.
Such as, in Fig. 1 " in " word, width is little compared with desired value, and the reticular density of upper/lower terminal is low, can appropriateness amplify.The width of " state " word, highly all close to desired value, without convergent-divergent; " heart " word in upper figure, because width is comparatively large, does not need to amplify.
In certain embodiments, in the method for combination of handwriting input text importing, the dispensable step of convergent-divergent adjustment process of described word cell.In certain embodiments, in the method for combination of handwriting input text importing, the basic convergent-divergent of described word cell and the execution order of fine setting convergent-divergent are random order.
Word cell center of gravity deterministic process:
Add up the dot matrix distribution characteristics of each word, finding out the relative centre point of dot matrix distribution characteristics, is namely center of gravity.In this example, two kinds of modes are adopted to obtain word cell center of gravity:
Mode one: adopt easy mode, using the center of level of confidentiality dot matrix rectangle directly as the center of gravity of word cell.
Mode two: adopt accurate mode, this accurate mode comprises two kinds of center of gravity determination modes further:
The first accurate center of gravity determination mode:
Scan total dot matrix number: total dot matrix number of scan word unit, meter summation is T;
Find out transverse center of gravity line: from the beginning scan every a line and the accumulative dot matrix number of meter, when the dot matrix number accumulative when scanning a certain dot matrix equals X, the horizontal line corresponding to row recording this dot matrix place is transverse center of gravity line, T/3≤X≤2T/3;
Find out longitudinal center of gravity line: from the beginning scan each and arrange and count accumulative dot matrix number, when the dot matrix number accumulative when scanning a certain dot matrix equals X, the vertical curve recording the row correspondence at this dot matrix place is longitudinal center of gravity line, T/3≤X≤2T/3;
After having scanned, the point of crossing of horizontal, vertical two center of gravity line and center of gravity.
The second accurate center of gravity determination mode:
Find out transverse direction, longitudinal center of gravity line: vertically line by line scan, record the accumulative dot matrix number of total dot matrix number T, each dot matrix, according to total dot matrix number T of record and the accumulative dot matrix number of each dot matrix, calculate the accumulative dot matrix number X of a certain dot matrix, as T/3≤X≤2T/3, the horizontal line corresponding to row recording this dot matrix place is transverse center of gravity line; From the beginning scan each arrange and count accumulative dot matrix number, the dot matrix number Y accumulative when scanning a certain dot matrix, during T/3≤Y≤2T/3, the vertical curve corresponding to row recording this dot matrix place is longitudinal center of gravity line;
Or scan by column in the horizontal direction, record total dot matrix number T, the accumulative dot matrix number of each dot matrix, according to total dot matrix number T of record and the accumulative dot matrix number of each dot matrix, calculate the accumulative dot matrix number Y of a certain dot matrix, as T/3≤Y≤2T/3, the vertical curve corresponding to row recording this dot matrix place is longitudinal center of gravity line; From the beginning scan every a line and the accumulative dot matrix number of meter, the dot matrix number accumulative when scanning a certain dot matrix equals X, and during T/3≤X≤2T/3, the horizontal line corresponding to row recording this dot matrix place is transverse center of gravity line;
The point of crossing of horizontal, vertical two center of gravity line and center of gravity.
The process of virtual baseline: capable high according to the word cell completing word cell convergent-divergent adjustment process, the baseline of virtual every a line, each baseline is parallel, and to be equal to, or greater than word cell capable high the interval between adjacent baselines, and it is capable high 1.5 times that the spacing in this example between baseline is set to word cell; Also can leading virtual baseline, setting row high, as the reference standard of the scaling of word cell convergent-divergent adjustment process.
Word cell puts procedure for displaying: according to the position of the word cell center of gravity of each word, places word cell, make the word cell center of gravity of each word be positioned on baseline, fix with the spacing between a line adjacent words unit by sequential write.The spacing of word cell capable high 1/4th as colleague's adjacent words unit is chosen in this example.
From above-mentioned concrete technical scheme, the process of word cell convergent-divergent adjustment process, word cell center of gravity deterministic process and virtual baseline wherein, execution sequence is not strict with, both can synchronously carry out, also successively can carry out with random order, or intersection is carried out, and slightly need only adjust in ins and outs.
By the method for combination that the handwriting input word cell of this example shows, can to the word cell of handwriting input, according to the design feature of Chinese character, carry out size adjustment, putting position adjustment to each word cell that there is individual difference, the word cell after this shown, its size more meets the design feature of Chinese character, every line inscribed, because its word cell center of gravity drops on same baseline, more neat appearance, more meets the aesthetic conceptions of Chinese traditional calligraphy.
Embodiment two
Preset the rectangle of a word cell profile size, obtain the area of this default rectangle.
In the basic convergent-divergent step of word cell, by the rank scanning to word cell, calculate the real area of input word unit profile, preset the area of rectangle and the ratio of this real area, be taken as the basic scaling to this word cell, by this basic scaling, basic convergent-divergent carried out to this word cell.
Ensuing word cell trim step, determine that word cell center of gravity, virtual baseline and word cell put step display, substantially identical with embodiment one.
Embodiment three
In this example, suppose that described word cell is one group of word or phrase, the technical scheme according to embodiment one is made adjustment.Specifically be mainly, after the basic convergent-divergent of execution word cell, before execution word cell fine setting convergent-divergent, word cell is split out word one by one, according to the dot matrix distribution characteristics of each word, further calculating scaling, and fine setting convergent-divergent is carried out to each word through basic convergent-divergent; To the fine setting convergent-divergent of each word, determine center of gravity and put the concrete steps of display etc. with reference to embodiment one.
Embodiment four
In this example, suppose that described word cell is one group of word or phrase, the technical scheme according to embodiment one is made adjustment.Specifically be mainly, before the basic convergent-divergent of execution word cell, word cell fine setting convergent-divergent, implement a splitting step, each word cell is split out word one by one, again basic convergent-divergent is carried out to it and finely tune basic convergent-divergent, the fine setting convergent-divergent of convergent-divergent to each word, determine center of gravity and put the concrete steps of display etc. with reference to embodiment one.The situation that this example is write not of uniform size for one group of word, can realize significantly adjustment and landscaping effect.
Embodiment five
In this example, suppose that described word cell is one group of word or phrase, the technical scheme according to embodiment one is made adjustment.Specifically be mainly, first overall basic convergent-divergent carried out to word cell, then split into multiple word, then calculating is determined the center of gravity of each word and put display respectively.To the basic convergent-divergent of each word cell, determine center of gravity and put the concrete steps of display etc. with reference to embodiment one.
Embodiment six
In this example, suppose that described word cell is one group of word or phrase, the technical scheme according to embodiment one is made adjustment.Specifically be mainly, first overall basic convergent-divergent carried out to word cell, determine center of gravity and put; Again multiple word is split into word cell, then calculate the center of gravity determining each word respectively, according to the center of gravity fine setting putting position of each word.
Embodiment seven
In this example, in the technical scheme of above-mentioned each example, convergent-divergent step and determine center of gravity step before increase correction step, for writing the askew word cell write tiltedly, rotating a certain angle and being corrected; Then, according to the technical scheme of above-mentioned each example, or carry out word cell and be split as word one by one, or carry out basic convergent-divergent, finely tune convergent-divergent, determine center of gravity and put the steps such as display.
Embodiment eight
In above-described embodiment, all or part of step of various method can be carried out instruction related hardware by program and completes, by with the mating of hardware, this example forms a kind of electronic installation, this electronic installation has hand-write input function and former person's handwriting Presentation Function, the various methods of application above-described embodiment, realize the word cell display on a display screen to handwriting input.This device can be panel computer, PAD and mobile phone etc.
Embodiment nine
This example is a computer-readable recording medium, and this storage medium can comprise: ROM (read-only memory), random access memory, disk or CD etc.In this computer-readable recording medium, have program stored therein, this program, by by related hardware load operating, can realize all or part of step of various method in above-described embodiment.
Above content is in conjunction with concrete preferred implementation further description made for the present invention, can not assert that specific embodiment of the invention is confined to these explanations.For general technical staff of the technical field of the invention, without departing from the inventive concept of the premise, some simple deduction or replace can also be made, all should be considered as belonging to protection scope of the present invention.

Claims (12)

1. a method of combination for handwriting input text importing, comprises following process:
Center of gravity deterministic process: total dot matrix number of scan word unit, counting total dot matrix number is T;
From the beginning scan every a line and the accumulative dot matrix number of meter, when the dot matrix number accumulative when scanning a certain dot matrix equals X, the horizontal line corresponding to row recording this dot matrix place is transverse center of gravity line, T/3≤X≤2T/3;
From the beginning scan each arrange and count accumulative dot matrix number, when the dot matrix number accumulative when scanning a certain dot matrix equals X, the vertical curve recording the row correspondence at this dot matrix place is longitudinal center of gravity line, T/3≤X≤2T/3;
The point of crossing of horizontal, vertical two center of gravity line and center of gravity;
Or,
Find out transverse direction, longitudinal center of gravity line: each dot matrix record the accumulative dot matrix number of total dot matrix number T, each dot matrix of vertically lining by line scan, according to total dot matrix number T of record and the accumulative dot matrix number of each dot matrix, calculate the accumulative dot matrix number X of a certain dot matrix, as T/3≤X≤2T/3, the horizontal line corresponding to row recording this dot matrix place is transverse center of gravity line; From the beginning scan each arrange and count accumulative dot matrix number, the dot matrix number Y accumulative when scanning a certain dot matrix, during T/3≤Y≤2T/3, the vertical curve corresponding to row recording this dot matrix place is longitudinal center of gravity line;
The point of crossing of horizontal, vertical two center of gravity line and center of gravity;
Or,
By the ranks dot matrix of difference scan word unit, find out the column locations that dot matrix is intensive, obtain level of confidentiality dot matrix rectangle, the center of this level of confidentiality dot matrix rectangle is level of confidentiality dot matrix center, and getting this level of confidentiality dot matrix center is the center of gravity of word cell;
Put procedure for displaying: the center of gravity of each word cell determined through described center of gravity deterministic process is dropped on virtual, put the baseline of reference for every row word cell, each word cell order is put display.
2. method of combination as claimed in claim 1, is characterized in that, also comprise convergent-divergent adjustment process: carry out convergent-divergent to the word cell of handwriting input.
3. method of combination as claimed in claim 2, it is characterized in that, described convergent-divergent adjustment process comprises the steps:
Basic convergent-divergent: by the word cell size of expection, carries out convergent-divergent adjustment to the handwritten word unit of input; Performed before or after described center of gravity deterministic process.
4. method of combination as claimed in claim 3, it is characterized in that, described convergent-divergent adjustment process also comprises the steps:
Fine setting convergent-divergent: according to the dot matrix distribution characteristics of word cell, calculate scaling further, and fine setting convergent-divergent is carried out to the word cell through basic convergent-divergent; Performed before or after described center of gravity deterministic process.
5. the method for combination according to any one of claim 1-3, is characterized in that, execution described center of gravity deterministic process before, also comprise word cell split process: when described word cell be phrase or one group of word time, split out word independent one by one; Described center of gravity deterministic process is carried out center of gravity to each word and is determined.
6. the method for combination according to any one of claim 1-3, is characterized in that, described in every a line, baseline is parallel to each other, and the interval between adjacent baselines be equal to, or greater than word cell convergent-divergent adjustment after row high.
7. method of combination as claimed in claim 4, is characterized in that, the process of described word cell fine setting convergent-divergent comprises step:
Word cell profile rectangle is obtained by scanning;
By the ranks dot matrix of difference scan word unit, find out the column locations that dot matrix is intensive, obtain level of confidentiality dot matrix rectangle;
Calculate ratio between the size of level of confidentiality dot matrix rectangle and the size of whole word cell profile rectangle, be multiplied by a Dynamic gene, as fine setting convergent-divergent ratio.
8. method of combination as claimed in claim 5, is characterized in that, before convergent-divergent adjustment process or center of gravity deterministic process, also comprises word cell correction process: when described word cell is write askew, to this word cell adjustment angle, rectifies a deviation; Or to being write the whole angle of the askew tone of Chinese characters in word cell, rectifying a deviation.
9. method of combination as claimed in claim 6, is characterized in that, described in obtain level of confidentiality dot matrix rectangle detailed process comprise:
Find out capable level of confidentiality dot matrix: the dot matrix number that the every a line of line scanning occurs, calculate line number and total dot matrix number, obtain the average dot matrix number of row of the overall situation; Again carry out line scanning, during the dot matrix number average more than the row of this overall situation of the partial row's average dot matrix number more than continuous two row or two row, the capable appearance of mark level of confidentiality dot matrix, records described level of confidentiality dot matrix capable;
Find out the level of confidentiality dot matrix of row: column scan each list existing dot matrix number, calculate columns and total dot matrix number, or total dot matrix number that the columns obtained by column scan and line scanning obtain, obtain the column average dot matrix number of the overall situation; Again carry out column scan, when column average dot matrix number more than this overall situation of continuous two row or the above local column average dot matrix number of two row, mark level of confidentiality lattice array occurs, records described level of confidentiality lattice array;
Dot matrix that is capable by level of confidentiality dot matrix and the coincidence of level of confidentiality lattice array obtains level of confidentiality dot matrix rectangle.
10. method of combination as claimed in claim 6, is characterized in that, described in obtain level of confidentiality dot matrix rectangle detailed process comprise:
Scan from top to bottom, with the horizontal dot matrix number of the first row for standard, when continuing down to scan, being greater than the first row horizontal line dot matrix number when scanning the horizontal dot matrix number of certain a line, recording this horizontal line as upper side frame;
When scanning a certain horizontal dot matrix number nearest from last column and being greater than last column dot matrix number, record this line horizontal line as lower frame;
Scan from left to right, with the dot matrix number of first row perpendicular line for standard, continue scanning of turning right, when the dot matrix number scanning a certain row perpendicular line is greater than the dot matrix number of first row perpendicular line, record this perpendicular line as left frame;
When scanning a certain dot matrix number arranging nearest perpendicular line from last and being greater than the dot matrix number of last row perpendicular line, record this row perpendicular line as left frame;
Described left frame, left frame, upper side frame and lower frame intersect, and enclose formation one rectangle frame, i.e. the level of confidentiality dot matrix rectangle of word.
11. method of combination as claimed in claim 6, is characterized in that, described in obtain level of confidentiality dot matrix rectangle detailed process comprise:
Scan from top to bottom, with the horizontal dot matrix number of the first row for standard, when continuing down to scan, being greater than the first row horizontal line dot matrix number when scanning the horizontal dot matrix number of certain a line, recording this horizontal line as upper side frame;
Scan from the bottom up, with the horizontal dot matrix number of the first row for standard, being greater than the horizontal dot matrix number of the first row when scanning certain a line horizontal dot matrix number, recording this horizontal line as lower frame;
Scan from left to right, with the dot matrix number of first row perpendicular line for standard, continue scanning of turning right, when the dot matrix number scanning a certain row perpendicular line is greater than the dot matrix number of first row perpendicular line, record this perpendicular line as left frame;
To turn left from the right side scanning, with the dot matrix number of first row perpendicular line for standard, when the dot matrix number scanning a certain row perpendicular line is greater than the dot matrix number of first row perpendicular line, record this row perpendicular line as left frame;
Described left frame, left frame, upper side frame and lower frame intersect, and enclose formation one rectangle frame, i.e. the level of confidentiality dot matrix rectangle of word.
12. 1 kinds of electronic installations, the method for combination of the handwriting input word cell display of application according to any one of claim 1-11, realizes the display of the word to handwriting input.
CN201210302010.1A 2012-08-22 2012-08-22 The method of combination of handwriting input text importing and electronic installation Active CN102902969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210302010.1A CN102902969B (en) 2012-08-22 2012-08-22 The method of combination of handwriting input text importing and electronic installation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210302010.1A CN102902969B (en) 2012-08-22 2012-08-22 The method of combination of handwriting input text importing and electronic installation

Publications (2)

Publication Number Publication Date
CN102902969A CN102902969A (en) 2013-01-30
CN102902969B true CN102902969B (en) 2016-02-17

Family

ID=47575191

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210302010.1A Active CN102902969B (en) 2012-08-22 2012-08-22 The method of combination of handwriting input text importing and electronic installation

Country Status (1)

Country Link
CN (1) CN102902969B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105354834B (en) * 2015-10-15 2018-04-17 广东欧珀移动通信有限公司 A kind of method and device for counting papery text font number
CN106293462B (en) * 2016-08-04 2019-11-26 广州视睿电子科技有限公司 A kind of character displaying method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1269554A (en) * 1999-04-05 2000-10-11 英业达集团(上海)电子技术有限公司 Font pantograph method and device
CN1645439A (en) * 2004-10-22 2005-07-27 高红梅 Chinese analytic checks
CN101183430A (en) * 2007-12-13 2008-05-21 中国科学院合肥物质科学研究院 Handwriting digital automatic identification method based on module neural network SN9701 rectangular array
CN101470549A (en) * 2007-12-27 2009-07-01 汉王科技股份有限公司 Handwriting processing method and system used for information processing terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1269554A (en) * 1999-04-05 2000-10-11 英业达集团(上海)电子技术有限公司 Font pantograph method and device
CN1645439A (en) * 2004-10-22 2005-07-27 高红梅 Chinese analytic checks
CN101183430A (en) * 2007-12-13 2008-05-21 中国科学院合肥物质科学研究院 Handwriting digital automatic identification method based on module neural network SN9701 rectangular array
CN101470549A (en) * 2007-12-27 2009-07-01 汉王科技股份有限公司 Handwriting processing method and system used for information processing terminal

Also Published As

Publication number Publication date
CN102902969A (en) 2013-01-30

Similar Documents

Publication Publication Date Title
CA2718636C (en) Method and tool for recognizing a hand-drawn table
CN102830934B (en) A kind of handwriting input display method and device
WO2019154197A1 (en) Electronic book handwritten note display method, computing device and computer storage medium
CN105895054A (en) Adjustment method of output brightness, adjustment method of Gamma curve and display device
CN103488339B (en) A kind of generation method of personalized Chinese-character digital ink
US20120218273A1 (en) Dynamic typesetting method of display image
JP2014522048A (en) Kanji composition method and apparatus, character composition method and apparatus, and font library construction method
CN103257735A (en) Stroke presentation method for handwriting input and electronic device
EP4210337A1 (en) On-screen comment playing method, related device, and storage medium
CN102135836B (en) Superposition hand input method and system
US20140092143A1 (en) Content bound graphic
CN104573747B (en) Word evaluation method and device
CN104517559B (en) display sub-pixel driving system and driving method thereof
CN112463012B (en) Method for displaying consistency of handwriting in synchronization of paper screen
CN102902969B (en) The method of combination of handwriting input text importing and electronic installation
CN108537729A (en) Picture scaling method, computer installation and computer readable storage medium
CN106293462B (en) A kind of character displaying method and device
CN103186507B (en) Dot matrix word library processing method
CN108228069B (en) Handwritten font input method, mobile terminal and device
CN110705208B (en) Text display method, text display device, computer readable storage medium and electronic equipment
JP2022526514A (en) Character string display processing method and its devices, terminals and computer programs
CN107562710A (en) A kind of chart processing unit and method
CN104346046A (en) Three-dimensional simulation page turning method and system
CN104581339A (en) Device capable of displaying strokes synchronously with audio frequency and method thereof
CN109104627A (en) Focus Background Generation Method, storage medium, equipment and the system of Android TV

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