CN102054172A - Method and device for synthesizing handwritten Chinese characters based on differential vector generation component - Google Patents

Method and device for synthesizing handwritten Chinese characters based on differential vector generation component Download PDF

Info

Publication number
CN102054172A
CN102054172A CN 201010582636 CN201010582636A CN102054172A CN 102054172 A CN102054172 A CN 102054172A CN 201010582636 CN201010582636 CN 201010582636 CN 201010582636 A CN201010582636 A CN 201010582636A CN 102054172 A CN102054172 A CN 102054172A
Authority
CN
China
Prior art keywords
chinese character
parts
point
stroke
standard
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201010582636
Other languages
Chinese (zh)
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.)
Zhejiang A&F University ZAFU
Original Assignee
Zhejiang A&F University ZAFU
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 Zhejiang A&F University ZAFU filed Critical Zhejiang A&F University ZAFU
Priority to CN 201010582636 priority Critical patent/CN102054172A/en
Publication of CN102054172A publication Critical patent/CN102054172A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Character Discrimination (AREA)

Abstract

The invention relates to the technical field of computer application, in particular to a method for synthesizing handwritten Chinese characters based on a differential vector generation component. The method comprises the following steps of: firstly, reading a standard Chinese character component library, and acquiring a component composition and component images of standard Chinese characters; secondly, reading a component differential vector library, acquiring a differential vector set of coordinates between standard Chinese character components and handwritten components, adding the coordinate differential vector set to the standard Chinese character components, and generating the handwritten components; and finally combing the generated handwritten components according to the characteristics among the components of the standard Chinese characters stored in the standard Chinese character component library, and synthesizing the handwritten Chinese characters. By the method, the handwritten Chinese characters can be automatically synthesized on the premise of acquiring the handwritten fonts of a small number of users at low cost.

Description

Generate the handwritten Chinese character synthetic method and the device of parts based on the difference vector
Technical field
The present invention relates to the Computer Applied Technology field, relate in particular to the handwritten Chinese character synthetic method and the device that generate parts based on the difference vector.
Background technology
In the information age, people have been accustomed to replacing with keyboard hand-written, have replaced the individual character font with " standard " font, and Chinese character has lost the historical civilization of succession and represented the effect of individual character on screen.Automatically synthetic on computers hand-written script produces the individualized document consistent with hand-written effect, can further reader and author's relation, displaying author's individual character glamour.Chinese Character Recognition and generation are difficult problems of area of pattern recognition always, and synthetic handwritten character can provide a large amount of training samples for the machine learning in the Chinese Character Recognition process, pattern-recognition, helps the research of Handwritten Chinese Character Recognition.The font Aided Design and the generation in fields such as the synthetic correlation technique of handwritten Chinese character can be applicable to decorate, advertisement, recreation, animation improve design efficiency and also reduce cost.
The generation of traditional character library need be repaiied manual auxiliary the finishing of word workman, and workload is big, is not suitable for the automatic generation of hand-written script.The Chinese characters in common use character library of every making one cover word more than 6,000 needs about 20 to 400,000 input, and its high cost is not suitable for the synthetic of hand-written script.The generation technique of external some hand-written scripts that occurred, only suitable English alphabet is synthetic, is not suitable for the synthetic of handwritten Chinese character.The synthetic difficulty of handwritten Chinese character is that the quantity of Chinese character is many, synthetic too complicated on the stroke rank, collection handwritten word sample cost height.
Summary of the invention
The objective of the invention is to provide a kind of and can under the prerequisite of gathering the small number of users hand-written script, synthesize hand-written script, the method and apparatus of the synthetic handwritten Chinese character that acquisition cost is low automatically at the deficiencies in the prior art.
Purpose of the present invention realizes by following technical measures: based on the handwritten Chinese character synthetic method of difference vector generation parts, draw together following steps:
A: read the standard Chinese character part library, obtain the parts of standard Chinese character and form and image of component;
B: fetch unit difference vector storehouse, the difference vector set of the coordinate between acquisition standard Chinese character parts and the hand-written parts, the standard Chinese character parts add coordinate difference vector set, generate hand-written parts;
C: according to the parts of the standard Chinese character of storing in the standard Chinese character part library and the feature between the parts, the hand-written parts that combination has generated, synthetic handwritten Chinese character.
Wherein, parts difference vector storehouse formation method is:
D1: the parts E of mark Chinese character F the in the standard Chinese character part library
Figure 960218DEST_PATH_IMAGE001
The key point of stroke,
Figure 520512DEST_PATH_IMAGE002
The starting point of stroke is labeled as key point
Figure 842559DEST_PATH_IMAGE003
, turning point is labeled as key point
Figure 934143DEST_PATH_IMAGE004
, turning point comprises stroke
Figure 878965DEST_PATH_IMAGE001
Terminating point, terminating point is labeled as key point
Figure 44498DEST_PATH_IMAGE005
, i=1,2,3,,, e-1, adjacent two key points are one section, establish
Figure 783784DEST_PATH_IMAGE003
Arrive Line segment be
Figure 783281DEST_PATH_IMAGE007
,
Figure 862708DEST_PATH_IMAGE007
Mid point be labeled as
Figure 789207DEST_PATH_IMAGE008
Arrive
Figure 814112DEST_PATH_IMAGE009
Line segment be
Figure 203505DEST_PATH_IMAGE010
,
Figure 300905DEST_PATH_IMAGE010
Central point be labeled as
Figure 150367DEST_PATH_IMAGE011
, then The crucial point set of stroke standard be (
Figure 235315DEST_PATH_IMAGE003
, , ,
Figure 94183DEST_PATH_IMAGE011
,
Figure 943322DEST_PATH_IMAGE012
,
Figure 441912DEST_PATH_IMAGE005
);
In the handwritten Chinese character part library the of the parts E of mark Chinese character F
Figure 625768DEST_PATH_IMAGE002
The key point of stroke, the
Figure 808619DEST_PATH_IMAGE001
The starting point of stroke is labeled as key point
Figure 27111DEST_PATH_IMAGE013
, turning point is labeled as key point
Figure 637215DEST_PATH_IMAGE014
, turning point comprises The terminating point of stroke, terminating point is labeled as key point
Figure 91647DEST_PATH_IMAGE015
, i=1,2,3,,, e, adjacent two key points are one section, establish
Figure 918307DEST_PATH_IMAGE013
Arrive
Figure 948580DEST_PATH_IMAGE016
Line segment be
Figure 857762DEST_PATH_IMAGE017
,
Figure 444732DEST_PATH_IMAGE017
Mid point be labeled as
Figure 637816DEST_PATH_IMAGE018
Figure 589723DEST_PATH_IMAGE014
Arrive
Figure 969888DEST_PATH_IMAGE019
Line segment be
Figure 295303DEST_PATH_IMAGE020
,
Figure 155943DEST_PATH_IMAGE020
Central point be labeled as
Figure 528018DEST_PATH_IMAGE021
, then
Figure 146212DEST_PATH_IMAGE002
The hand-written crucial point set of stroke be ( ,
Figure 914765DEST_PATH_IMAGE018
,
Figure 457742DEST_PATH_IMAGE016
,
Figure 820023DEST_PATH_IMAGE021
, ,
Figure 309090DEST_PATH_IMAGE015
);
D2: the first stroke of a Chinese character point with parts E is a true origin, the
Figure 773700DEST_PATH_IMAGE002
The standard key point of stroke
Figure 615754DEST_PATH_IMAGE023
With hand-written key point
Figure 886330DEST_PATH_IMAGE024
Coordinate figure subtract each other, form vector
Figure 510822DEST_PATH_IMAGE025
, j (0,01,1, i1, i+1 ... e), of the parts E of Chinese character F
Figure 475684DEST_PATH_IMAGE002
Stroke forms the stroke vectors collection
Figure 736901DEST_PATH_IMAGE027
;
D3: each pen is repeated above operation, obtains the proper vector of all strokes of the parts E of writing Chinese characters F, obtain Chinese character F parts E vector set for [
Figure 218829DEST_PATH_IMAGE028
,
Figure 274510DEST_PATH_IMAGE029
..., ];
D4: all standard Chinese characters are all carried out top 3 steps operation, be stored in the parts difference vector storehouse, form parts difference vector storehouse.
Wherein, among the step B, the standard Chinese character parts add after the coordinate difference vector set, adopt method of interpolation to obtain the intermediate point of line segment of n stroke of the parts E of Chinese character F, and then obtain all stroke tracks of n stroke; Every of parts E to Chinese character F adopts method of interpolation to obtain intermediate point, thereby obtains the handwriting tracks of the whole parts E of Chinese character F, finishes the generation of hand-written parts.
Wherein, method of interpolation is specially the Bei Saier curve method.
Wherein, also comprise before the steps A: query criteria Chinese character in the standard Chinese character storehouse, judge whether this standard Chinese character is included in the standard Chinese character storehouse; Also comprise after the step C: synthetic handwritten Chinese character is stored in the individual character character library.
According to the handwritten Chinese character synthesizer of the handwritten Chinese character synthetic method that generates parts based on the difference vector, comprise standard Chinese character part library, parts difference vector storehouse, parts generating apparatus, Chinese character synthesizer based on difference vector generation parts;
The standard Chinese character part library is used for the parts of storage standards Chinese character and forms and image of component the parts of standard Chinese character and the feature between the parts;
Parts difference vector storehouse is used for the difference vector set of coordinate and the coordinate of the parts of corresponding handwritten Chinese character of the parts of storage standards Chinese character;
The parts generating apparatus is used for fetch unit difference vector storehouse, and the standard Chinese character parts are added coordinate difference vector set, generates hand-written parts;
The Chinese character synthesizer, according to the parts of the standard Chinese character of storing in the standard Chinese character part library and the feature between the parts, the hand-written parts that combination has generated, synthetic handwritten Chinese character.
Wherein, formation concrete steps in parts difference vector storehouse are:
D1: in the standard Chinese character part library the of the parts E of mark Chinese character F
Figure 906796DEST_PATH_IMAGE001
The key point of stroke,
Figure 308477DEST_PATH_IMAGE002
The starting point of stroke is labeled as and is key point
Figure 285792DEST_PATH_IMAGE003
, turning point is labeled as key point
Figure 589734DEST_PATH_IMAGE004
, turning point comprises stroke
Figure 943486DEST_PATH_IMAGE001
Terminating point, terminating point is labeled as key point
Figure 196744DEST_PATH_IMAGE005
, i=1,2,3,,, e-1, adjacent two key points are one section, establish
Figure 859807DEST_PATH_IMAGE003
Arrive
Figure 133269DEST_PATH_IMAGE006
Line segment be
Figure 539979DEST_PATH_IMAGE007
,
Figure 585427DEST_PATH_IMAGE007
Mid point be labeled as
Figure 419391DEST_PATH_IMAGE008
Figure 183078DEST_PATH_IMAGE004
Arrive
Figure 127901DEST_PATH_IMAGE009
Line segment be
Figure 293434DEST_PATH_IMAGE010
,
Figure 298299DEST_PATH_IMAGE010
Central point be labeled as
Figure 563931DEST_PATH_IMAGE011
, then
Figure 312444DEST_PATH_IMAGE002
The crucial point set of stroke standard be (
Figure 332484DEST_PATH_IMAGE003
, , ,
Figure 533155DEST_PATH_IMAGE011
,
Figure 673281DEST_PATH_IMAGE012
, );
In the handwritten Chinese character part library the of the parts E of mark Chinese character F
Figure 977016DEST_PATH_IMAGE002
The key point of stroke, the
Figure 67332DEST_PATH_IMAGE001
The starting point of stroke is labeled as key point , turning point is labeled as key point
Figure 579533DEST_PATH_IMAGE014
, turning point comprises
Figure 26825DEST_PATH_IMAGE002
The terminating point of stroke, terminating point is labeled as key point
Figure 655253DEST_PATH_IMAGE015
, i=1,2,3,,, e, adjacent two key points are one section, establish
Figure 769971DEST_PATH_IMAGE013
Arrive
Figure 458441DEST_PATH_IMAGE016
Line segment be
Figure 395960DEST_PATH_IMAGE017
,
Figure 828078DEST_PATH_IMAGE017
Mid point be labeled as
Figure 656674DEST_PATH_IMAGE014
Arrive
Figure 78559DEST_PATH_IMAGE019
Line segment be
Figure 48789DEST_PATH_IMAGE020
, Central point be labeled as , then The hand-written crucial point set of stroke be ( ,
Figure 261202DEST_PATH_IMAGE018
,
Figure 462376DEST_PATH_IMAGE016
,
Figure 858854DEST_PATH_IMAGE021
,
Figure 436466DEST_PATH_IMAGE022
,
Figure 969209DEST_PATH_IMAGE015
);
D2: the first stroke of a Chinese character point with parts E is a true origin, the
Figure 341285DEST_PATH_IMAGE002
The standard key point of stroke With hand-written key point
Figure 331993DEST_PATH_IMAGE024
Coordinate figure subtract each other, form vector
Figure 47139DEST_PATH_IMAGE025
, j
Figure 340848DEST_PATH_IMAGE026
(0,01,1, i1, i+1 ... e), of the parts E of Chinese character F
Figure 961186DEST_PATH_IMAGE002
Stroke forms the stroke vectors collection
Figure 365753DEST_PATH_IMAGE027
;
D3: each pen is repeated above operation, obtains the proper vector of all strokes of writing Chinese characters, obtain Chinese character F parts E vector set for [
Figure 122357DEST_PATH_IMAGE028
,
Figure 849617DEST_PATH_IMAGE029
...,
Figure 691671DEST_PATH_IMAGE030
];
D4: all standard Chinese characters are all carried out top 3 steps operation, be stored in the parts difference vector storehouse, form parts difference vector storehouse.
Wherein, the standard Hanzi component adds after the coordinate difference vector set in the parts generating apparatus, adopts method of interpolation to obtain the intermediate point of line segment of n stroke of the parts E of Chinese character F, and then obtains all stroke tracks of n stroke; Every of parts E to Chinese character F adopts method of interpolation to obtain intermediate point, thereby obtains the handwriting tracks of the whole parts E of Chinese character F, finishes the generation of hand-written parts.
Wherein, method of interpolation is specially the Bei Saier curve method.
Wherein, also comprise standard Chinese character storehouse, individual character character library, the standard Chinese character storehouse is used for the storage standards Chinese character; The synthetic handwritten Chinese character of Chinese character synthesizer is stored in the individual character character library.
Beneficial effect of the present invention is: the handwritten Chinese character synthetic method based on difference vector generation parts, at first read the standard Chinese character part library, and obtain the parts of standard Chinese character and form and image of component; Fetch unit difference vector storehouse then obtains the difference vector set of the coordinate between standard Chinese character parts and the hand-written parts, and the standard Chinese character parts add coordinate difference vector set, generate hand-written parts; Last according to the parts of the standard Chinese character of storing in the standard Chinese character part library and the feature between the parts, the hand-written parts that combination has generated, synthetic handwritten Chinese character, the present invention can be under the prerequisite of gathering the small number of users hand-written script, automatically synthetic handwritten word, acquisition cost is low.
Description of drawings
Fig. 1 is the schematic diagram of embodiments of the invention 1;
Fig. 2 is the schematic diagram of embodiments of the invention 2.
Embodiment
The present invention is further illustrated below in conjunction with accompanying drawing.
Embodiment 1
Present embodiment provides the handwritten Chinese character synthetic method that generates parts based on the difference vector as shown in Figure 1, at first reads the standard Chinese character part library, obtains the parts of standard Chinese character and forms and image of component; Fetch unit difference vector storehouse then obtains the difference vector set of the coordinate between standard Chinese character parts and the hand-written parts, and the standard Chinese character parts add coordinate difference vector set, generate hand-written parts; Last according to the parts of the standard Chinese character of storing in the standard Chinese character part library and the feature between the parts, the hand-written parts that combination has generated, synthetic handwritten Chinese character, the present invention can be under the prerequisite of gathering the small number of users hand-written script, automatically synthetic handwritten word, acquisition cost is low.
The present invention can dynamically generate the difference vector set of parts in fetch unit difference vector storehouse, also can have cured in parts difference vector storehouse by the basic element of character difference vector set of all Chinese characters before reading.
The parts difference vector set formation method of present embodiment is:
D1: in the standard Chinese character part library the of the parts E of mark Chinese character F
Figure 899929DEST_PATH_IMAGE001
The key point of stroke,
Figure 776618DEST_PATH_IMAGE002
The starting point of stroke is labeled as and is key point
Figure 412130DEST_PATH_IMAGE003
, turning point is labeled as key point
Figure 741480DEST_PATH_IMAGE004
, turning point comprises stroke
Figure 753430DEST_PATH_IMAGE001
Terminating point, terminating point is labeled as key point , i=1,2,3,,, e-1, adjacent two key points are one section, establish
Figure 293968DEST_PATH_IMAGE003
Arrive
Figure 110615DEST_PATH_IMAGE006
Line segment be ,
Figure 246378DEST_PATH_IMAGE007
Mid point be labeled as
Figure 489272DEST_PATH_IMAGE008
Figure 606263DEST_PATH_IMAGE004
Arrive
Figure 943704DEST_PATH_IMAGE009
Line segment be
Figure 397294DEST_PATH_IMAGE010
,
Figure 794778DEST_PATH_IMAGE010
Central point be labeled as
Figure 336748DEST_PATH_IMAGE011
, then
Figure 477880DEST_PATH_IMAGE002
The crucial point set of stroke standard be (
Figure 788907DEST_PATH_IMAGE003
,
Figure 622870DEST_PATH_IMAGE008
,
Figure 386558DEST_PATH_IMAGE006
,
Figure 331380DEST_PATH_IMAGE011
,
Figure 511562DEST_PATH_IMAGE012
, );
In the handwritten Chinese character part library the of the parts E of mark Chinese character F The key point of stroke, the
Figure 250345DEST_PATH_IMAGE001
The starting point of stroke is labeled as key point
Figure 535964DEST_PATH_IMAGE013
, turning point is labeled as key point
Figure 711730DEST_PATH_IMAGE014
, turning point comprises
Figure 450010DEST_PATH_IMAGE002
The terminating point of stroke, terminating point is labeled as key point
Figure 736635DEST_PATH_IMAGE015
, i=1,2,3,,, e, adjacent two key points are one section, establish
Figure 608252DEST_PATH_IMAGE013
Arrive
Figure 954919DEST_PATH_IMAGE016
Line segment be
Figure 180496DEST_PATH_IMAGE017
, Mid point be labeled as
Figure 265443DEST_PATH_IMAGE018
Figure 330482DEST_PATH_IMAGE014
Arrive
Figure 292622DEST_PATH_IMAGE019
Line segment be ,
Figure 38697DEST_PATH_IMAGE020
Central point be labeled as
Figure 212320DEST_PATH_IMAGE021
, then
Figure 661756DEST_PATH_IMAGE002
The hand-written crucial point set of stroke be (
Figure 844607DEST_PATH_IMAGE013
,
Figure 797520DEST_PATH_IMAGE018
, ,
Figure 78776DEST_PATH_IMAGE021
,
Figure 62388DEST_PATH_IMAGE022
,
Figure 135387DEST_PATH_IMAGE015
);
D2: the first stroke of a Chinese character point with parts E is a true origin, and the lower-left is being for just,
Figure 916392DEST_PATH_IMAGE002
The standard key point of stroke
Figure 74841DEST_PATH_IMAGE023
With hand-written key point
Figure 599494DEST_PATH_IMAGE024
Coordinate figure subtract each other, form vector
Figure 526999DEST_PATH_IMAGE025
, j (0,01,1, i1, i+1 ... e), of the parts E of Chinese character F
Figure 124651DEST_PATH_IMAGE002
Stroke forms the stroke vectors collection
Figure 178627DEST_PATH_IMAGE027
;
D3: each pen is repeated above operation, obtains the proper vector of all strokes of writing Chinese characters, obtain Chinese character F parts E vector set for [
Figure 226217DEST_PATH_IMAGE028
, ..., ];
D4: all standard Chinese characters are all carried out top 3 steps operation, be stored in the parts difference vector storehouse, form parts difference vector storehouse.
Embodiment 2
As shown in Figure 2, present embodiment is in difference from Example 1, reads the standard Chinese character part library and removes query criteria Chinese character in the standard Chinese character storehouse before, judges whether this standard Chinese character is included in the standard Chinese character storehouse.
The standard Chinese character parts of present embodiment add coordinate difference vector set, generate in the step of hand-written parts, the standard Chinese character parts add after the coordinate difference vector set, adopt method of interpolation to obtain the intermediate point of line segment of n stroke of the parts E of Chinese character F, and then obtain all stroke tracks of n stroke; Every of parts E to Chinese character F adopts method of interpolation to obtain intermediate point, thereby obtains the handwriting tracks of the whole parts E of Chinese character F, finishes the generation of hand-written parts.
Present embodiment can be stored in the individual character character library with synthetic handwritten Chinese character at last.
With Chinese character " Wu " is example: at first read standard Chinese character " Wu " from java standard library, reading the parts of " Wu " word in the standard Chinese character part library forms and image of component, find in the fetch unit difference vector storehouse then parts " mouth " and " my god " vector set, find " mouth " and " my god " vector set after, with " mouth " and " my god " standard Chinese character parts coordinate add suitable for reading " and " my god " the vector set addition obtain " mouth " and " my god " the handwriting tracks point of corresponding point; use method of interpolation; obtain parts " mouth " and " day " complete curve; and then generation " mouth " and " my god " hand-written parts; query criteria Hanzi component storehouse at last; the parts " mouth " of acquisition " Wu " word and " my god " be upper and lower relation, the Chinese character synthesizer synthesizes handwritten form " Wu ", and synthetic handwritten form " Wu " is stored in the individual character character library.
Embodiment 3
As shown in Figure 1 and Figure 2, present embodiment provides a kind of method according to embodiment 1 or embodiment 2 to generate the handwritten Chinese character synthesizer of parts based on the difference vector, comprises standard Chinese character part library, parts difference vector storehouse, parts generating apparatus, Chinese character synthesizer; The standard Chinese character part library is used for, and the parts of storage standards Chinese character are formed and image of component, the parts of standard Chinese character and the feature between the parts; Parts difference vector storehouse is used for the difference vector set of coordinate and the coordinate of the parts of corresponding handwritten Chinese character of the parts of storage standards Chinese character; The parts generating apparatus is used for fetch unit difference vector storehouse, and the standard Chinese character parts are added coordinate difference vector set, generates hand-written parts; The Chinese character synthesizer, according to the parts of the standard Chinese character of storing in the standard Chinese character part library and the feature between the parts, the hand-written parts that combination has generated, synthetic handwritten Chinese character.
The parts difference vector storehouse of present embodiment forms concrete steps:
D1: in the standard Chinese character part library the of the parts E of mark Chinese character F
Figure 348522DEST_PATH_IMAGE001
The key point of stroke,
Figure 63668DEST_PATH_IMAGE002
The starting point of stroke is labeled as and is key point , turning point is labeled as key point
Figure 709206DEST_PATH_IMAGE004
, turning point comprises stroke
Figure 628620DEST_PATH_IMAGE001
Terminating point, terminating point is labeled as key point
Figure 135956DEST_PATH_IMAGE005
, i=1,2,3,,, e-1, adjacent two key points are one section, establish
Figure 849834DEST_PATH_IMAGE003
Arrive
Figure 708200DEST_PATH_IMAGE006
Line segment be
Figure 165726DEST_PATH_IMAGE007
, Mid point be labeled as
Figure 677927DEST_PATH_IMAGE008
Figure 760939DEST_PATH_IMAGE004
Arrive
Figure 22156DEST_PATH_IMAGE009
Line segment be
Figure 238505DEST_PATH_IMAGE010
, Central point be labeled as
Figure 127144DEST_PATH_IMAGE011
, then The crucial point set of stroke standard be (
Figure 262907DEST_PATH_IMAGE003
,
Figure 755068DEST_PATH_IMAGE008
,
Figure 541234DEST_PATH_IMAGE006
,
Figure 957303DEST_PATH_IMAGE011
, , );
In the handwritten Chinese character part library the of the parts E of mark Chinese character F
Figure 602545DEST_PATH_IMAGE002
The key point of stroke, the
Figure 494409DEST_PATH_IMAGE001
The starting point of stroke is labeled as key point
Figure 54703DEST_PATH_IMAGE013
, turning point is labeled as key point
Figure 388469DEST_PATH_IMAGE014
, turning point comprises The terminating point of stroke, terminating point is labeled as key point
Figure 362558DEST_PATH_IMAGE015
, i=1,2,3,,, e, adjacent two key points are one section, establish
Figure 777359DEST_PATH_IMAGE013
Arrive Line segment be
Figure 33208DEST_PATH_IMAGE017
,
Figure 266874DEST_PATH_IMAGE017
Mid point be labeled as
Figure 801761DEST_PATH_IMAGE018
Figure 459751DEST_PATH_IMAGE014
Arrive Line segment be
Figure 484655DEST_PATH_IMAGE020
,
Figure 874048DEST_PATH_IMAGE020
Central point be labeled as
Figure 971449DEST_PATH_IMAGE021
, then
Figure 446292DEST_PATH_IMAGE002
The hand-written crucial point set of stroke be (
Figure 21761DEST_PATH_IMAGE013
, ,
Figure 536892DEST_PATH_IMAGE016
,
Figure 499032DEST_PATH_IMAGE021
,
Figure 940508DEST_PATH_IMAGE022
,
Figure 789647DEST_PATH_IMAGE015
);
D2: the first stroke of a Chinese character point with parts E is a true origin, and the lower-left is being for just,
Figure 478117DEST_PATH_IMAGE002
The standard key point of stroke
Figure 678285DEST_PATH_IMAGE023
With hand-written key point
Figure 844825DEST_PATH_IMAGE024
Coordinate figure subtract each other, form vector , j
Figure 670491DEST_PATH_IMAGE026
(0,01,1, i1, i+1 ... e), of the parts E of Chinese character F Stroke forms the stroke vectors collection
Figure 328185DEST_PATH_IMAGE027
;
D3: each pen is repeated above operation, obtains the proper vector of all strokes of writing Chinese characters, obtain Chinese character F parts E vector set for [
Figure 151916DEST_PATH_IMAGE028
,
Figure 182189DEST_PATH_IMAGE029
...,
Figure 91370DEST_PATH_IMAGE030
];
D4: all standard Chinese characters are all carried out top 3 steps operation, be stored in the parts difference vector storehouse, form parts difference vector storehouse.
The standard Hanzi component adds after the coordinate difference vector set in the parts generating apparatus of present embodiment, adopts method of interpolation to obtain the intermediate point of line segment of n stroke of the parts E of Chinese character F, and then obtains all stroke tracks of n stroke; Every of parts E to Chinese character F adopts method of interpolation to obtain intermediate point, thereby obtains the handwriting tracks of the whole parts E of Chinese character F, finishes the generation of hand-written parts.
The method of interpolation of present embodiment is specially the Bei Saier curve method.
Present embodiment also comprises standard Chinese character storehouse, individual character character library, and the standard Chinese character storehouse is used for the storage standards Chinese character; The synthetic handwritten Chinese character of Chinese character synthesizer is stored in the individual character character library.
With Chinese character " Wu " is example: at first read standard Chinese character " Wu " from java standard library, reading the parts of " Wu " word in the standard Chinese character part library forms and image of component, find in the fetch unit difference vector storehouse then parts " mouth " and " my god " vector set, find " mouth " and " my god " vector set after, with " mouth " and " my god " standard Chinese character parts coordinate add suitable for reading " and " my god " the vector set addition obtain " mouth " and " my god " the handwriting tracks point of corresponding point; use method of interpolation; obtain parts " mouth " and " day " complete curve; and then generation " mouth " and " my god " hand-written parts; query criteria Hanzi component storehouse at last; the parts " mouth " of acquisition " Wu " word and " my god " be upper and lower relation, the Chinese character synthesizer synthesizes handwritten form " Wu ".
" parts " mentioned in of the present invention can be understood as " radicals by which characters are arranged in traditional Chinese dictionaries " of Chinese character.
Should be noted that at last; above embodiment is only in order to illustrate technical scheme of the present invention; but not limiting the scope of the invention; although the present invention has been done to explain with reference to preferred embodiment; those of ordinary skill in the art is to be understood that; can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the essence and the scope of technical solution of the present invention.

Claims (10)

1. generate the handwritten Chinese character synthetic method of parts based on the difference vector, it is characterized in that: may further comprise the steps:
A: read the standard Chinese character part library, obtain the parts of standard Chinese character and form and image of component;
B: fetch unit difference vector storehouse, the difference vector set of the coordinate between acquisition standard Chinese character parts and the hand-written parts, the standard Chinese character parts add coordinate difference vector set, generate hand-written parts;
C: according to the parts of the standard Chinese character of storing in the standard Chinese character part library and the feature between the parts, the hand-written parts that combination has generated, synthetic handwritten Chinese character.
2. the handwritten Chinese character synthetic method based on difference vector generation parts according to claim 1, it is characterized in that: parts difference vector storehouse formation method is:
D1: the parts E of mark Chinese character F the in the standard Chinese character part library The key point of stroke, The starting point of stroke is labeled as key point
Figure 382179DEST_PATH_IMAGE003
, turning point is labeled as key point
Figure 95051DEST_PATH_IMAGE004
, turning point comprises stroke Terminating point, terminating point is labeled as key point
Figure 835267DEST_PATH_IMAGE005
, i=1,2,3,,, e-1, adjacent two key points are one section, establish
Figure 258158DEST_PATH_IMAGE003
Arrive Line segment be
Figure 890445DEST_PATH_IMAGE007
,
Figure 594089DEST_PATH_IMAGE007
Mid point be labeled as
Figure 453461DEST_PATH_IMAGE008
Figure 875346DEST_PATH_IMAGE004
Arrive
Figure 111156DEST_PATH_IMAGE009
Line segment be
Figure 937816DEST_PATH_IMAGE010
, Central point be labeled as
Figure 877270DEST_PATH_IMAGE011
, then
Figure 651191DEST_PATH_IMAGE002
The crucial point set of stroke standard be (
Figure 329428DEST_PATH_IMAGE003
,
Figure 530602DEST_PATH_IMAGE008
,
Figure 927080DEST_PATH_IMAGE006
,
Figure 239112DEST_PATH_IMAGE011
,
Figure 34506DEST_PATH_IMAGE012
,
Figure 219630DEST_PATH_IMAGE005
);
In the handwritten Chinese character part library the of the parts E of mark Chinese character F The key point of stroke, the The starting point of stroke is labeled as key point
Figure 121224DEST_PATH_IMAGE013
, turning point is labeled as key point
Figure 414934DEST_PATH_IMAGE014
, turning point comprises
Figure 769692DEST_PATH_IMAGE002
The terminating point of stroke, terminating point is labeled as key point , i=1,2,3,,, e, adjacent two key points are one section, establish
Figure 187653DEST_PATH_IMAGE013
Arrive
Figure 652263DEST_PATH_IMAGE016
Line segment be
Figure 759897DEST_PATH_IMAGE017
,
Figure 968155DEST_PATH_IMAGE017
Mid point be labeled as
Figure 579265DEST_PATH_IMAGE018
Figure 480356DEST_PATH_IMAGE014
Arrive
Figure 619826DEST_PATH_IMAGE019
Line segment be
Figure 881043DEST_PATH_IMAGE020
,
Figure 97392DEST_PATH_IMAGE020
Central point be labeled as
Figure 418652DEST_PATH_IMAGE021
, then
Figure 986030DEST_PATH_IMAGE002
The hand-written crucial point set of stroke be (
Figure 785359DEST_PATH_IMAGE013
,
Figure 121794DEST_PATH_IMAGE018
,
Figure 613955DEST_PATH_IMAGE016
,
Figure 468297DEST_PATH_IMAGE021
,
Figure 822049DEST_PATH_IMAGE022
,
Figure 527837DEST_PATH_IMAGE015
);
D2: the first stroke of a Chinese character point with parts E is a true origin, the
Figure 676053DEST_PATH_IMAGE002
The standard key point of stroke
Figure 280340DEST_PATH_IMAGE023
With hand-written key point
Figure 421472DEST_PATH_IMAGE024
Coordinate figure subtract each other, form vector
Figure 729569DEST_PATH_IMAGE025
, j
Figure 297953DEST_PATH_IMAGE026
(0,01,1, i1, i+1 ... e), of the parts E of Chinese character F
Figure 327220DEST_PATH_IMAGE002
Stroke forms the stroke vectors collection
Figure 272043DEST_PATH_IMAGE027
;
D3: each pen is repeated above operation, obtains the proper vector of all strokes of the parts E of writing Chinese characters F, obtain Chinese character F parts E vector set for [
Figure 437576DEST_PATH_IMAGE028
,
Figure 442441DEST_PATH_IMAGE029
...,
Figure 693425DEST_PATH_IMAGE030
];
D4: all standard Chinese characters are all carried out top 3 steps operation, be stored in the parts difference vector storehouse, form parts difference vector storehouse.
3. the handwritten Chinese character synthetic method that generates parts based on the difference vector according to claim 2, it is characterized in that: among the step B, the standard Chinese character parts add after the coordinate difference vector set, adopt method of interpolation to obtain the intermediate point of line segment of n stroke of the parts E of Chinese character F, and then obtain all stroke tracks of n stroke; Every of parts E to Chinese character F adopts method of interpolation to obtain intermediate point, thereby obtains the handwriting tracks of the whole parts E of Chinese character F, finishes the generation of hand-written parts.
4. the handwritten Chinese character synthetic method based on difference vector generation parts according to claim 3, it is characterized in that: method of interpolation is specially the Bei Saier curve method.
5. according to any described handwritten Chinese character synthetic method that generates parts based on the difference vector of claim 1-4, it is characterized in that: also comprise before the steps A: query criteria Chinese character in the standard Chinese character storehouse, judge whether this standard Chinese character is included in the standard Chinese character storehouse; Also comprise after the step C: synthetic handwritten Chinese character is stored in the individual character character library.
6. one kind according to claim 1ly generates the device of the synthetic handwritten Chinese character of handwritten Chinese character synthetic method of parts based on the difference vector, it is characterized in that: comprise standard Chinese character part library, parts difference vector storehouse, parts generating apparatus, Chinese character synthesizer;
The standard Chinese character part library is used for the parts of storage standards Chinese character and forms and image of component the parts of standard Chinese character and the feature between the parts;
Parts difference vector storehouse is used for the difference vector set of coordinate and the coordinate of the parts of corresponding handwritten Chinese character of the parts of storage standards Chinese character;
The parts generating apparatus is used for fetch unit difference vector storehouse, and the standard Chinese character parts are added coordinate difference vector set, generates hand-written parts;
The Chinese character synthesizer, according to the parts of the standard Chinese character of storing in the standard Chinese character part library and the feature between the parts, the hand-written parts that combination has generated, synthetic handwritten Chinese character.
7. the handwritten Chinese character synthesizer based on difference vector generation parts according to claim 6 is characterized in that: parts difference vector storehouse forms concrete steps and is:
D1: in the standard Chinese character part library the of the parts E of mark Chinese character F
Figure 176359DEST_PATH_IMAGE001
The key point of stroke,
Figure 476626DEST_PATH_IMAGE002
The starting point of stroke is labeled as and is key point
Figure 386814DEST_PATH_IMAGE003
, turning point is labeled as key point
Figure 125094DEST_PATH_IMAGE004
, turning point comprises stroke
Figure 411718DEST_PATH_IMAGE001
Terminating point, terminating point is labeled as key point
Figure 551844DEST_PATH_IMAGE005
, i=1,2,3,,, e-1, adjacent two key points are one section, establish Arrive
Figure 124088DEST_PATH_IMAGE006
Line segment be
Figure 948824DEST_PATH_IMAGE007
,
Figure 940526DEST_PATH_IMAGE007
Mid point be labeled as
Figure 458095DEST_PATH_IMAGE008
Figure 170968DEST_PATH_IMAGE004
Arrive
Figure 799395DEST_PATH_IMAGE009
Line segment be ,
Figure 337004DEST_PATH_IMAGE010
Central point be labeled as , then
Figure 703711DEST_PATH_IMAGE002
The crucial point set of stroke standard be (
Figure 675865DEST_PATH_IMAGE003
,
Figure 535237DEST_PATH_IMAGE008
,
Figure 957122DEST_PATH_IMAGE006
,
Figure 192931DEST_PATH_IMAGE011
,
Figure 16662DEST_PATH_IMAGE012
,
Figure 46935DEST_PATH_IMAGE005
);
In the handwritten Chinese character part library the of the parts E of mark Chinese character F
Figure 956116DEST_PATH_IMAGE002
The key point of stroke, the
Figure 464458DEST_PATH_IMAGE001
The starting point of stroke is labeled as key point
Figure 405344DEST_PATH_IMAGE013
, turning point is labeled as key point
Figure 606519DEST_PATH_IMAGE014
, turning point comprises
Figure 2996DEST_PATH_IMAGE002
The terminating point of stroke, terminating point is labeled as key point
Figure 315029DEST_PATH_IMAGE015
, i=1,2,3,,, e, adjacent two key points are one section, establish
Figure 113352DEST_PATH_IMAGE013
Arrive
Figure 485427DEST_PATH_IMAGE016
Line segment be
Figure 369201DEST_PATH_IMAGE017
,
Figure 484924DEST_PATH_IMAGE017
Mid point be labeled as
Figure 128964DEST_PATH_IMAGE018
Figure 671941DEST_PATH_IMAGE014
Arrive Line segment be
Figure 696846DEST_PATH_IMAGE020
,
Figure 204182DEST_PATH_IMAGE020
Central point be labeled as
Figure 918060DEST_PATH_IMAGE021
, then The hand-written crucial point set of stroke be (
Figure 44071DEST_PATH_IMAGE013
, , , , ,
Figure 363188DEST_PATH_IMAGE015
);
D2: the first stroke of a Chinese character point with parts E is a true origin, the
Figure 435181DEST_PATH_IMAGE002
The standard key point of stroke
Figure 986248DEST_PATH_IMAGE023
With hand-written key point
Figure 804818DEST_PATH_IMAGE024
Coordinate figure subtract each other, form vector , j (0,01,1, i1, i+1 ... e), of the parts E of Chinese character F
Figure 671777DEST_PATH_IMAGE002
Stroke forms the stroke vectors collection
Figure 25529DEST_PATH_IMAGE027
;
D3: each pen is repeated above operation, obtains the proper vector of all strokes of writing Chinese characters, obtain Chinese character F parts E vector set for [
Figure 465738DEST_PATH_IMAGE028
,
Figure 879532DEST_PATH_IMAGE029
...,
Figure 405192DEST_PATH_IMAGE030
];
D4: all standard Chinese characters are all carried out top 3 steps operation, be stored in the parts difference vector storehouse, form parts difference vector storehouse.
8. the handwritten Chinese character synthesizer that generates parts based on the difference vector according to claim 7, it is characterized in that: the standard Hanzi component adds after the coordinate difference vector set in the parts generating apparatus, adopt method of interpolation to obtain the intermediate point of line segment of n stroke of the parts E of Chinese character F, and then obtain all stroke tracks of n stroke; Every of parts E to Chinese character F adopts method of interpolation to obtain intermediate point, thereby obtains the handwriting tracks of the whole parts E of Chinese character F, finishes the generation of hand-written parts.
9. the handwritten Chinese character synthesizer based on difference vector generation parts according to claim 8, it is characterized in that: method of interpolation is specially the Bei Saier curve method.
10. according to any described handwritten Chinese character synthesizer based on difference vector generation parts of claim 6-9, it is characterized in that: also comprise standard Chinese character storehouse, individual character character library, the standard Chinese character storehouse is used for the storage standards Chinese character; The synthetic handwritten Chinese character of Chinese character synthesizer is stored in the individual character character library.
CN 201010582636 2010-12-10 2010-12-10 Method and device for synthesizing handwritten Chinese characters based on differential vector generation component Pending CN102054172A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010582636 CN102054172A (en) 2010-12-10 2010-12-10 Method and device for synthesizing handwritten Chinese characters based on differential vector generation component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010582636 CN102054172A (en) 2010-12-10 2010-12-10 Method and device for synthesizing handwritten Chinese characters based on differential vector generation component

