CN110175539A - A kind of text creation method, device, terminal device and readable storage medium storing program for executing - Google Patents
A kind of text creation method, device, terminal device and readable storage medium storing program for executing Download PDFInfo
- Publication number
- CN110175539A CN110175539A CN201910390400.0A CN201910390400A CN110175539A CN 110175539 A CN110175539 A CN 110175539A CN 201910390400 A CN201910390400 A CN 201910390400A CN 110175539 A CN110175539 A CN 110175539A
- Authority
- CN
- China
- Prior art keywords
- writing
- path
- text
- standard
- stroke
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/32—Digital ink
- G06V30/333—Preprocessing; Feature extraction
- G06V30/347—Sampling; Contour coding; Stroke extraction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V30/00—Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
- G06V30/10—Character recognition
- G06V30/28—Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet
- G06V30/287—Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet of Kanji, Hiragana or Katakana characters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Multimedia (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The invention discloses a kind of text creation method, device, terminal device and readable storage medium storing program for executing, method includes: the standard letter for obtaining text to be created, and standard letter is split by stroke writing, obtain each independent standard stroke of composition standard letter;According to the writing path of each standard stroke, text to be created is created;The foundation step in the writing path of standard stroke includes;The edge contour of standard stroke is obtained, and edge contour is divided into the first combinatorial path and the second combinatorial path;Node is established on the first combinatorial path, the second combinatorial path, obtains several first combined joints and several second combined joints;The first combined joint and the second combined joint are attached one by one, and extract the midpoint of each connecting line segment, obtains several writing nodes;According to each writing node, the writing path of standard stroke is obtained.By implementing the embodiment of the present invention, can be created that with the consistent solid text of mankind's hand-written script, and improve writing efficiency.
Description
Technical field
The present invention relates to computer application technology more particularly to a kind of text creation method, device, terminal device with
And readable storage medium storing program for executing.
Background technique
With the development of science and technology, intelligent robot is more and more extensive with field, also widely used in life
Intelligent robot can hold the robot that pen writes as the mankind, also ought to be a kind of robot required skill.
When robot is write by mechanical arm clamping lettering pen, such as write according to existing standard letter, it can only
It is carried out retouching side according to the external margin of all kinds of fonts, obtains the hollow character image for retouching side.But when people writes, font is real
The heart, be not the hollow character image for retouching side.By existing robot Writing method, the font finally obtained and the mankind's is hand-written
Body has bigger difference.
Summary of the invention
The embodiment of the present invention provides a kind of text creation method, device, terminal device and computer readable storage medium,
Can be created that with the consistent solid text of mankind's hand-written script, and improve writing efficiency.
One embodiment of the invention provides a kind of text creation method, comprising:
The standard letter of text to be created is obtained, and the standard letter is split by stroke writing, is formed
Each independent standard stroke of the standard letter;
According to the writing path of each standard stroke, the text to be created is created;
Wherein, the specific foundation step in the writing path of any one standard stroke includes:
It obtains the edge contour of a standard stroke, and is a little started writing with the standard stroke with starting writing for the standard stroke
The edge contour is divided into two sections of combinatorial paths, respectively the first combinatorial path and the second combinatorial path by point;
Establish node on first combinatorial path, the second combinatorial path respectively, obtain several first combined joints and
Several second combined joints;
It starts writing described in a little to a direction of starting writing, or starts writing a little along described to the direction started writing a little, one by one general
First combined joint and second combined joint are attached, and obtain several connecting line segments, and extract each connection
The midpoint of line segment obtains several writing nodes;
According to each writing node, the writing path of the standard stroke is obtained.
Further, the writing path according to each standard stroke creates the text to be created, specifically
Are as follows:
It is successively write by the stroke sequential write of the standard letter according to the writing path of each standard stroke
Every unicursal of the text to be created finally creates the text to be created.
Further, the edge contour for obtaining a standard stroke, specifically:
It is started writing with described a little for starting point, is started writing with described a little for terminal, according to the shape of the standard stroke, be divided to two sides
To since the starting point, until the terminal terminates, the shape along the standard stroke is described, and the edge wheel is obtained
It is wide.
It is further, described to establish node on first combinatorial path, the second combinatorial path respectively, specifically: with
It is described to start writing a little as path starting point, it is started writing with described a little for path termination, respectively in first combinatorial path, second group of combining
The node of identical quantity is established on diameter.
Further, the quantity of the node is set according to the size of the established image of the standard letter.
It is further, described that the writing path of the standard stroke is obtained according to each writing node, specifically:
It starts writing described in a little to a direction of starting writing, or start writing a little along described to the direction started writing a little, Jiang Gesuo
Writing node is stated, the writing path for obtaining the standard stroke is attached.
On the basis of the method for the present invention item embodiment, the present invention provides corresponding device item embodiments
One embodiment of the invention provides a kind of text creating device, including text obtains and split module and text creation
Module, the text creation module include that stroke edge acquisition and segmenting unit, node establish unit, write node acquiring unit
And writing unit;
Wherein, the text obtains and splits module, for obtaining the standard letter of text to be created, and presses stroke writing
The standard letter is split, each independent standard stroke for forming the standard letter is obtained;
The text creation module creates the text to be created for the writing path according to each standard stroke
Word;
The stroke edge obtains and segmenting unit, for obtaining the edge contour of a standard stroke, and with the standard
Starting writing for stroke is a little started writing a little with the standard stroke, and the edge contour is divided into two sections of combinatorial paths, and respectively the
One combinatorial path and the second combinatorial path;
The node establishes unit, for establishing node on first combinatorial path, the second combinatorial path respectively, obtains
Obtain several first combined joints and several second combined joints;
The writing node acquiring unit for starting writing a little along described to a direction of starting writing, or is started writing a little along described
To the direction started writing a little, first combined joint and second combined joint are attached one by one, obtained several
Connecting line segment, and the midpoint of each connecting line segment is extracted, obtain several writing nodes;
The writing unit, for obtaining the writing path of the standard stroke according to each writing node.
One embodiment of the invention provides a kind of text creation terminal device, including processor, memory and is stored in
In the memory and it is configured as the computer program executed by the processor, the processor executes the computer journey
Font creation method described in foregoing invention embodiment is realized when sequence.
One embodiment of the invention provides a kind of computer readable storage medium, and the computer readable storage medium includes
The computer program of storage, equipment where controlling the computer readable storage medium in computer program operation execute
Font creation method described in foregoing invention embodiment.
By implementing the embodiment of the present invention, have the following beneficial effects:
The present invention obtains the standard letter of text to be created first, then standard letter is split according to stroke, at this time
Standard letter has been split into independent standard stroke one by one, then in the writing path according to each standard stroke, carries out
It writes to be created that font to be created, and since the writing path of every unicursal is all a solid line segment, rather than one
The contour line of closure, therefore finally it is created that the text come, it is a kind of solid font.Compared with the existing technology, according to all kinds of
The external margin of font carries out retouching side, obtains for a hollow character image, and this solid font is more in line with the mankind
Text ways of writing, more gear to actual circumstances, on the other hand, the font for retouch side with the external margin according to all kinds of fonts is created
The mode of building is compared, and the writing path of every unicursal provided by the invention, path length is shorter, this make write when speed more
Fastly, writing efficiency is improved.
Detailed description of the invention
Fig. 1 is a kind of flow diagram for text creation method that one embodiment of the invention provides;
Fig. 2 is the wound in the writing path of any unicursal in a kind of text creation method that one embodiment of the invention provides
The flow diagram of construction method;
Fig. 3 is a kind of schematic diagram of a standard letter of text creation method that one embodiment of the invention provides.
Fig. 4 is to be carried out retouching side, the hollow text schematic diagram for retouching side of acquisition in the prior art according to font external margin;
Fig. 5 is a kind of standard stroke outline drawing for text creation method that one embodiment of the invention provides;
Fig. 6 is a kind of node schematic diagram for text creation method that one embodiment of the invention provides;
Fig. 7 is a kind of writing path signal of a text to be created of text creation method that one embodiment of the invention provides
Figure;
Fig. 8 is a kind of achievement of a text to be created of text creation method creation that an embodiment provides according to the present invention
Figure;
Fig. 9 is a kind of structural schematic diagram for text creating device that one embodiment of the invention provides.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
As shown in Figure 1, a kind of flow diagram for text creation method that one embodiment of the invention provides, comprising:
S101, the standard letter for obtaining text to be created, and standard letter is split by stroke writing, it is formed
Each independent standard stroke of standard letter.
S102, the writing path according to each standard stroke, create text to be created.
For step S101, in a preferred embodiment, standard letter can be, but not limited to, from the money on internet
Obtained in material or all kinds of copybooks, in principle for standard letter mentioned herein be the font with one fixed width, can be
Regular script, the Song typeface, rule book, black matrix, imitation Song-Dynasty-style typeface etc..
It is the standard letter of a Chinese character " ten " as shown in Figure 3, in one embodiment, is had by taking Chinese character " ten " as an example
The explanation of body, but it should be noted that standard letter is not limited to " ten " standard Chinese character mentioned herein " ten " is intended merely to more
Good explaination this programme, does not play the role of restriction.
When text to be created is Chinese character " ten ", the standard letter of Chinese character " ten " is obtained first, then according to writing " ten "
Stroke, standard letter " ten " is split, one horizontal (one) and one perpendicular (l) are split as.
For step S102, in a preferred embodiment, by the stroke sequential write of standard letter, according to each mark
The writing path of quasi- stroke successively writes every unicursal of text to be created, finally creates text to be created.Such as above-mentioned example,
The sequential write of standard letter " ten " is horizontal first to write one, then writes one and erect, then when creating text to be created, first according to standard
The writing path of stroke " cross " writes a cross, then presses the writing path of standard stroke " perpendicular ", writes one and erects, finally completes text to be created
The creation of word " ten ".
Certainly in another preferred embodiment, can not also be write according to the sequential write of stroke.It presses and appoints
The sequence of meaning writes every unicursal of text to be created, finally creates text to be created according to the writing path of each standard stroke
Word.Such as above-mentioned example can first write a cross, then write one and erect.
You need to add is that in an alternative embodiment, in the writing path according to each standard stroke, creation to
Before creating text, need to be with reference to base map, by each standard stroke after fractionation according to ginseng with the standard letter of text to be created
It examines and corresponds to the position of stroke on base map and be overlapped placement, when writing, write by the placement location of each standard stroke, from
And retaining the structure of primary standard font, there is deviation in the position of some stroke when avoiding writing.
It in a preferred embodiment, is to hold what pen was write by robot when writing text to be created.
The writing path for how obtaining each standard stroke is specifically described below:
As shown in Fig. 2, the creation method in the writing path of each standard stroke, includes the following steps:
Step S201, the edge contour of a standard stroke is obtained, and a little is mentioned with standard stroke with starting writing for standard stroke
Point, is divided into two sections of combinatorial paths, respectively the first combinatorial path and the second combinatorial path for edge contour.
Step S202, node is established on the first combinatorial path, the second combinatorial path respectively, obtains several first combination sections
Point and several second combined joints.
Step S203, it a little starts writing to a direction of starting writing, or edge a little to the direction started writing a little, one by one by the first combination along starting writing
Node and the second combined joint are attached, and obtain several connecting line segments, and extract the midpoint of each connecting line segment, obtain several books
Write node.
Step S204, according to each writing node, the writing path of standard stroke is obtained.
For step S201, firstly the need of obtain standard stroke edge contour, in a preferred embodiment, obtain
The edge contour of one standard stroke, specifically:
To start writing a little for starting point, to start writing a little for terminal, according to the shape of standard stroke, a point both direction is opened from starting point
Begin, until terminal terminates, the shape along standard stroke is described, and obtains edge contour.As shown in figure 5, being Chinese character " ten "
The edge contour figure of standard stroke, point A are starting writing point (starting point) for standard stroke " cross ", and point B is starting writing for standard stroke " cross "
Point (terminal), point C are starting writing point (starting point) for standard stroke " perpendicular ", and point D is starting writing point (terminal) for standard stroke " perpendicular ", by scheming
5 it is found that obtain standard stroke " cross " edge contour when, simultaneously along the both direction up and down of A point since point A, along standard
The shape of stroke " cross " carries out retouching line until B point terminates, and the profile of standard stroke " cross " has been divided into up and down by this time point A and point B
Two sections of combinatorial paths, and when obtaining standard stroke " perpendicular ", simultaneously along the left and right both direction of C point since point C, along mark
The shape of quasi- stroke " perpendicular " carries out retouching line until D point terminates, and standard stroke " perpendicular " has been divided into left and right ends by this time point C and point D
Combinatorial path.
It should be noted that the edge contour of standard stroke is not limited to obtain in fashion described above, for example, preferred at another
Embodiment in, to start writing a little for starting point, according to the shape of standard stroke, both direction can also be divided to start writing a little for terminal
From the off, until terminal terminates, the shape along standard stroke is described, and obtains edge contour.
In addition, then can directly utilize existing edge detecting technology in another optional embodiment, directly extract
Then the edge contour of standard stroke demarcates starting writing a little and start writing a little for standard stroke, by the edge contour of standard stroke point again
It is segmented into two sections of combinatorial paths.
For step S202, in a preferred embodiment, built on the first combinatorial path, the second combinatorial path respectively
Vertical node, specifically:
It is a little built on the first combinatorial path, the second combinatorial path for path starting point with starting writing a little for path termination with starting writing
Found the node of identical quantity.As shown in fig. 6, being provided with more on the edge contour of the standard stroke " perpendicular " of standard Chinese character " ten "
The node of a identical quantity.
In a preferred embodiment, the quantity of above-mentioned node is that the size of image is established according to standard letter, then
It is set according to a certain percentage, such as: in the font image of a 300*300px, may be set in respectively in the first combination
Path and the second combinatorial path respectively establish 30 nodes.
In another preferred embodiment, can also be with, to start writing a little for path termination, to start writing a little for path starting point,
Node is established on the first combinatorial path, the second combinatorial path respectively by preset interval distance.
For step S203, as shown in fig. 7, by the node on the two sections combinatorial path of standard stroke " cross ", i.e., on
Half section of combinatorial path node (the first combinatorial path node) and lower semisection combinatorial path node (the second combinatorial path node) are under
Pen point carries out the connection of two class nodes, to obtain several connections along a direction of starting writing, or along starting writing a little to the direction started writing a little
Line segment finally extracts the midpoint of every connecting line segment, obtains several writing nodes of standard stroke " cross ".It similarly will mark
Node on two sections of the left and right combinatorial path of quasi- stroke " perpendicular ", is attached, then obtains standard stroke " perpendicular " in the same manner
Several writing nodes.
It should be understood that the edge mentioned in text is started writing a little to a direction of starting writing, as the writing side along corresponding stroke
To, and edge is started writing a little to the direction started writing a little, the as opposite direction along the presentation direction of corresponding stroke.In actual operation, may be used
By arbitrarily choose it is one such in a manner of, the first combinatorial path node and the second combinatorial path node connect one to one.
For step S204, in a preferred embodiment according to each writing node, the writing road of standard stroke is obtained
Diameter, specifically:
It a little starts writing and is a little connected to the direction started writing a little successively by each writing node to a direction of starting writing, or edge along starting writing
Obtain standard stroke writing path.As shown in fig. 7, according to the above method, final available Chinese character ten, write path.
And in another preferred embodiment, according to each writing node, the writing path of standard stroke is obtained, specifically
Are as follows:
It a little starts writing and a little starts writing a little to the direction started writing a little successively by each writing node to a direction of starting writing, or edge along starting writing
The writing path for obtaining standard stroke is a little attached with starting writing.
And in another preferred embodiment, according to each writing node, the writing path of standard stroke is obtained, specifically
Are as follows:
It a little starts writing a little to a direction of starting writing, or edge to the direction started writing a little along starting writing, successively by each writing node, and starts writing
Point is attached the writing path for obtaining standard stroke.
And in another preferred embodiment, according to each writing node, the writing path of standard stroke is obtained, specifically
Are as follows:
It a little starts writing a little to a direction of starting writing, or edge to the direction started writing a little along starting writing, successively by each writing node, and starts writing
Point is attached the writing path for obtaining standard stroke.
It can get the writing path of standard stroke by above-mentioned various modes.
It is last as shown in Figure 4 and Figure 8, it is carried out retouching side in the prior art according to font external margin, the hollow of acquisition retouches side
Text and one embodiment of the invention provide a kind of text creation method creation a text to be created achievement, carry out
Compare it can be seen that, using this hair inventive embodiments provide text creation method create a text to be created, be more in line with people
The writing style of class, and total writing path is shorter, when holding pen writing, efficiency will be higher for such robot.
It should be noted that when creating each font to be created, can by step S201- step S204, method, i.e.,
When obtain font to be created each standard stroke writing path.
And in order to further increase writing efficiency, it in another preferred embodiment, can be by all basic of Chinese character
Stroke, the writing path of corresponding standard stroke are all stored in advance in the database, when creating text to be created, first by step
The way of rapid S101 after obtaining each standard stroke, directly in the database, searches the writing path of corresponding stroke, then by institute
There is the writing path of stroke, be sent to robot, pen is held by robot and is write.It does not need to repeat step S201- step again in this way
The operation of rapid S204, further improves the writing efficiency of robot.
On the basis of above method item embodiment of the present invention, corresponding method item embodiment is provided.
As shown in figure 9, one embodiment of the invention provides a kind of text creating device, comprising: obtain and tear open including text
Sub-module 910 and text creation module 920, text creation module include that stroke edge acquisition and segmenting unit 921, node are established
Unit 922 writes node acquiring unit 923 and writing unit 924;
Wherein, text obtains and splits module 910, for obtaining the standard letter of text to be created, and presses stroke writing
Standard letter is split, each independent standard stroke of composition standard letter is obtained;
Text creation module 920 creates text to be created for the writing path according to each standard stroke;
Stroke edge obtains and segmenting unit 921, for obtaining the edge contour of a standard stroke, and with standard stroke
It starts writing and a little starts writing a little with standard stroke, edge contour is divided into two sections of combinatorial paths, respectively the first combinatorial path and the
Two combinatorial paths;
Node establishes unit 922, for establishing node on the first combinatorial path, the second combinatorial path respectively, if obtaining
Dry first combined joint and several second combined joints;
Node acquiring unit 923 is write, for a little starting writing a little to a direction of starting writing, or edge to the side started writing a little along starting writing
To the first combined joint and the second combined joint are attached one by one, obtain several connecting line segments, and extracts each connecting line segment
Midpoint, obtain several writing nodes;
Writing unit 924, for obtaining the writing path of standard stroke according to each writing node.
It is understood that this embodiment is provided on the basis of the embodiment of above-mentioned all text creation methods
The embodiment of device item, it is to be understood that this embodiment provides a kind of text creating device, can be realized above-mentioned institute
There are all methods in the embodiment of the method item of text creation method.
On the basis of the method item embodiment of text creation method provided by the invention, another embodiment is provided.
Another embodiment of the present invention provides a kind of terminal device, including processor, memory and be stored in memory
In and be configured as the computer program executed by processor, processor realizes above-mentioned each text wound when executing computer program
Step in construction method embodiment, such as Fig. 1 and step shown in Fig. 2.
Terminal device herein can be the calculating such as desktop PC, notebook, palm PC and cloud server and set
It is standby.
Alleged processor can be central processing unit (Central Processing Unit, CPU), can also be it
His general processor, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor
Deng processor is text creating device/terminal device control centre, utilizes various interfaces and connection entire text creation
Device/terminal device various pieces.
Memory can be used for storing computer program, and processor is by operation or executes the computer being stored in memory
Program, and call the data being stored in memory.Memory can mainly include storing program area and storage data area,
In, storing program area can application program needed for storage program area, at least one function (such as sound-playing function, image
Playing function etc.) etc.;Storage data area, which can be stored, uses created data (such as audio data, phone directory according to mobile phone
Deng) etc..In addition, memory may include high-speed random access memory, it can also include nonvolatile memory, such as firmly
Disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital,
SD) block, flash card (Flash Card), at least one disk memory, flush memory device or other volatile solid-states
Part.
On the basis of the method item embodiment of text creation method provided by the invention, another embodiment is provided.
Another embodiment of the present invention provides a kind of computer readable storage medium, computer readable storage medium includes depositing
The computer program of storage, wherein equipment where control computer readable storage medium executes above-mentioned in computer program operation
All steps of text creation method embodiment.
Wherein, computer program includes computer program code, and computer program code can be source code form, object
Code form, executable file or certain intermediate forms etc..Computer-readable medium may include: that can carry computer program
Any entity or device of code, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, computer storage, read-only memory
(ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, electricity
Believe signal and software distribution medium etc..It should be noted that the content that computer-readable medium includes can be managed according to the administration of justice
Local legislation and the requirement of patent practice carry out increase and decrease appropriate, such as in certain jurisdictions, according to legislation and patent
Practice, computer-readable medium does not include electric carrier signal and telecommunication signal.
Have the following beneficial effects: that the present invention obtains the standard of text to be created first by implementing the embodiment of the present invention
Font, then standard letter is split according to stroke, standard letter, has been split into independent standard pen one by one at this time
It draws, then in the writing path according to each standard stroke, carries out writing to be created that font to be created, and due to each pen
The writing path of picture is all a solid line segment, rather than the contour line of a closure, therefore is finally created that the text come, is
A kind of solid font.Compared with the existing technology, it is carried out retouching side according to the external margin of all kinds of fonts, obtains a hollow text
For word image, this solid font is more in line with the text ways of writing of the mankind, more gears to actual circumstances, on the other hand, with
It is compared according to the font creation mode that the external margin of all kinds of fonts retouch side, the writing road of every unicursal provided by the invention
Diameter, path length is shorter, this makes the speed when writing faster, improve writing efficiency.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein being used as separate part description
Unit may or may not be physically separated, component shown as a unit may or may not be
Physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to the actual needs
Some or all of the modules therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention is implemented
In example attached drawing, the connection relationship between module indicates there is communication connection between them, specifically can be implemented as one or more
Communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, it can understand and real
It applies.
It is the preferred embodiment of the present invention above, it is noted that for those skilled in the art,
Various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as this hair
Bright protection scope.
Claims (9)
1. a kind of text creation method characterized by comprising
Obtain the standard letter of text to be created, and the standard letter split by stroke writing, formed described in
Each independent standard stroke of standard letter;
According to the writing path of each standard stroke, the text to be created is created;
Wherein, the specific foundation step in the writing path of any one standard stroke includes:
It obtains the edge contour of a standard stroke, and is a little started writing a little with the standard stroke with starting writing for the standard stroke,
The edge contour is divided into two sections of combinatorial paths, respectively the first combinatorial path and the second combinatorial path;
It establishes node on first combinatorial path, the second combinatorial path respectively, obtains several first combined joints and several
Second combined joint;
Start writing described in a little to a direction of starting writing, or start writing a little along described to the direction started writing a little, one by one will described in
First combined joint and second combined joint are attached, and obtain several connecting line segments, and extract each connecting line segment
Midpoint, obtain several writing nodes;
According to each writing node, the writing path of the standard stroke is obtained.
2. text creation method as described in claim 1, which is characterized in that the writing according to each standard stroke
Path creates the text to be created, specifically:
By the stroke sequential write of the standard letter, according to the writing path of each standard stroke, successively described in writing
Every unicursal of text to be created finally creates the text to be created.
3. text creation method as described in claim 1, which is characterized in that the edge wheel for obtaining a standard stroke
Exterior feature, specifically:
Started writing with described a little for starting point, started writing with described a little for terminal, according to the shape of the standard stroke, divide both direction from
The starting point starts, until the terminal terminates, the shape along the standard stroke is described, and the edge contour is obtained.
4. text creation method as described in claim 1, which is characterized in that described respectively in first combinatorial path,
Node is established on two combinatorial paths, specifically:
It is started writing with described a little for path starting point, is started writing with described a little for path termination, in first combinatorial path, the second combination
The node of identical quantity is established on path.
5. text creation method as claimed in claim 4, which is characterized in that the quantity of the node is according to the standard word
What the size of the established image of body was set.
6. text creation method as described in claim 1, which is characterized in that it is described according to each writing node, obtain institute
The writing path of standard stroke is stated, specifically:
It starts writing described in a little to a direction of starting writing, or start writing along described a little to the direction started writing a little, successively by each institute
Writing node is stated, the writing path for obtaining the standard stroke is attached.
7. a kind of text creating device, which is characterized in that module and text creation module, the text are obtained and split including text
Word creation module includes that stroke edge acquisition and segmenting unit, node establish unit, write node acquiring unit and writing unit;
Wherein, the text obtains and splits module, for obtaining the standard letter of text to be created, and by stroke writing to institute
It states standard letter to be split, obtains each independent standard stroke for forming the standard letter;
The text creation module creates the text to be created for the writing path according to each standard stroke;
The stroke edge obtains and segmenting unit, for obtaining the edge contour of a standard stroke, and with the standard stroke
Start writing and a little start writing a little with the standard stroke, the edge contour is divided into two sections of combinatorial paths, respectively first group
It is combined diameter and the second combinatorial path;
The node establishes unit, for establishing node on first combinatorial path, the second combinatorial path respectively, if obtaining
Dry first combined joint and several second combined joints;
The writing node acquiring unit for starting writing a little along described to a direction of starting writing, or is started writing a little along described to institute
The direction started writing a little is stated, first combined joint and second combined joint are attached one by one, obtain several connections
Line segment, and the midpoint of each connecting line segment is extracted, obtain several writing nodes;
The writing unit, for obtaining the writing path of the standard stroke according to each writing node.
8. a kind of text creates terminal device, which is characterized in that in the memory including processor, memory and storage
And it is configured as the computer program executed by the processor, the processor is realized when executing the computer program as weighed
Benefit requires font creation method described in any one of 1-6.
9. a kind of computer readable storage medium, which is characterized in that the computer readable storage medium includes the calculating of storage
Machine program, equipment where controlling the computer readable storage medium in computer program operation execute such as claim
Font creation method described in any one of 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910390400.0A CN110175539B (en) | 2019-05-10 | 2019-05-10 | Character creating method and device, terminal equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910390400.0A CN110175539B (en) | 2019-05-10 | 2019-05-10 | Character creating method and device, terminal equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110175539A true CN110175539A (en) | 2019-08-27 |
CN110175539B CN110175539B (en) | 2022-05-20 |
Family
ID=67690850
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910390400.0A Active CN110175539B (en) | 2019-05-10 | 2019-05-10 | Character creating method and device, terminal equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110175539B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111178019A (en) * | 2019-12-30 | 2020-05-19 | 深圳市越疆科技有限公司 | Robot character writing method, device and system based on voice control |
CN113436298A (en) * | 2021-07-05 | 2021-09-24 | 深圳软牛科技有限公司 | Method, device and related components for automatically generating Chinese character stroke order animation |
CN117930995A (en) * | 2024-03-22 | 2024-04-26 | 杭州海康威视数字技术股份有限公司 | Text drawing method and device |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1588350A (en) * | 2004-09-17 | 2005-03-02 | 华南理工大学 | Treating method and its use for dynamic Chinese character word library containing writing time sequence information |
CN102365656A (en) * | 2009-03-31 | 2012-02-29 | 三菱电机株式会社 | A method for generating a distance field of an object represented by stylized strokes |
CN103136769A (en) * | 2011-12-02 | 2013-06-05 | 北京三星通信技术研究有限公司 | Method and device of generation of writing style font of user |
CN106384094A (en) * | 2016-09-18 | 2017-02-08 | 北京大学 | Chinese word stock automatic generation method based on writing style modeling |
CN106503756A (en) * | 2016-10-18 | 2017-03-15 | 上海子墨国际文化传播有限公司 | Based on the method that image outline sets up Chinese character handwriting model |
CN106776948A (en) * | 2016-12-02 | 2017-05-31 | 云南师范大学 | Trajectory group feature line extraction method |
CN107025211A (en) * | 2017-05-04 | 2017-08-08 | 李鹰 | The imitation chi suspension control method and device of font analysis |
CN107196956A (en) * | 2017-06-15 | 2017-09-22 | 广州视源电子科技股份有限公司 | Handwriting data synchronization method and device, storage medium and terminal equipment |
CN107610200A (en) * | 2017-10-10 | 2018-01-19 | 南京师范大学 | A kind of character library rapid generation of feature based template |
CN109325483A (en) * | 2018-09-11 | 2019-02-12 | 北京语言大学 | The treating method and apparatus of internal short pen section |
-
2019
- 2019-05-10 CN CN201910390400.0A patent/CN110175539B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1588350A (en) * | 2004-09-17 | 2005-03-02 | 华南理工大学 | Treating method and its use for dynamic Chinese character word library containing writing time sequence information |
CN102365656A (en) * | 2009-03-31 | 2012-02-29 | 三菱电机株式会社 | A method for generating a distance field of an object represented by stylized strokes |
CN103136769A (en) * | 2011-12-02 | 2013-06-05 | 北京三星通信技术研究有限公司 | Method and device of generation of writing style font of user |
CN106384094A (en) * | 2016-09-18 | 2017-02-08 | 北京大学 | Chinese word stock automatic generation method based on writing style modeling |
CN106503756A (en) * | 2016-10-18 | 2017-03-15 | 上海子墨国际文化传播有限公司 | Based on the method that image outline sets up Chinese character handwriting model |
CN106776948A (en) * | 2016-12-02 | 2017-05-31 | 云南师范大学 | Trajectory group feature line extraction method |
CN107025211A (en) * | 2017-05-04 | 2017-08-08 | 李鹰 | The imitation chi suspension control method and device of font analysis |
CN107196956A (en) * | 2017-06-15 | 2017-09-22 | 广州视源电子科技股份有限公司 | Handwriting data synchronization method and device, storage medium and terminal equipment |
CN107610200A (en) * | 2017-10-10 | 2018-01-19 | 南京师范大学 | A kind of character library rapid generation of feature based template |
CN109325483A (en) * | 2018-09-11 | 2019-02-12 | 北京语言大学 | The treating method and apparatus of internal short pen section |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111178019A (en) * | 2019-12-30 | 2020-05-19 | 深圳市越疆科技有限公司 | Robot character writing method, device and system based on voice control |
CN113436298A (en) * | 2021-07-05 | 2021-09-24 | 深圳软牛科技有限公司 | Method, device and related components for automatically generating Chinese character stroke order animation |
CN113436298B (en) * | 2021-07-05 | 2023-09-19 | 深圳软牛科技有限公司 | Method and device for automatically generating Chinese character stroke order animation and related components thereof |
CN117930995A (en) * | 2024-03-22 | 2024-04-26 | 杭州海康威视数字技术股份有限公司 | Text drawing method and device |
CN117930995B (en) * | 2024-03-22 | 2024-07-02 | 杭州海康威视数字技术股份有限公司 | Text drawing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN110175539B (en) | 2022-05-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110175539A (en) | A kind of text creation method, device, terminal device and readable storage medium storing program for executing | |
CN110442710A (en) | A kind of short text semantic understanding of knowledge based map and accurate matching process and device | |
CN101944094A (en) | Webpage information extraction method and device thereof | |
US11288499B2 (en) | Interactive method for generating strokes with Chinese ink painting style and device thereof | |
CN102799639B (en) | File reading based on mobile terminal and system | |
CN105094775B (en) | Webpage generation method and device | |
CN108304762A (en) | A kind of human body attitude matching process and its equipment, storage medium, terminal | |
CN109979430A (en) | Robot story telling method and device, robot and storage medium | |
CN110956678B (en) | Font processing method and device | |
CN107832469A (en) | A kind of generation method and device of enterprise logo images | |
CN109491708A (en) | Document structure tree method, system, equipment and medium | |
CN109615671A (en) | A kind of character library sample automatic generation method, computer installation and readable storage medium storing program for executing | |
CN109739968A (en) | A kind of data processing method and device | |
CN101295251B (en) | Interface issuing method and device | |
CN110708423A (en) | Message content display method and device and storage medium | |
CN110362361A (en) | The method and device of documenting | |
CN109685417A (en) | It posts part information and determines method and device | |
CN109669678A (en) | Template engine integration method, device, electronic equipment and storage medium | |
CN109508449A (en) | A kind of propaganda film official documents and correspondence generates system and its generation method online | |
CN106780660A (en) | A kind of image processing method and electronic equipment | |
CN108090045B (en) | Word segmentation method and device and readable storage medium | |
CN107729983A (en) | A kind of method, apparatus and electronic equipment using realizing of Robot Vision man-machine chess | |
CN106506805A (en) | Head portrait of contact person generation method and device | |
CN114444439B (en) | Test question set file generation method and device, electronic equipment and storage medium | |
CN113449139A (en) | Method, device and system for generating matching graph |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |