CN108304356B - Character display method and device - Google Patents

Character display method and device Download PDF

Info

Publication number
CN108304356B
CN108304356B CN201810089703.4A CN201810089703A CN108304356B CN 108304356 B CN108304356 B CN 108304356B CN 201810089703 A CN201810089703 A CN 201810089703A CN 108304356 B CN108304356 B CN 108304356B
Authority
CN
China
Prior art keywords
font
outline
target
character
training
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
CN201810089703.4A
Other languages
Chinese (zh)
Other versions
CN108304356A (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.)
Shenzhen Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
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 Shenzhen Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN201810089703.4A priority Critical patent/CN108304356B/en
Publication of CN108304356A publication Critical patent/CN108304356A/en
Application granted granted Critical
Publication of CN108304356B publication Critical patent/CN108304356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/103Formatting, i.e. changing of presentation of documents
    • G06F40/109Font handling; Temporal or kinetic typography
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/40Filling a planar surface by adding surface attributes, e.g. colour or texture

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • General Engineering & Computer Science (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application provides a character display method and a character display device. And the storage space occupied by the font conversion model is smaller than that of the font library, and compared with the storage of a plurality of font libraries, the system stores one reference font library and a plurality of font conversion models, the storage space of the system can be saved.

Description

Character display method and device
Technical Field
The present disclosure relates to the field of character display technologies, and in particular, to a method and an apparatus for displaying characters.
Background
In the existing character display technology, when a character is displayed in a certain font, a font library corresponding to the font is directly determined from a plurality of font libraries stored in a system, outline description data of the character is acquired from the font library corresponding to the font, and the character is drawn and displayed according to the outline description data.
It can be seen that the current character display technology needs to rely on a plurality of word banks stored in the system, each character corresponds to a plurality of word banks corresponding to different fonts, and each word bank corresponding to different fonts stores outline description data of any font size of the corresponding font. However, since the number of characters is large, the word stock corresponding to the characters occupies a large storage space of the system.
Disclosure of Invention
In order to solve the foregoing technical problems, embodiments of the present application provide a character display method and apparatus, so as to achieve the purpose of saving a storage space of a system, and the technical solution is as follows:
a character display method comprising:
acquiring outline description data of characters to be displayed from a reference word stock;
drawing an outline which accords with the structure of the font corresponding to the reference font library according to the outline description data to serve as a primary outline;
judging whether the font to be used of the character to be displayed is the font corresponding to the reference font library;
if so, performing color filling on the primary contour, and displaying;
if not, acquiring a font conversion model corresponding to the font to be used, wherein the font conversion model is obtained by utilizing the outline drawn by the training character according to the font corresponding to the reference font library and the outline drawn according to the target font library;
inputting the primary contour into the font conversion model to obtain a contour which is output by the font conversion model and accords with the structure of the font to be used, and taking the contour as a first target contour;
and carrying out color filling on the first target contour and displaying.
Preferably, before the obtaining of the font conversion model corresponding to the font to be used, the method further includes:
judging whether outline description data of the character to be displayed exist in a preset small character library or not;
if the font exists, drawing an outline which accords with the structure of the font to be used as a second target outline according to the outline description data;
filling colors into the second target contour and displaying the second target contour;
and if not, executing the step of obtaining the font conversion model corresponding to the font to be used.
Preferably, the process of generating the preset small word stock includes:
inputting the outline of the character to be detected, which accords with the structure of the font corresponding to the reference font library, into the font conversion model to obtain the outline output by the font conversion model, and taking the outline as a third target outline;
comparing the difference between the third target contour and the standard contour of the font corresponding to the character conversion model to obtain a comparison result;
and if the comparison result does not meet the preset standard difference condition, storing the standard outline description data of the character to be detected into a preset small word stock.
Preferably, the primary contour or the target contour is a gray-scale lattice;
the training process of the font conversion model comprises the following steps:
acquiring a reference word stock and a target word stock, wherein the target word stock is a word stock in a word stock set except the reference word stock, and the font corresponding to the target word stock is different from the font corresponding to the reference word stock;
drawing the outline of the training character according to the font corresponding to the reference character library to be used as a reference training outline;
drawing the outline of the training character according to the font corresponding to the target font library, and drawing a target training outline;
and forming a training contour pair by the reference training contour and the target training contour of each training character, and training the font conversion model.
Preferably, the selecting process of the reference word stock includes:
and selecting a character library with the style of Song or black as a reference character library.
A character display apparatus comprising:
the first acquisition module is used for acquiring outline description data of the character to be displayed from the reference word stock;
the first drawing module is used for drawing the outline which accords with the structure of the font corresponding to the reference font library according to the outline description data to serve as a primary outline;
the first judging module is used for judging whether the font to be used of the character to be displayed is the font corresponding to the reference font library, if so, the first displaying module is executed, and if not, the second obtaining module is executed;
the first display module is used for carrying out color filling on the primary contour and displaying the primary contour;
the second obtaining module is used for obtaining a font conversion model corresponding to the font to be used, wherein the font conversion model is obtained by utilizing the outline drawn by the training character according to the font corresponding to the reference font library and the outline drawn according to the target font;
the outline conversion module is used for inputting the primary outline into the font conversion model to obtain an outline which is output by the font conversion model and accords with the structure of the font to be used, and the outline is used as a first target outline;
and the second display module is used for carrying out color filling on the first target contour and displaying the first target contour.
Preferably, the apparatus further comprises:
the second judging module is used for judging whether outline description data of the character to be displayed exist in a preset small font library, if so, executing the second drawing module, and if not, executing the second obtaining module;
the second drawing module is used for drawing the outline which accords with the structure of the font to be used as a second target outline according to the outline description data;
and the second display module is used for carrying out color filling on the second target outline and displaying the second target outline.
Preferably, the apparatus further comprises: and the preset small word stock generation module is used for inputting the outline of the character to be detected, which accords with the structure of the font corresponding to the reference word stock, into the font conversion model to obtain the outline output by the font conversion model as a third target outline, comparing the difference between the third target outline and the standard outline of the character to be detected, which accords with the font corresponding to the font conversion model, to obtain a comparison result, and if the comparison result does not satisfy the preset standard difference condition, storing the standard outline description data of the character to be detected into the preset small word stock.
Preferably, the primary contour or the target contour is a gray-scale lattice;
the device further comprises: and the font conversion model training module is used for acquiring a reference font and a target font, wherein the target font is a font except for the reference font in a font set, the font corresponding to the target font is different from the font corresponding to the reference font, the outline of the training character is drawn according to the font corresponding to the reference font and is used as a reference training outline, the outline of the training character and the target training outline are drawn according to the font corresponding to the target font, the reference training outline and the target training outline of each training character form a training outline pair, and the character conversion model is trained.
Preferably, the apparatus further comprises: and the reference word stock selecting module is used for selecting the word stock with the style of Song or black as the reference word stock.
Compared with the prior art, the beneficial effect of this application is:
in the application, the character display is realized according to the reference word stock or the font conversion model, and the system can store one reference word stock and a plurality of font conversion models. And the storage space occupied by the font conversion model is smaller than that of the font library, and compared with the storage of a plurality of font libraries, the system stores one reference font library and a plurality of font conversion models, the storage space of the system can be saved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
FIG. 1 is a flow chart of a character display method provided by the present application;
FIG. 2 is another flow chart of a character display method provided by the present application;
FIG. 3 is a flow chart of another method for displaying characters provided by the present application;
FIG. 4 is a flow chart of the generation of a predetermined small word stock provided by the present application;
FIG. 5 is a flow chart of the training of a font conversion model provided herein;
fig. 6 is a schematic diagram of a logic structure of the character display apparatus provided in the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, 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 application.
The embodiment of the application discloses a character display method, which comprises the steps of obtaining outline description data of a character to be displayed from a reference character library, drawing an outline which conforms to the structure of a font corresponding to the reference character library according to the outline description data to be used as a primary outline, judging whether the font to be used of the character to be displayed is the font corresponding to the reference character library, if so, filling the primary outline with colors and displaying, if not, obtaining a font conversion model corresponding to the font to be used, wherein the font conversion model is obtained by utilizing the outline drawn by the font corresponding to the reference character library of a training character and the outline drawn by a target character body, inputting the primary outline into the font conversion model to obtain the outline which is output by the font conversion model and conforms to the structure of the font to be used as a first target outline, and carrying out color filling on the first target contour, and displaying to realize character display.
Next, a character display method disclosed in an embodiment of the present application is described, referring to fig. 1, which may include:
and step S11, acquiring outline description data of the character to be displayed from the reference word stock.
The outline description data may define the font size and font type of the character.
The font size can be understood as: the size of a character is generally in px (i.e., how many pixels are).
The font can be immediately: the shape of the character.
In this embodiment, one word stock may be selected from the word stock set as the reference word stock.
It is understood that the reference character library corresponds to a font, and the reference character library includes outline description data of each character for describing an outline of any character size of the font of each character.
And step S12, drawing the outline which conforms to the structure of the font corresponding to the reference font library according to the outline description data to be used as a primary outline.
And step S13, judging whether the font to be used of the character to be displayed is the font corresponding to the reference font library.
If so, go to step S14, otherwise, go to step S15.
The font to be used for the characters to be displayed can be understood as: and displaying the character to be displayed by using the font needed to be used.
And step S14, performing color filling on the primary contour, and displaying.
And step S15, obtaining a font conversion model corresponding to the font to be used.
If the font to be used of the character to be displayed is not the result of the font corresponding to the reference font determined in step S13, the primary outline needs to be converted into the outline corresponding to the font to be used. Specifically, a font conversion model corresponding to the font to be used is obtained first.
And the font conversion model is obtained by utilizing the outline drawn by the training characters according to the font corresponding to the reference font library and the outline drawn according to the target font.
It should be noted that there are multiple font conversion models, the fonts corresponding to different font conversion models are different, and the font corresponding to each font conversion model is different from the font corresponding to the reference font library.
Step S16, inputting the primary contour into the font conversion model, and obtaining a contour, which is output by the font conversion model and conforms to the structure of the font to be used, as a first target contour.
And step S17, performing color filling on the first target contour and displaying the first target contour.
Describing the process of steps S11-S17 by way of example, please refer to fig. 2, where the font library 1 is a reference font library, the font conversion models are models 1-2, 1-3, and 1-4, respectively, the font to be used of the character to be displayed is a font corresponding to the model 1-2, first, outline description data of "middle" is obtained from the font library 1, an outline of "middle" is drawn according to the outline description data, the outline of "middle" drawn according to the font library 1 is input to the model 1-2, the outline of "middle" conforming to the structure of the font to be used is output by the model 1-2, and the outline of "middle" conforming to the structure of the font to be used is color-filled and displayed.
In the application, the character display is realized according to the reference word stock or the font conversion model, and the system can store one reference word stock and a plurality of font conversion models. And the storage space occupied by the font conversion model is smaller than that of the font library, and compared with the storage of a plurality of font libraries, the system stores one reference font library and a plurality of font conversion models, the storage space of the system can be saved.
In another embodiment of the present application, another character display method is provided, and referring to fig. 3, the method may include:
and step S21, acquiring outline description data of the character to be displayed from the reference word stock.
And step S22, drawing the outline which conforms to the structure of the font corresponding to the reference font library according to the outline description data to be used as a primary outline.
And step S23, judging whether the font to be used of the character to be displayed is the font corresponding to the reference font library.
If so, go to step S24, otherwise, go to step S25.
And step S24, performing color filling on the primary contour, and displaying.
The detailed procedures of steps S21-S24 can be referred to the descriptions of steps S11-S14 in the previous embodiment, and are not described herein again.
And step S25, judging whether outline description data of the character to be displayed exists in a preset small word stock.
If yes, step S26 is executed, and if not, step S28 is executed.
It should be noted that, when the font conversion model performs the outline conversion, the outline obtained by the conversion may have a larger difference from the standard outline, and the conversion accuracy is reduced.
And step S26, drawing an outline which conforms to the structure of the font to be used as a second target outline according to the outline description data.
And step S27, performing color filling on the second target contour and displaying the second target contour.
And step S28, obtaining a font conversion model corresponding to the font to be used.
And the font conversion model is obtained by utilizing the outline drawn by the training characters according to the font corresponding to the reference font library and the outline drawn according to the target font.
Step S29, inputting the primary contour into the font conversion model, and obtaining a contour, which is output by the font conversion model and conforms to the structure of the font to be used, as a first target contour.
And step S210, performing color filling on the first target contour, and displaying.
The detailed procedures of steps S28-S210 can be referred to the descriptions of S15-S17 in the previous embodiment, and are not described herein again.
In this embodiment, on the basis that the font to be used of the character to be displayed is not the font corresponding to the reference font library, it is first determined whether outline description data of the character to be displayed exists in a preset small font library, and under the condition that the outline description data of the character to be displayed exists in the preset small font library, an outline conforming to the structure of the font to be used is drawn according to the outline description data, and under the condition that the outline description data of the character to be displayed does not exist in the preset small font library, a font conversion model corresponding to the font to be used is obtained, and the outline is converted by using the font conversion model, so that the accuracy of outline conversion is improved, and further, the accuracy of character display is improved.
In another embodiment of the present application, a process of generating the preset small word stock is described, please refer to fig. 4, which may include:
and step S31, inputting the outline of the character to be detected, which conforms to the structure of the font corresponding to the reference font library, into the font conversion model to obtain the outline output by the font conversion model, and taking the outline as a third target outline.
And step S32, comparing the difference between the third target contour and the standard contour of the font corresponding to the character to be detected and conforming to the font conversion model, and obtaining a comparison result.
And step S33, if the comparison result does not meet the preset standard difference condition, storing the standard outline description data of the character to be detected into a preset small word stock.
The preset standard difference condition can be flexibly set according to needs.
Generally, the primary or target profile in the foregoing embodiments is a gray-scale lattice. Based on this, in another embodiment of the present application, a process of training the font conversion model is described, please refer to fig. 5, which may include:
step S41, a reference word stock and a target word stock are obtained, the target word stock is a word stock in the word stock set except the reference word stock, and the font corresponding to the target word stock is different from the font corresponding to the reference word stock.
And step S42, drawing the outline of the training character according to the font corresponding to the reference character library to be used as a reference training outline.
According to the font corresponding to the reference word stock, drawing the outline of the training character may include: and drawing outlines of different font sizes of the training characters according to the fonts corresponding to the reference font library.
Generally, 256 pixels are selected as the maximum word size of the training character, and word sizes smaller than 256 pixels can participate in training.
For Chinese character library, a character complete set can be obtained from GBK (Chinese Internal Code Specification), and all characters in the character complete set can be used as training characters.
In addition, how many characters are contained in the word stock is explicitly described in the word stock, so that all characters can be directly searched from the word stock (such as a reference word stock and a target word stock) to be used as training characters.
And step S43, drawing the outline of the training character and the target training outline according to the font corresponding to the target font library.
Similarly, drawing the outline of the training character according to the font corresponding to the target word stock may include: and drawing outlines of different font sizes of the training characters according to the fonts corresponding to the target font library.
And step S44, forming a training contour pair by the reference training contour and the target training contour of each training character, and training the font conversion model.
It should be noted that, when the trained font conversion model is used to convert the outline, if the font size of the character to be displayed is greater than 256 pixels, the font conversion model may output the outline of 256 pixels that conforms to the structure of the font to be used, perform color filling to obtain font data, and then amplify and display the font data.
Based on the content in the foregoing embodiment, when the reference word stock is selected, the word stock corresponding to the font with relatively little change may be used as the reference word stock. Generally, the song style or the bold face is a better choice, so the font corresponding to the song style or the bold face can be selected as the reference font.
Next, a description will be given of a character display device provided in the present application, and a character display device described below and a character display method described above may be referred to in correspondence with each other.
Referring to fig. 6, a schematic diagram of a logical structure of a character display apparatus provided in the present application is shown, where the character display apparatus includes: the system comprises a first acquisition module 11, a first drawing module 12, a first judgment module 13, a first display module 14, a second acquisition module 15, an outline conversion module 16 and a second display module 17.
The first obtaining module 11 is configured to obtain outline description data of a character to be displayed from the reference word stock.
And the first drawing module 12 is configured to draw an outline conforming to the structure of the font corresponding to the reference font library according to the outline description data, as a primary outline.
The first determining module 13 is configured to determine whether the font to be used of the character to be displayed is the font corresponding to the reference font library, if so, execute the first displaying module 14, and if not, execute the second obtaining module 15.
The first display module 14 is configured to perform color filling on the primary contour and display the primary contour.
The second obtaining module 15 is configured to obtain a font conversion model corresponding to the font to be used, where the font conversion model is obtained by using an outline drawn by the training character according to the font corresponding to the reference font library and an outline drawn by the target font library.
And the outline conversion module 16 is configured to input the primary outline into the font conversion model, and obtain an outline which is output by the font conversion model and conforms to the structure of the font to be used, as a first target outline.
And the second display module 17 is configured to perform color filling on the first target contour and display the first target contour.
In this embodiment, the character display device may further include: and the second judging module is used for judging whether the outline description data of the character to be displayed exists in a preset small font library, if so, executing the second drawing module, and if not, executing the second acquiring module.
And the second drawing module is used for drawing the outline which conforms to the structure of the font to be used as a second target outline according to the outline description data.
And the second display module is used for carrying out color filling on the second target outline and displaying the second target outline.
In this embodiment, the character display device may further include:
and the preset small word stock generation module is used for inputting the outline of the character to be detected, which accords with the structure of the font corresponding to the reference word stock, into the font conversion model to obtain the outline output by the font conversion model as a third target outline, comparing the difference between the third target outline and the standard outline of the character to be detected, which accords with the font corresponding to the font conversion model, to obtain a comparison result, and if the comparison result does not satisfy the preset standard difference condition, storing the standard outline description data of the character to be detected into the preset small word stock.
In this embodiment, the primary contour or the target contour may be a gray-scale dot matrix. Based on this, the above character display apparatus may further include: and the font conversion model training module is used for acquiring a reference font and a target font, wherein the target font is a font except for the reference font in a font set, the font corresponding to the target font is different from the font corresponding to the reference font, the outline of the training character is drawn according to the font corresponding to the reference font and is used as a reference training outline, the outline of the training character and the target training outline are drawn according to the font corresponding to the target font, the reference training outline and the target training outline of each training character form a training outline pair, and the character conversion model is trained.
In this embodiment, the character display device may further include: and the reference word stock selecting module is used for selecting the word stock with the style of Song or black as the reference word stock.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present application may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments of the present application.
The character display method and the character display device provided by the application are introduced in detail, specific examples are applied in the text to explain the principle and the implementation of the application, and the description of the embodiments is only used for helping to understand the method and the core idea of the application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A character display method, comprising:
acquiring outline description data of characters to be displayed from a reference word stock;
drawing an outline which accords with the structure of the font corresponding to the reference font library according to the outline description data to serve as a primary outline;
judging whether the font to be used of the character to be displayed is the font corresponding to the reference font library;
if so, performing color filling on the primary contour, and displaying;
if not, judging whether outline description data of the character to be displayed exists in a preset small character library or not;
if the font exists, drawing an outline which accords with the structure of the font to be used as a second target outline according to the outline description data;
filling colors into the second target contour and displaying the second target contour;
if not, acquiring a font conversion model corresponding to the font to be used, wherein the font conversion model is obtained by utilizing the outline drawn by the training character according to the font corresponding to the reference font library and the outline drawn according to the target font library;
inputting the primary contour into the font conversion model to obtain a contour which is output by the font conversion model and accords with the structure of the font to be used, and taking the contour as a first target contour;
and carrying out color filling on the first target contour and displaying.
2. The method according to claim 1, wherein the generation process of the preset small word stock comprises:
inputting the outline of the character to be detected, which accords with the structure of the font corresponding to the reference font library, into the font conversion model to obtain the outline output by the font conversion model, and taking the outline as a third target outline;
comparing the difference between the third target contour and the standard contour of the font corresponding to the character conversion model to obtain a comparison result;
and if the comparison result does not meet the preset standard difference condition, storing the standard outline description data of the character to be detected into a preset small word stock.
3. The method of claim 1, wherein the primary contour or the target contour is a gray-scale lattice;
the training process of the font conversion model comprises the following steps:
acquiring a reference word stock and a target word stock, wherein the target word stock is a word stock in a word stock set except the reference word stock, and the font corresponding to the target word stock is different from the font corresponding to the reference word stock;
drawing the outline of the training character according to the font corresponding to the reference character library to be used as a reference training outline;
drawing the outline of the training character according to the font corresponding to the target font library, and drawing a target training outline;
and forming a training contour pair by the reference training contour and the target training contour of each training character, and training the font conversion model.
4. The method according to any one of claims 1 to 3, wherein the selection process of the reference word stock comprises:
and selecting a character library with the style of Song or black as a reference character library.
5. A character display apparatus, comprising:
the first acquisition module is used for acquiring outline description data of the character to be displayed from the reference word stock;
the first drawing module is used for drawing the outline which accords with the structure of the font corresponding to the reference font library according to the outline description data to serve as a primary outline;
the first judging module is used for judging whether the font to be used of the character to be displayed is the font corresponding to the reference font library, if so, the first displaying module is executed, and if not, the second obtaining module is executed;
the first display module is used for carrying out color filling on the primary contour and displaying the primary contour;
the second obtaining module is used for obtaining a font conversion model corresponding to the font to be used, wherein the font conversion model is obtained by utilizing the outline drawn by the training character according to the font corresponding to the reference font library and the outline drawn according to the target font;
the outline conversion module is used for inputting the primary outline into the font conversion model to obtain an outline which is output by the font conversion model and accords with the structure of the font to be used, and the outline is used as a first target outline;
the second display module is used for carrying out color filling on the first target outline and displaying the first target outline;
the second judging module is used for judging whether outline description data of the character to be displayed exist in a preset small font library, if so, executing the second drawing module, and if not, executing the second obtaining module;
the second drawing module is used for drawing the outline which accords with the structure of the font to be used as a second target outline according to the outline description data;
and the second display module is used for carrying out color filling on the second target outline and displaying the second target outline.
6. The apparatus of claim 5, further comprising: and the preset small word stock generation module is used for inputting the outline of the character to be detected, which accords with the structure of the font corresponding to the reference word stock, into the font conversion model to obtain the outline output by the font conversion model as a third target outline, comparing the difference between the third target outline and the standard outline of the character to be detected, which accords with the font corresponding to the font conversion model, to obtain a comparison result, and if the comparison result does not satisfy the preset standard difference condition, storing the standard outline description data of the character to be detected into the preset small word stock.
7. The apparatus of claim 5, wherein the primary contour or the target contour is a gray-scale lattice;
the device further comprises: and the font conversion model training module is used for acquiring a reference font and a target font, wherein the target font is a font except for the reference font in a font set, the font corresponding to the target font is different from the font corresponding to the reference font, the outline of the training character is drawn according to the font corresponding to the reference font and is used as a reference training outline, the outline of the training character and the target training outline are drawn according to the font corresponding to the target font, the reference training outline and the target training outline of each training character form a training outline pair, and the character conversion model is trained.
8. The apparatus of any one of claims 5-7, further comprising: and the reference word stock selecting module is used for selecting the word stock with the style of Song or black as the reference word stock.
CN201810089703.4A 2018-01-30 2018-01-30 Character display method and device Active CN108304356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810089703.4A CN108304356B (en) 2018-01-30 2018-01-30 Character display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810089703.4A CN108304356B (en) 2018-01-30 2018-01-30 Character display method and device

Publications (2)

Publication Number Publication Date
CN108304356A CN108304356A (en) 2018-07-20
CN108304356B true CN108304356B (en) 2021-02-09

Family

ID=62867412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810089703.4A Active CN108304356B (en) 2018-01-30 2018-01-30 Character display method and device

Country Status (1)

Country Link
CN (1) CN108304356B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1264864A (en) * 1999-02-01 2000-08-30 夏普公司 Character display, its displaying method and recording medium thereof
CN1615467A (en) * 2002-02-04 2005-05-11 德尔格医疗***有限公司 A system and method for providing a graphical user interface display with a conspicuous image element
CN101281742A (en) * 2008-05-29 2008-10-08 深圳华为通信技术有限公司 Method, apparatus and terminal for displaying contents
CN101908216A (en) * 2010-07-20 2010-12-08 中兴通讯股份有限公司 Method and device for realizing vector fonts
CN102682022A (en) * 2011-03-15 2012-09-19 高静敏 Implementation method for Chinese character holographic movable character library and operation of Chinese character holographic movable character library
CN103177709A (en) * 2011-12-20 2013-06-26 北大方正集团有限公司 Method and device for displaying characters
CN103578450A (en) * 2012-07-31 2014-02-12 国民技术股份有限公司 Character display method, character display device and safety authentication device
CN105227873A (en) * 2015-09-01 2016-01-06 青岛中星微电子有限公司 A kind of method of testing of on-chip study data and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7032179B2 (en) * 2000-06-12 2006-04-18 Peer Image, Inc. System for creating on a computer display screen composite images from diverse sources
CN1159666C (en) * 2002-03-29 2004-07-28 上海汉峰信息科技有限公司 Curved font described with stroke center line as datum for embedding application

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1264864A (en) * 1999-02-01 2000-08-30 夏普公司 Character display, its displaying method and recording medium thereof
CN1615467A (en) * 2002-02-04 2005-05-11 德尔格医疗***有限公司 A system and method for providing a graphical user interface display with a conspicuous image element
CN101281742A (en) * 2008-05-29 2008-10-08 深圳华为通信技术有限公司 Method, apparatus and terminal for displaying contents
CN101908216A (en) * 2010-07-20 2010-12-08 中兴通讯股份有限公司 Method and device for realizing vector fonts
CN102682022A (en) * 2011-03-15 2012-09-19 高静敏 Implementation method for Chinese character holographic movable character library and operation of Chinese character holographic movable character library
CN103177709A (en) * 2011-12-20 2013-06-26 北大方正集团有限公司 Method and device for displaying characters
CN103578450A (en) * 2012-07-31 2014-02-12 国民技术股份有限公司 Character display method, character display device and safety authentication device
CN105227873A (en) * 2015-09-01 2016-01-06 青岛中星微电子有限公司 A kind of method of testing of on-chip study data and device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Design of LED display based on FPGA";周苑苑 等;《Journal of Measurement Science and Instrumentation》;20130315;第4卷(第1期);第77-82页 *
"液晶显示模块自定义字符功能的实现方法";牟化建 等;《现代电子技术》;20061101;第21卷;第154-156页 *

Also Published As

Publication number Publication date
CN108304356A (en) 2018-07-20

Similar Documents

Publication Publication Date Title
US11386271B2 (en) Mathematical processing method, apparatus and device for text problem, and storage medium
CN109241525B (en) Keyword extraction method, device and system
CN110147549A (en) For executing the method and system of text error correction
CN112115678A (en) Information display method and device, storage medium and electronic equipment
US20200279079A1 (en) Predicting probability of occurrence of a string using sequence of vectors
CN114757176A (en) Method for obtaining target intention recognition model and intention recognition method
US9159147B2 (en) Method and apparatus for personalized handwriting avatar
CN111324716A (en) Index data acquisition method and device, computer equipment and storage medium
CN115222845A (en) Method and device for generating style font picture, electronic equipment and medium
CN111563380A (en) Named entity identification method and device
CN110211032B (en) Chinese character generating method and device and readable storage medium
CN111507064A (en) Word stock design method based on computer
CN108304356B (en) Character display method and device
CN111161266B (en) Multi-style font generation method of variational self-coding machine based on vector quantization
CN113553838A (en) Commodity file generation method and device
CN111291547A (en) Template generation method, device, equipment and medium
CN116225956A (en) Automated testing method, apparatus, computer device and storage medium
CN111178002A (en) Character display method, system and device
CN111090737A (en) Word stock updating method and device, electronic equipment and readable storage medium
CN115034177A (en) Presentation file conversion method, device, equipment and storage medium
CN113190669A (en) Intelligent dialogue method, device, terminal and storage medium
CN111027325A (en) Model generation method, entity identification device and electronic equipment
CN114494522A (en) Character display method, character display device and electronic equipment
CN112507698B (en) Word vector generation method, device, terminal equipment and computer readable storage medium
CN115049899B (en) Model training method, reference expression generation method and related equipment

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