CN110175539B - Character creating method and device, terminal equipment and readable storage medium - Google Patents

Character creating method and device, terminal equipment and readable storage medium Download PDF

Info

Publication number
CN110175539B
CN110175539B CN201910390400.0A CN201910390400A CN110175539B CN 110175539 B CN110175539 B CN 110175539B CN 201910390400 A CN201910390400 A CN 201910390400A CN 110175539 B CN110175539 B CN 110175539B
Authority
CN
China
Prior art keywords
writing
point
standard
path
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.)
Active
Application number
CN201910390400.0A
Other languages
Chinese (zh)
Other versions
CN110175539A (en
Inventor
邓立邦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Zhimeiyuntu Tech Corp ltd
Original Assignee
Guangdong Zhimeiyuntu Tech Corp ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Zhimeiyuntu Tech Corp ltd filed Critical Guangdong Zhimeiyuntu Tech Corp ltd
Priority to CN201910390400.0A priority Critical patent/CN110175539B/en
Publication of CN110175539A publication Critical patent/CN110175539A/en
Application granted granted Critical
Publication of CN110175539B publication Critical patent/CN110175539B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/32Digital ink
    • G06V30/333Preprocessing; Feature extraction
    • G06V30/347Sampling; Contour coding; Stroke extraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/10Character recognition
    • G06V30/28Character recognition specially adapted to the type of the alphabet, e.g. Latin alphabet
    • G06V30/287Character 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 character creating method, a character creating device, terminal equipment and a readable storage medium, wherein the method comprises the following steps: acquiring a standard font of a character to be created, splitting the standard font according to writing strokes to obtain independent standard strokes forming the standard font; creating a character to be created according to the writing path of each standard stroke; the creating step of the writing path of the standard stroke comprises the following steps; acquiring an edge contour of a standard stroke, and dividing the edge contour into a first combined path and a second combined path; establishing nodes on the first combined path and the second combined path to obtain a plurality of first combined nodes and a plurality of second combined nodes; connecting the first combination nodes and the second combination nodes one by one, and extracting the middle points of all connecting line segments to obtain a plurality of writing nodes; and obtaining the writing path of the standard stroke according to each writing node. By implementing the embodiment of the invention, the solid characters consistent with the human handwritten font can be created, and the writing efficiency is improved.

Description

Character creating method and device, terminal equipment and readable storage medium
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method and an apparatus for creating a text, a terminal device, and a readable storage medium.
Background
With the development of science and technology, the application field of the intelligent robot is more and more extensive, the intelligent robot is also widely applied in life, and the robot capable of holding pens to write like a human is also supposed to be a robot requisite skill.
When the robot clamps the writing pen through the mechanical arm to write, if the robot writes according to the existing standard fonts, the robot can only perform edge tracing according to the outer edges of various fonts to obtain character images with hollow edge tracing. However, when people write, the font is solid and is not a character image outlined by an outline. According to the existing robot writing method, the finally obtained font is greatly different from the human handwriting.
Disclosure of Invention
The embodiment of the invention provides a character creating method, a character creating device, terminal equipment and a computer readable storage medium, which can create solid characters consistent with human handwritten fonts and improve the writing efficiency.
An embodiment of the present invention provides a method for creating a text, including:
acquiring a standard font of a character to be created, splitting the standard font according to writing strokes to obtain independent standard strokes forming the standard font;
creating the character to be created according to the writing path of each standard stroke;
the specific creating step of the writing path of any standard stroke comprises the following steps:
acquiring an edge contour of a standard stroke, and dividing the edge contour into two combined paths, namely a first combined path and a second combined path, by using a pen-down point of the standard stroke and a pen-up point of the standard stroke;
respectively establishing nodes on the first combined path and the second combined path to obtain a plurality of first combined nodes and a plurality of second combined nodes;
connecting the first combination nodes and the second combination nodes one by one along the direction from the pen writing point to the pen lifting point or along the direction from the pen lifting point to the pen writing point to obtain a plurality of connecting line segments, and extracting the middle point of each connecting line segment to obtain a plurality of writing nodes;
and obtaining the writing path of the standard stroke according to each writing node.
Further, the creating the text to be created according to the writing path of each standard stroke specifically includes:
and according to the stroke writing sequence of the standard font, according to each writing path of the standard strokes, sequentially writing each stroke of the character to be created, and finally creating the character to be created.
Further, the obtaining of the edge contour of the standard stroke specifically includes:
and with the pen drawing point as a starting point and the pen lifting point as an end point, drawing along the shape of the standard stroke from the starting point to the end point in two directions according to the shape of the standard stroke to obtain the edge profile.
Further, the establishing nodes on the first combined path and the second combined path respectively specifically includes: and establishing the same number of nodes on the first combined path and the second combined path respectively by taking the pen-down point as a path starting point and the pen-up point as a path end point.
Further, the number of the nodes is set according to the size of the image established by the standard font.
Further, the obtaining of the writing path of the standard stroke according to each writing node specifically includes:
and connecting the writing nodes along the direction from the pen writing point to the pen lifting point or along the direction from the pen lifting point to the pen writing point to obtain the writing path of the standard stroke.
On the basis of the method item embodiment of the invention, the invention provides a corresponding apparatus item embodiment
The invention provides a character creating device, which comprises a character acquiring and splitting module and a character creating module, wherein the character creating module comprises a stroke edge acquiring and segmenting unit, a node creating unit, a writing node acquiring unit and a writing unit;
the character acquisition and splitting module is used for acquiring a standard font of a character to be created, splitting the standard font according to writing strokes and acquiring independent standard strokes forming the standard font;
the character creating module is used for creating the character to be created according to the writing path of each standard stroke;
the stroke edge obtaining and segmenting unit is used for obtaining an edge contour of a standard stroke and segmenting the edge contour into two combined paths which are a first combined path and a second combined path respectively by using a stroke setting point of the standard stroke and a stroke lifting point of the standard stroke;
the node establishing unit is used for respectively establishing nodes on the first combined path and the second combined path to obtain a plurality of first combined nodes and a plurality of second combined nodes;
the writing node obtaining unit is configured to connect the first combination nodes and the second combination nodes one by one along a direction from the pen writing point to the pen lifting point or along a direction from the pen lifting point to the pen writing point to obtain a plurality of connection line segments, and extract a midpoint of each connection line segment to obtain a plurality of writing nodes;
and the writing unit is used for obtaining the writing path of the standard stroke according to each writing node.
An embodiment of the present invention provides a text creation terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the font creation method described in the above embodiment of the invention when executing the computer program.
An embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the computer-readable storage medium controls a device on which the computer-readable storage medium is located to execute the font creating method according to the above embodiment of the present invention.
By implementing the embodiment of the invention, the following beneficial effects are achieved:
the method comprises the steps of firstly obtaining a standard font of a character to be created, splitting the standard font according to strokes, splitting the standard font into independent standard strokes, writing according to the writing path of each standard stroke to create the character to be created, wherein the writing path of each stroke is a solid line segment instead of a closed contour line, so that the finally created character is a solid font. Compared with the prior art, the solid font is more suitable for the character writing mode of human and is more practical to obtain an empty character image by tracing according to the outer edges of various fonts, and on the other hand, compared with the font creating mode of tracing according to the outer edges of various fonts, the writing path of each stroke provided by the invention is shorter in path length, so that the speed is higher during writing, and the writing efficiency is improved.
Drawings
Fig. 1 is a schematic flow chart of a text creation method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for creating a writing path of an arbitrary stroke in a text creation method according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a standard font of a text creation method according to an embodiment of the present invention.
FIG. 4 is a text diagram of an outline border obtained by tracing the outer edge of a font according to the prior art;
FIG. 5 is a schematic diagram of a standard stroke contour of a text creation method according to an embodiment of the present invention;
fig. 6 is a schematic node diagram of a text creation method according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a writing path of a character to be created according to a character creating method provided in an embodiment of the present invention;
fig. 8 is a diagram of a result of a to-be-created character created by a character creation method according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a character creating apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a flow diagram of a text creation method provided in an embodiment of the present invention includes:
s101, obtaining a standard font of a character to be created, splitting the standard font according to writing strokes, and obtaining independent standard strokes forming the standard font.
And S102, creating characters to be created according to the writing path of each standard stroke.
For step S101, in a preferred embodiment, the standard font may be, but is not limited to, a font with a certain width, which is obtained from data on the internet or various types of copybooks, and may be a regular font, a song style, a rule script, a black body, a song imitation, and the like.
Fig. 3 shows a standard font of a chinese character "ten", and in an embodiment, the chinese character "ten" is taken as an example for specific description, but it should be noted that the standard font is not limited to "ten", and the standard chinese character "ten" mentioned here is only for better explaining the present solution and does not play a limiting role.
When the character to be created is the Chinese character 'ten', firstly, the standard font of the Chinese character 'ten' is obtained, then the standard font 'ten' is split according to the stroke of writing the 'ten', and the standard font 'ten' is split into a horizontal part (one) and a vertical part (l).
For step S102, in a preferred embodiment, writing each stroke of the character to be created in sequence according to the stroke writing sequence of the standard font and the writing path of each standard stroke, and finally creating the character to be created. In the above example, the writing order of the standard font "ten" is to write a horizontal stroke first and then a vertical stroke, so when creating the character to be created, firstly, a horizontal stroke is written according to the writing path of the standard stroke "horizontal stroke", then, a vertical stroke is written according to the writing path of the standard stroke "vertical stroke", and finally, the creation of the character "ten" to be created is completed.
Of course, in another preferred embodiment, the strokes may be written out of writing order. That is, according to the writing path of each standard stroke, each stroke of the character to be created is written in any order, and finally the character to be created is created. The above example may write a horizontal bar first and then a vertical bar.
It should be added that, in an optional embodiment, before creating a character to be created according to the writing path of each standard stroke, the standard font of the character to be created is taken as a reference base map, the split standard strokes are placed in an overlapping manner according to the positions of the corresponding strokes on the reference base map, and during writing, writing is performed according to the placement positions of the standard strokes, so that the structure of the original standard font is retained, and the position deviation of part of the strokes during writing is avoided.
In a preferred embodiment, the writing is performed by a robotic pen while writing the text to be created.
The following describes how to obtain the writing path of each standard stroke in detail:
as shown in FIG. 2, the method for creating the writing path of each standard stroke comprises the following steps:
step S201, obtaining an edge contour of a standard stroke, and dividing the edge contour into two combined paths, namely a first combined path and a second combined path, by using a stroke-down point of the standard stroke and a stroke-lifting point of the standard stroke.
Step S202, nodes are respectively established on the first combination path and the second combination path, and a plurality of first combination nodes and a plurality of second combination nodes are obtained.
Step S203, connecting the first combination nodes and the second combination nodes one by one along the direction from the pen-down point to the pen-up point or along the direction from the pen-up point to the pen-down point to obtain a plurality of connecting line segments, and extracting the middle points of the connecting line segments to obtain a plurality of writing nodes.
And step S204, obtaining the writing path of the standard stroke according to each writing node.
For step S201, the edge contour of the standard stroke needs to be obtained first, and in a preferred embodiment, the obtaining of the edge contour of the standard stroke specifically includes:
and drawing along the shape of the standard stroke to obtain the edge profile, wherein the starting point is used as the starting point, the stroke lifting point is used as the end point, the starting point is divided into two directions according to the shape of the standard stroke, and the ending point is ended. As shown in fig. 5, it is an edge contour diagram of a standard stroke of a Chinese character "ten", where point a is a stroke starting point (starting point) of a standard stroke "horizontal", point B is a stroke lifting point (ending point) of the standard stroke "horizontal", point C is a stroke starting point (starting point) of a standard stroke "vertical", point D is a stroke lifting point (ending point) of the standard stroke "vertical", as can be seen from fig. 5, when the edge contour of the standard stroke 'horizontal' is obtained, the line is drawn from the point A along the upper and lower directions of the point A simultaneously and along the shape of the standard stroke 'horizontal' until the point B is finished, at this time, the point A and the point B divide the contour of the standard stroke 'horizontal' into an upper and lower section combined path, when the standard stroke 'vertical' is obtained, the line is drawn from the point C along the left and right directions of the point C simultaneously along the shape of the standard stroke 'vertical' until the point D is finished, and at the moment, the point C and the point D divide the standard stroke 'vertical' into a left and right end combined path.
It should be noted that the edge contour of the standard stroke is not limited to be obtained in the above manner, for example, in another preferred embodiment, the edge contour may also be obtained by using the pen-down point as the end point, using the pen-up point as the start point, starting from the start point to the end point in two directions according to the shape of the standard stroke, and tracing along the shape of the standard stroke.
In addition, in another optional embodiment, the edge contour of the standard stroke may be directly extracted by directly using the existing edge detection technology, and then the pen placing point and the pen lifting point of the standard stroke are calibrated, so as to divide the edge contour of the standard stroke into two sections of combined paths.
For step S202, in a preferred embodiment, nodes are respectively established on the first combined path and the second combined path, specifically:
and establishing the same number of nodes on the first combined path and the second combined path by taking the pen-down point as a path starting point and taking the pen-up point as a path end point. As shown in fig. 6, a plurality of nodes of the same number are arranged on the edge contour of the standard stroke "vertical" of the standard chinese character "ten".
In a preferred embodiment, the number of the nodes is set according to a standard font, and then the size of the image is set according to a certain proportion, such as: in a font image of 300 × 300px, 30 nodes may be set to be respectively established in the first combining path and the second combining path.
In another preferred embodiment, the pen-down point may be used as a path end point, the pen-up point may be used as a path start point, and nodes may be respectively established on the first combined path and the second combined path according to a preset distance.
As for step S203, as shown in fig. 7, the nodes on the upper and lower combined paths of the standard stroke "horizontal", that is, the upper half combined path node (first combined path node) and the lower half combined path node (second combined path node), are connected from the lower stroke point along the direction of the stroke lifting point, or along the direction from the stroke lifting point to the lower stroke point, so as to obtain a plurality of connected line segments, and finally, the midpoint of each connected line segment is extracted to obtain a plurality of writing nodes of the standard stroke "horizontal". Similarly, the nodes on the left and right combined paths of the standard stroke vertical are connected, and then a plurality of writing nodes of the standard stroke vertical are obtained in the same way.
It should be noted that: the direction from the lower stroke point to the pen lifting point is the writing direction of the corresponding stroke, and the direction from the pen lifting point to the lower stroke point is the opposite direction to the writing direction of the corresponding stroke. In actual operation, one of the ways may be arbitrarily selected, and the first combining path node and the second combining path node are connected in a one-to-one correspondence manner.
For step S204, in a preferred embodiment, a writing path of the standard stroke is obtained according to each writing node, specifically:
and sequentially connecting the writing nodes along the direction from the pen-down point to the pen-up point or along the direction from the pen-up point to the pen-down point to obtain a writing path of the standard stroke. As shown in FIG. 7, according to the above method, the ten-stroke path of the Chinese character can be finally obtained.
In another preferred embodiment, the writing path of the standard stroke is obtained according to each writing node, specifically:
and sequentially connecting each writing node, the pen placing point and the pen lifting point along the direction from the pen placing point to the pen lifting point or along the direction from the pen lifting point to the pen placing point to obtain a writing path of the standard stroke.
In another preferred embodiment, the writing path of the standard stroke is obtained according to each writing node, specifically:
and sequentially connecting each writing node and the pen lifting point along the direction from the pen lowering point to the pen lifting point or along the direction from the pen lifting point to the pen lowering point to obtain a writing path of the standard stroke.
In another preferred embodiment, the writing path of the standard stroke is obtained according to each writing node, specifically:
and sequentially connecting each writing node and the pen-down point along the direction from the pen-down point to the pen-up point or along the direction from the pen-up point to the pen-down point to obtain a writing path of the standard stroke.
The writing path of the standard stroke can be obtained through the various ways.
Finally, as shown in fig. 4 and 8, in the prior art, the characters to be created by the character creating method provided by the embodiment of the present invention are compared with the characters to be created obtained by performing the stroke according to the outer edge of the font, so that the characters to be created by the character creating method provided by the embodiment of the present invention are more in line with the writing habit of human beings, and the total writing path is shorter, so that the robot has higher efficiency when holding a pen for writing.
It should be noted that, when each font to be created is created, the writing path of each standard stroke of the font to be created can be obtained immediately according to the method from step S201 to step S204.
In order to further improve the writing efficiency, in another preferred embodiment, all basic strokes of a Chinese character and writing paths of corresponding standard strokes may be stored in a database in advance, when creating a character to be created, the method of step S101 is firstly followed to obtain each standard stroke, then the writing paths of the corresponding strokes are directly searched in the database, and then the writing paths of all the strokes are sent to the robot, and the robot holds the pen to write. Therefore, the operations from the step S201 to the step S204 do not need to be repeated again, and the writing efficiency of the robot is further improved.
On the basis of the above-described method item embodiments of the present invention, corresponding method item embodiments are provided.
As shown in fig. 9, an embodiment of the present invention provides a text creation apparatus, including: the system comprises a character acquisition and splitting module 910 and a character creating module 920, wherein the character creating module comprises a stroke edge acquisition and segmentation unit 921, a node establishing unit 922, a writing node acquisition unit 923 and a writing unit 924;
the character acquisition and splitting module 910 is configured to acquire a standard font of a character to be created, and split the standard font according to a writing stroke to acquire each independent standard stroke constituting the standard font;
a text creating module 920, configured to create a text to be created according to the writing path of each standard stroke;
the stroke edge obtaining and segmenting unit 921 is used for obtaining an edge contour of a standard stroke, and segmenting the edge contour into two combined paths, namely a first combined path and a second combined path, by using a pen-down point of the standard stroke and a pen-up point of the standard stroke;
a node establishing unit 922, configured to establish nodes on the first combined path and the second combined path, respectively, to obtain a plurality of first combined nodes and a plurality of second combined nodes;
a writing node obtaining unit 923, configured to connect the first combination nodes and the second combination nodes one by one in a direction from the pen-down point to the pen-up point or in a direction from the pen-up point to the pen-down point, to obtain a plurality of connection segments, and extract midpoints of the connection segments, to obtain a plurality of writing nodes;
and the writing unit 924 is configured to obtain a writing path of the standard stroke according to each writing node.
It is understood that this embodiment is an embodiment of an apparatus item provided on the basis of the embodiments of all the above-described character creating methods, and it is understood that this embodiment provides a character creating apparatus capable of implementing all the methods in the embodiments of the method items of all the above-described character creating methods.
On the basis of the method item embodiment of the character creation method provided by the invention, another embodiment is provided.
Another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor executes the computer program to implement the steps in the foregoing text creation method embodiments, such as the steps shown in fig. 1 and fig. 2.
The terminal device may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center for the text creation apparatus/terminal device, various interfaces and lines connecting the various parts of the entire text creation apparatus/terminal device.
The memory may be used to store computer programs that the processor executes or otherwise executes and to retrieve data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
On the basis of the method item embodiment of the character creation method provided by the invention, another embodiment is provided.
Another embodiment of the present invention provides a computer-readable storage medium, where the computer-readable storage medium includes a stored computer program, and when the computer program runs, the apparatus where the computer-readable storage medium is located is controlled to execute all the steps of the foregoing text creation method embodiment.
Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, U.S. disk, removable hard disk, magnetic diskette, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signal, telecommunications signal, software distribution medium, etc. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, in accordance with legislation and patent practice, the computer readable medium does not include electrical carrier signals and telecommunications signals.
The embodiment of the invention has the following beneficial effects: the method comprises the steps of firstly obtaining a standard font of a character to be created, splitting the standard font according to strokes, splitting the standard font into independent standard strokes, then writing according to the writing path of each standard stroke to create the character to be created, wherein the writing path of each stroke is a solid line segment instead of a closed contour line, so that the finally created character is a solid font. Compared with the prior art, the solid font is more suitable for the character writing mode of human and is more practical to obtain an empty character image by tracing according to the outer edges of various fonts, and on the other hand, compared with the font creating mode of tracing according to the outer edges of various fonts, the writing path of each stroke provided by the invention is shorter in path length, so that the writing speed is faster, and the writing efficiency is improved.
It should be noted that the above-described embodiments of the apparatus are merely illustrative, where units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. In addition, in the drawings of the embodiment of the apparatus provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines. One of ordinary skill in the art can understand and implement it without inventive effort.
The foregoing is a preferred embodiment of the present invention, and it should be noted that it would be apparent to those skilled in the art that various modifications and enhancements can be made without departing from the principles of the invention, and such modifications and enhancements are also considered to be within the scope of the invention.

Claims (7)

1. A method for creating a character, comprising:
acquiring a standard font of a character to be created, splitting the standard font according to writing strokes to obtain independent standard strokes forming the standard font;
creating the character to be created according to the writing path of each standard stroke;
the specific creating step of the writing path of any standard stroke comprises the following steps:
acquiring an edge contour of a standard stroke, and dividing the edge contour into two combined paths, namely a first combined path and a second combined path, by using a stroke-setting point of the standard stroke and a stroke-lifting point of the standard stroke;
respectively establishing nodes on the first combined path and the second combined path to obtain a plurality of first combined nodes and a plurality of second combined nodes; establishing the same number of nodes on the first combined path and the second combined path by taking the pen-down point as a path starting point and the pen-up point as a path end point; connecting the first combination nodes and the corresponding second combination nodes one by one along the direction from the pen writing point to the pen lifting point or along the direction from the pen lifting point to the pen writing point to obtain a plurality of connecting line segments, and extracting the middle points of the connecting line segments to obtain a plurality of writing nodes;
and sequentially connecting the writing nodes along the direction from the pen writing point to the pen lifting point or along the direction from the pen lifting point to the pen writing point to obtain a writing path of the standard stroke.
2. The method for creating characters according to claim 1, wherein said creating said character to be created according to the writing path of each of said standard strokes specifically comprises:
and according to the stroke writing sequence of the standard font, according to each writing path of the standard strokes, sequentially writing each stroke of the character to be created, and finally creating the character to be created.
3. The method for creating words according to claim 1, wherein said obtaining an edge contour of said standard stroke specifically comprises:
and with the pen drawing point as a starting point and the pen lifting point as an end point, drawing along the shape of the standard stroke from the starting point to the end point in two directions according to the shape of the standard stroke to obtain the edge profile.
4. The character creation method of claim 3, wherein the number of nodes is set according to the size of an image created by the standard font.
5. A character creating device is characterized by comprising a character acquiring and splitting module and a character creating module, wherein the character creating module comprises a stroke edge acquiring and segmenting unit, a node creating unit, a writing node acquiring unit and a writing unit;
the character acquisition and splitting module is used for acquiring a standard font of a character to be created, splitting the standard font according to writing strokes and acquiring independent standard strokes forming the standard font;
the character creating module is used for creating the character to be created according to the writing path of each standard stroke;
the stroke edge obtaining and segmenting unit is used for obtaining an edge contour of a standard stroke and segmenting the edge contour into two combined paths which are a first combined path and a second combined path respectively by using a stroke setting point of the standard stroke and a stroke lifting point of the standard stroke;
the node establishing unit is used for respectively establishing nodes on the first combined path and the second combined path to obtain a plurality of first combined nodes and a plurality of second combined nodes; establishing the same number of nodes on the first combined path and the second combined path by taking the pen-down point as a path starting point and the pen-up point as a path end point;
the writing node obtaining unit is configured to connect the first combination nodes and the corresponding second combination nodes one by one along a direction from the pen writing point to the pen lifting point or along a direction from the pen lifting point to the pen writing point to obtain a plurality of connection line segments, and extract a midpoint of each connection line segment to obtain a plurality of writing nodes; and sequentially connecting the writing nodes along the direction from the pen writing point to the pen lifting point or along the direction from the pen lifting point to the pen writing point to obtain a writing path of the standard stroke.
6. A character creation terminal device comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, the processor implementing the character creation method according to any one of claims 1 to 4 when executing the computer program.
7. A computer-readable storage medium, comprising a stored computer program which, when executed, controls an apparatus on which the computer-readable storage medium is located to perform the method for creating words according to any one of claims 1 to 4.
CN201910390400.0A 2019-05-10 2019-05-10 Character creating method and device, terminal equipment and readable storage medium Active CN110175539B (en)

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 CN110175539A (en) 2019-08-27
CN110175539B true 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)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
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
CN113436298B (en) * 2021-07-05 2023-09-19 深圳软牛科技有限公司 Method and device for automatically generating Chinese character stroke order animation and related components thereof