Publications (1)

Publication Number Publication Date
CN102054172A true CN102054172A (en) 2011-05-11

Family

ID=43958471

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010582636 Pending CN102054172A (en) 2010-12-10 2010-12-10 Method and device for synthesizing handwritten Chinese characters based on differential vector generation component

Country Status (1)

Country Link
CN (1) CN102054172A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599180A (en) * 2009-03-05 2009-12-09 浙江大学 Computer calligraphy based on the handwriting style imitation generates method automatically
CN101620735A (en) * 2009-08-07 2010-01-06 王伦 Method for generating individualized art font library
CN101639942A (en) * 2009-08-25 2010-02-03 华南理工大学 Beautifying method used for handwritten Chinese character
CN101853313A (en) * 2010-07-01 2010-10-06 无锡骏聿科技有限公司 Handwriting font object library generating method based on font categorization
CN101866417A (en) * 2010-06-18 2010-10-20 西安电子科技大学 Method for identifying handwritten Uigur characters

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101599180A (en) * 2009-03-05 2009-12-09 浙江大学 Computer calligraphy based on the handwriting style imitation generates method automatically
CN101620735A (en) * 2009-08-07 2010-01-06 王伦 Method for generating individualized art font library
CN101639942A (en) * 2009-08-25 2010-02-03 华南理工大学 Beautifying method used for handwritten Chinese character
CN101866417A (en) * 2010-06-18 2010-10-20 西安电子科技大学 Method for identifying handwritten Uigur characters
CN101853313A (en) * 2010-07-01 2010-10-06 无锡骏聿科技有限公司 Handwriting font object library generating method based on font categorization