Citations (7)

* Cited by examiner, † Cited by third party
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
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
CN107196956A (en) * 2017-06-15 2017-09-22 广州视源电子科技股份有限公司 Handwriting data synchronous method and apparatus, storage medium and terminal device
CN109325483A (en) * 2018-09-11 2019-02-12 北京语言大学 The treating method and apparatus of internal short pen section

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136769B (en) * 2011-12-02 2016-02-03 北京三星通信技术研究有限公司 The method and apparatus that user writing style font generates
CN107025211B (en) * 2017-05-04 2020-06-05 李鹰 Copy ruler suspension control method and device for font analysis
CN107610200B (en) * 2017-10-10 2020-11-03 南京师范大学 Character library rapid generation method based on characteristic template

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
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
CN107196956A (en) * 2017-06-15 2017-09-22 广州视源电子科技股份有限公司 Handwriting data synchronous method and apparatus, storage medium and terminal device
CN109325483A (en) * 2018-09-11 2019-02-12 北京语言大学 The treating method and apparatus of internal short pen section

Also Published As

Publication number Publication date
CN110175539A (en) 2019-08-27

Similar Documents

Publication Publication Date Title
CN107977346B (en) PDF document editing method and terminal equipment
US20200013386A1 (en) Method and apparatus for outputting voice
WO2019000681A1 (en) Information layout method, device, apparatus and computer storage medium
CN112507806B (en) Intelligent classroom information interaction method and device and electronic equipment
CN106325737A (en) Method and equipment for erasing writing path
CN112905102B (en) Method and device for realizing writing tip, electronic equipment and readable storage medium
CN110175539B (en) Character creating method and device, terminal equipment and readable storage medium
CN110956678B (en) Font processing method and device
CN112711362B (en) Method and device for generating hand-drawn flow chart icon in standardized manner
CN110045840A (en) A kind of associated method, apparatus of handwriting trace, terminal device and storage medium
CN104267838A (en) Intelligent handwriting input method and input system
CN112686134A (en) Handwriting recognition method and device, electronic equipment and storage medium
CN103559512B (en) A kind of Text region output intent and system
CN109615671A (en) A kind of character library sample automatic generation method, computer installation and readable storage medium storing program for executing
JP2019528520A (en) Classification network training apparatus, character recognition apparatus and method for character recognition
CN113420763B (en) Text image processing method and device, electronic equipment and readable storage medium
US10573033B2 (en) Selective editing of brushstrokes in a digital graphical image based on direction
CN115841671B (en) Handwriting skeleton correction method, system and storage medium
CN113077469B (en) Sketch image semantic segmentation method and device, terminal device and storage medium
CN112975958B (en) Method and device for generating path points of stroke orders of characters and manipulator control system
Galaxy et al. Enhancement of segmentation and zoning to improve the accuracy of handwritten character recognition
CN112527128A (en) Method and device for positioning handwriting input text
CN111291758A (en) Method and device for identifying characters of seal
KR101667910B1 (en) Method and apparatus for generating digital artifical hand-writing data and computer program stored in computer readable medium therefor
CN114585992B (en) Writing track processing method, touch control equipment, writing system and storage medium

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