Similar Documents

Publication Publication Date Title
CN1024050C (en) Method and apparatus for encoding and recording Chinese characters
CN101140617A (en) Electronic equipments and text inputting method
Bansal et al. On how to describe shapes of Devanagari characters and use them for recognition
CN109784146A (en) A kind of font type recognition methods, electronic equipment, storage medium
CN102063620A (en) Handwriting identification method, system and terminal
CN101339703A (en) Character calligraph exercising method based on computer
CN102419645A (en) Method and device for inputting Chinese characters in combined mode and palm terminal
CN111695518B (en) Method and device for labeling structured document information and electronic equipment
CN104572683A (en) Word stroke animation processing method and device
US20180082105A1 (en) Digitized handwriting sample ingestion systems and methods
Zhou et al. HIT-OR3C: an opening recognition corpus for Chinese characters
CN108961361B (en) Method and system for generating special effect text image and computer equipment
CN102929394A (en) Braille input method based on gesture recognition
CN103914503A (en) System and method for generating personalized handwriting font
CN1318786A (en) Intensive Chinese and English keyboard capable of being displayed on screen
JP2015148947A (en) information processing system, information processing method, and program
CN103268326A (en) Personalized cross-language retrieval method and device
CN107633259A (en) A kind of cross-module state learning method represented based on sparse dictionary
CN102054172A (en) Method and device for synthesizing handwritten Chinese characters based on differential vector generation component
Bhaskarabhatla et al. Experiences in Collection of Handwriting Data for Online Handwriting Recognition in Indic Scripts.
Hu et al. Multimedia analysis and access of ancient maya epigraphy: Tools to support scholars on Maya hieroglyphics
CN112256168A (en) Method and device for electronizing handwritten content, electronic equipment and storage medium
CN101000722A (en) Method for realizing Chinese character write dynamic and electronic trace in black in over characters printed in red using vector character
Ouali et al. A novel method for arabic text detection with interactive visualization
Agrawal et al. Data collection for handwriting corpus creation in Indic scripts

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110511