CN112464616A - Method and device for displaying personalized font - Google Patents

Method and device for displaying personalized font Download PDF

Info

Publication number
CN112464616A
CN112464616A CN201910840278.2A CN201910840278A CN112464616A CN 112464616 A CN112464616 A CN 112464616A CN 201910840278 A CN201910840278 A CN 201910840278A CN 112464616 A CN112464616 A CN 112464616A
Authority
CN
China
Prior art keywords
displayed
character
characters
picture
word stock
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910840278.2A
Other languages
Chinese (zh)
Inventor
费腾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201910840278.2A priority Critical patent/CN112464616A/en
Publication of CN112464616A publication Critical patent/CN112464616A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V30/00Character recognition; Recognising digital ink; Document-oriented image-based pattern recognition
    • G06V30/40Document-oriented image-based pattern recognition
    • G06V30/41Analysis of document content
    • G06V30/413Classification of content, e.g. text, photographs or tables
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • Artificial Intelligence (AREA)
  • Software Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and a device for displaying personalized fonts, wherein the method comprises the following steps: determining characters to be displayed on a screen based on user input; if the user sets a handwriting target, checking whether a picture associated with the character to be displayed is in a pre-established personalized word library corresponding to the handwriting target, wherein the picture represents a handwritten character; if so, displaying the picture associated with the character to be displayed on the screen; otherwise, generating a picture associated with the characters to be displayed according to the pictures in the personalized word stock, and displaying the generated picture associated with the characters to be displayed. By utilizing the invention, the personalized font display can be realized, and the user experience is improved.

Description

Method and device for displaying personalized font
Technical Field
The invention relates to the field of information processing, in particular to a method and a device for displaying personalized fonts.
Background
At present, most of fonts of characters displayed on a screen through an input method are preset by a user, such as a song style, a regular script, an clerical script and the like, even if handwriting input is adopted, the characters displayed on the screen are also the set fonts, and the characters cannot be displayed according to the own fonts of the user or the fonts of a user mind. With the development of terminal technology, the demand of people on individuation and differentiation is higher and higher, and the existing character display mode is lack of individuation, so that the user experience is influenced.
Disclosure of Invention
The embodiment of the invention provides a method and a device for displaying personalized fonts, which are used for realizing the display of the personalized fonts and improving the user experience.
Therefore, the invention provides the following technical scheme:
a method of displaying a personalized font, the method comprising:
determining characters to be displayed on a screen based on user input;
checking whether a picture associated with the characters to be displayed exists in a pre-established personalized word stock, wherein the picture presents handwritten characters;
if so, displaying the picture associated with the character to be displayed on the screen;
otherwise, generating a picture associated with the characters to be displayed according to the pictures in the personalized word stock, and displaying the generated picture associated with the characters to be displayed.
Optionally, the method further comprises:
collecting handwriting information;
performing character recognition on the handwriting information to obtain characters corresponding to the handwriting information;
generating a picture associated with the character;
and recording the pictures associated with the characters into a personalized word stock.
Optionally, the listing the picture associated with the character into a personalized word stock includes:
setting the internal code of the character as the internal code of the picture associated with the character;
establishing a corresponding relation between the internal code of the picture and the picture;
recording the corresponding relation into a personalized word stock;
the checking whether the picture corresponding to the character to be displayed exists in the pre-established personalized word stock comprises the following steps:
and checking whether the personalized word stock has a picture corresponding to the character to be displayed according to the internal code of the character to be displayed and the corresponding relation.
Optionally, the acquiring handwriting information includes:
collecting handwriting information in handwriting input; and/or
Taking a picture of the handwriting to obtain a handwriting picture; and extracting handwriting information from the handwriting photo.
Optionally, the generating a picture associated with the character to be displayed according to pictures in the personalized word stock includes:
finding out two or more characters similar to the characters to be displayed on the screen from the personalized word stock as the characters to be split;
respectively extracting different handwriting elements from the picture associated with the character to be split according to the stroke structure of the character to be displayed on the screen;
and generating a picture associated with the character to be displayed by utilizing the handwriting element.
Optionally, the writing elements include any one or more of: radicals, strokes.
Optionally, the method further comprises:
and recording the generated picture associated with the character to be displayed into the personalized word stock.
An apparatus to display a personalized font, the apparatus comprising:
the character determining module is used for determining characters to be displayed on the screen based on user input;
the searching module is used for checking whether a picture associated with the characters to be displayed exists in a pre-established personalized word stock, wherein the picture presents handwritten characters;
the screen-loading control module is used for loading the picture associated with the character to be loaded on the screen when the picture associated with the character to be loaded on the screen exists in the personalized word stock;
the image generation module is used for generating an image associated with the characters to be displayed according to the images in the personalized word stock when the images associated with the characters to be displayed do not exist in the personalized word stock;
the screen-loading control module is also used for loading the picture generated by the picture generation module and associated with the characters to be loaded on the screen.
Optionally, the apparatus further comprises: the word stock establishing module is used for establishing the personalized word stock; the word stock establishing module comprises:
the handwriting acquisition unit is used for acquiring handwriting information;
the recognition unit is used for carrying out character recognition on the handwriting information to obtain characters corresponding to the handwriting information;
a picture generation unit for generating a picture associated with the character;
and the recording unit is used for recording the pictures related to the characters into the personalized word stock.
Optionally, the entry unit comprises:
the internal code setting subunit is used for setting the internal code of the character as the internal code of the picture associated with the character;
a corresponding relation establishing subunit, configured to establish a corresponding relation between the internal code of the picture and the picture;
the storage subunit is used for recording the corresponding relation into an individualized word stock;
and the searching module is specifically used for checking whether a picture corresponding to the character to be displayed exists in the personalized word stock according to the internal code of the character to be displayed and the corresponding relation.
Optionally, the handwriting collecting unit includes: the handwriting acquisition unit and/or the image handwriting acquisition unit;
the handwriting acquisition unit is used for acquiring handwriting information during handwriting input;
the image handwriting acquisition unit is used for photographing the handwriting to obtain a handwriting photo; and extracting handwriting information from the handwriting photo.
Optionally, the picture generation module includes:
a character to be split acquiring unit, configured to find two or more characters similar to the character to be displayed from the personalized word stock, as characters to be split;
the handwriting element extracting unit is used for respectively extracting different handwriting elements from the picture associated with the character to be split according to the stroke structure of the character to be displayed on the screen;
and the combination unit is used for generating a picture associated with the character to be displayed on the screen by using the handwriting elements.
Optionally, the writing elements include any one or more of: radicals, strokes.
Optionally, the apparatus further comprises:
and the storage module is used for recording the generated picture associated with the character to be displayed into the personalized word stock.
A computer device, comprising: one or more processors, memory;
the memory is configured to store computer-executable instructions and the processor is configured to execute the computer-executable instructions to implement the method described above.
A readable storage medium having stored thereon instructions which are executed to implement the foregoing method.
According to the method and the device for displaying the personalized font, provided by the embodiment of the invention, for the character to be displayed on the screen, the picture associated with the character to be displayed on the screen is obtained by utilizing the pre-established personalized font library, and the picture is displayed on the screen, so that the corresponding handwritten character is presented. Compared with the scheme in the prior art that only the characters with the specific font can be displayed when the user inputs the characters by adopting the input method, the scheme of the invention enables the font display to be richer and can better meet the pursuit of the user on the personalized font display. Moreover, under the condition that the personalized word stock does not contain the pictures related to the characters to be displayed on the screen, the pictures related to the characters to be displayed on the screen can be generated according to the pictures of the similar characters in the personalized word stock, so that the influence on the display of the personalized characters when the pictures of the handwritten characters are not enough contained in the personalized word stock is avoided.
Furthermore, the generated pictures related to the characters to be displayed can be recorded into the corresponding personalized word stock, so that the personalized word stock can be dynamically improved.
Furthermore, a picture associated with the character is generated by collecting handwriting information, and not only can the handwriting information be obtained by collecting the handwriting input by the user in real time, but also the handwriting can be photographed to obtain a handwriting photo, and then the handwriting information is extracted from the handwriting photo. Therefore, not only can an individualized character library aiming at the terminal user be established, but also an individualized character library aiming at handwriting targets (such as calligraphy famous family and the like) except the terminal user can be established, so that the individualized character display has more selectivity, the input method is more intelligent and interesting, and the user experience is effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a flow chart of a method of displaying a personalized font according to an embodiment of the present invention;
FIG. 2 is a flow chart of creating a personalized word library in an embodiment of the present invention;
FIG. 3 is a flow chart of generating a new picture using pictures of a personalized word stock in an embodiment of the present invention;
FIG. 4 is a block diagram of an apparatus for displaying personalized fonts according to an embodiment of the present invention;
FIG. 5 is another block diagram of an apparatus for displaying personalized fonts according to an embodiment of the present invention;
FIG. 6 is a block diagram illustrating an apparatus of a method for displaying personalized fonts, according to an example embodiment;
fig. 7 is a schematic structural diagram of a server in an embodiment of the present invention.
Detailed Description
In order to make the technical field of the invention better understand the scheme of the embodiment of the invention, the embodiment of the invention is further described in detail with reference to the drawings and the implementation mode.
The embodiment of the invention provides a method and a device for displaying personalized fonts, wherein for characters to be displayed on a screen, a picture associated with the characters to be displayed on the screen is obtained by utilizing a pre-established personalized font library, and the picture is displayed on the screen, so that corresponding handwritten characters are presented. And if the personalized word stock does not contain the picture associated with the character to be displayed, generating the picture associated with the character to be displayed according to the pictures of the similar characters in the personalized word stock, and displaying the generated picture associated with the character to be displayed.
As shown in fig. 1, it is a flowchart of a method for displaying a personalized font according to an embodiment of the present invention, and the method includes the following steps:
step 101, determining characters to be displayed on the screen based on user input.
During user input, the characters to be displayed are determined based on current user input. The user input may be any input means, such as: pinyin input, five-stroke input, voice input, handwriting input, gestures, and the like.
The character to be displayed is a character determined by the input method according to the information input by the user, and the mode for determining the character to be displayed is determined by the input method for different input methods, so that the embodiment of the invention is not limited.
And 102, checking whether a picture associated with the characters to be displayed exists in a pre-established personalized word stock, wherein the picture presents handwritten characters. If yes, go to step 104; otherwise, step 103 is performed.
It should be noted that, in practical applications, a personalized word stock for a terminal user may be established in advance, and a picture associated with the handwriting character of the user may be recorded. Even a personalized word stock for handwriting objects (such as calligraphers) other than the terminal user can be established, and pictures associated with the handwriting characters of the target object are recorded.
Correspondingly, under the condition that the personalized word stock of a plurality of handwriting objects exists, the user can preset the type of the personalized word stock to be used, and whether the picture associated with the character to be displayed exists in the personalized word stock corresponding to the type or not needs to be checked in step 102. Of course, if the user does not set the type of personalized word stock to be used, a default personalized word stock, which may be, for example, a personalized word stock for the user himself, may be checked in step 102.
In addition, it should be noted that the personalized word stock may be stored locally or on a cloud server, and when in use, the corresponding personalized word stock is obtained and loaded from the cloud server.
And 103, generating a picture associated with the characters to be displayed according to the pictures in the personalized word stock. Then, step 104 is performed.
And 104, displaying the picture associated with the character to be displayed on the screen.
According to the method for displaying the personalized fonts, provided by the embodiment of the invention, for the characters to be displayed on the screen, the picture associated with the characters to be displayed on the screen is obtained by utilizing the pre-established personalized font library, and the picture is displayed on the screen, so that the corresponding handwritten characters are presented. Compared with the scheme in the prior art that only the characters with the specific font can be displayed when the user inputs the characters by adopting the input method, the scheme of the invention enables the font display to be richer and can better meet the pursuit of the user on the personalized font display. Moreover, under the condition that the personalized word stock does not contain the pictures related to the characters to be displayed on the screen, the pictures related to the characters to be displayed on the screen can be generated according to the pictures of the similar characters in the personalized word stock, so that the influence on the display of the personalized characters when the pictures of the handwritten characters are not enough contained in the personalized word stock is avoided.
As shown in fig. 2, it is a flowchart of establishing a personalized word stock in the embodiment of the present invention, and the flowchart includes the following steps:
step 201, collecting handwriting information.
As mentioned above, the personalized word stock in the embodiment of the present invention may be a word stock that records the handwriting characters of the user, or may be a word stock that records the handwriting characters of other objects.
For the handwriting information of the user, online acquisition can be carried out when the user carries out handwriting input; or photographing the handwriting of the user to obtain a handwriting photo, and extracting handwriting information from the handwriting photo.
Of course, for the handwriting information of other objects except the user, only the latter photographing mode can be adopted to obtain the handwriting photo, and then the handwriting information is extracted from the handwriting photo.
For extracting handwriting information from the handwriting photo, the existing technology can be adopted to obtain the handwriting information.
And 202, performing character recognition on the handwriting information to obtain characters corresponding to the handwriting information.
Specifically, some existing handwriting recognition technologies may be adopted to obtain the characters corresponding to the handwriting information.
Step 203, generating a picture associated with the character.
In practical application, the image associated with the character may be an image generated by directly acquiring or extracting handwriting information, or an image generated by further processing the acquired or extracted handwriting, for example, the processing may be beautifying, deforming, and the like, and the embodiment of the present invention is not limited thereto.
And 204, recording the pictures associated with the characters into a personalized word stock.
In order to facilitate searching for the pictures in the personalized word stock, the internal code of the character can be set as the internal code of the picture associated with the character, the corresponding relation between the internal code of the picture and the picture is established, and the corresponding relation is recorded in the personalized word stock.
Correspondingly, when checking whether the personalized word stock has the picture corresponding to the character to be displayed, whether the personalized word stock has the picture corresponding to the character to be displayed can be checked according to the internal code of the character to be displayed and the corresponding relation.
Of course, in practical applications, other storage manners may also be adopted, and the embodiment of the present invention is not limited.
In the embodiment of the present invention, the pictures corresponding to the characters recorded in the personalized word stock may be supplemented at any time in the application, at an initial stage of establishing the personalized word stock, the pictures recorded in the personalized word stock and associated with the characters are limited, and when the pictures associated with the characters to be displayed are not found in the personalized word stock, the pictures associated with the characters to be displayed may also be generated according to the existing pictures in the personalized word stock. Further, the generated pictures associated with the characters to be displayed can be recorded in the personalized word stock. This will be explained in detail below.
As shown in fig. 3, it is a flowchart of generating a new picture by using pictures of a personalized word stock in the embodiment of the present invention, and the method includes the following steps:
step 301, finding out two or more characters similar to the characters to be displayed on the screen from the personalized word stock as the characters to be split.
Because each character is composed of some basic units, for example, a Chinese character is composed of strokes of horizontal stroke, vertical stroke, left-falling stroke, right-falling stroke, lifting stroke and the like, namely the strokes are the basic units of the Chinese character. When people write, the same basic units should be written out with similarity. Therefore, in the embodiment of the invention, by using the characteristic of the character, two or more characters similar to the character to be displayed on the screen are found out from the personalized word stock, different handwriting elements are extracted from the characters by splitting the handwriting elements of the characters, and then the extracted handwriting elements are combined into the character to be displayed on the screen to obtain the corresponding picture.
And 302, respectively extracting different handwriting elements from the picture associated with the character to be split according to the stroke structure of the character to be displayed.
The handwriting elements include, but are not limited to, any one or more of the following: radicals, strokes.
And 303, generating a picture associated with the character to be displayed by using the handwriting element.
Furthermore, the generated picture associated with the character to be displayed can be recorded in the personalized word stock, so that the personalized word stock is more complete. Of course, the pictures in the personalized word stock may also be supplemented by other ways, such as the two aforementioned ways: one is that the handwriting information is collected when the user inputs handwriting, and a picture corresponding to the corresponding character is generated; and the other method is that the handwriting is photographed to obtain a handwriting photo, handwriting information is extracted from the handwriting photo, and then a picture corresponding to the corresponding character is generated.
In practical application, the method for displaying personalized fonts provided by the embodiment of the invention can be applied to a user terminal, and when a user inputs on the terminal by using an input method, personalized handwritten characters can be displayed by using the personalized word stock. It should be noted that the personalized word stock can be stored on the terminal; the personalized word stock can also be stored on a cloud server, the cloud server binds the personalized word stock with terminal information (such as a mobile phone number), and a user can download the corresponding personalized word stock from the cloud server when using the personalized word stock. Of course, the user may also share the personalized word stock of the user with other users for use, and the embodiment of the present invention is not limited thereto.
In addition, in practical application, for the same user, personalized word libraries corresponding to different types can be established, for example, a personalized word library corresponding to the user, a personalized word library corresponding to a certain calligraphy famous person, a personalized word library of a user handwriting variant and the like. Accordingly, before checking the pre-established personalized word stock in step 102 shown in fig. 1, it is further required to determine the type of the personalized word stock selected by the user, and obtain the personalized word stock corresponding to the type.
According to the method for displaying the personalized fonts, provided by the embodiment of the invention, for the characters to be displayed on the screen, the picture associated with the characters to be displayed on the screen is obtained by utilizing the pre-established personalized font library, and the picture is displayed on the screen, so that the corresponding handwritten characters are presented. Compared with the scheme in the prior art that only the characters with the specific font can be displayed when the user inputs the characters by adopting the input method, the scheme of the invention enables the font display to be richer and can better meet the pursuit of the user on the personalized font display. Moreover, under the condition that the personalized word stock does not contain the pictures related to the characters to be displayed on the screen, the pictures related to the characters to be displayed on the screen can be generated according to the pictures of the similar characters in the personalized word stock, so that the influence on the display of the personalized characters when the pictures of the handwritten characters are not enough contained in the personalized word stock is avoided. Moreover, through the plurality of different types of personalized word libraries, the displayed personalized fonts are more diverse, and the user experience is effectively improved.
Correspondingly, an embodiment of the present invention further provides an apparatus for displaying a personalized font, as shown in fig. 4, which is a structural block diagram of the apparatus.
In this embodiment, the apparatus includes the following modules:
a character determination module 401, configured to determine a character to be displayed on a screen based on user input;
a searching module 402, configured to check whether a picture associated with the character to be displayed is present in a pre-established personalized word stock, where the picture represents a handwritten character;
a screen-up control module 403, configured to, when there is a picture associated with the character to be screen-up in the personalized word stock, screen up the picture associated with the character to be screen-up;
a picture generating module 404, configured to generate, when there is no picture associated with the character to be displayed in the personalized word stock, a picture associated with the character to be displayed according to the picture in the personalized word stock;
the screen-loading control module 403 is further configured to screen-load the picture generated by the picture generation module 404 and associated with the character to be screen-loaded.
The personalized word stock may be pre-established by a word stock establishing module (not shown), and a specific structure of the word stock establishing module may include the following units:
the handwriting acquisition unit is used for acquiring handwriting information;
the recognition unit is used for carrying out character recognition on the handwriting information to obtain characters corresponding to the handwriting information;
a picture generation unit for generating a picture associated with the character;
and the recording unit is used for recording the pictures related to the characters into the personalized word stock.
In practical application, the handwriting collecting unit can collect handwriting information in real time during handwriting input and can also collect handwriting information in an image. Accordingly, the handwriting collecting unit may include: the handwriting acquisition unit and/or the image handwriting acquisition unit; wherein: the handwriting acquisition unit is used for acquiring handwriting information during handwriting input; the image handwriting acquisition unit is used for photographing handwriting to obtain a handwriting photo; and extracting handwriting information from the handwriting photo.
In addition, a personalized word stock for the terminal user can be established in advance, and the picture associated with the handwriting characters of the user can be recorded; a personalized word stock for handwriting objects (such as calligraphers) other than the terminal user can be established, and pictures associated with the handwriting characters of the target object are recorded.
Correspondingly, under the condition that a plurality of personalized word libraries corresponding to different types are built in advance, the device of the invention can also be provided with: and a determining module (not shown) for determining the type of the personalized word stock selected by the user and acquiring the personalized word stock corresponding to the type. Accordingly, the searching module 402 needs to check whether the personalized word library acquired by the determining module has a picture associated with the character to be displayed.
In order to facilitate searching for the picture in the personalized word stock, the entry unit may set the internal code of the character as the internal code of the picture associated with the character, establish a corresponding relationship between the internal code of the picture and the picture, and record the corresponding relationship into the personalized word stock. Accordingly, the logging unit may comprise the following subunits:
the internal code setting subunit is used for setting the internal code of the character as the internal code of the picture associated with the character;
a corresponding relation establishing subunit, configured to establish a corresponding relation between the internal code of the picture and the picture;
the storage subunit is used for recording the corresponding relation into an individualized word stock;
correspondingly, when checking whether a picture corresponding to the character to be displayed is present in the personalized word stock, the searching module 402 may check whether a picture corresponding to the character to be displayed is present in the personalized word stock according to the internal code of the character to be displayed and the corresponding relationship.
Of course, in practical applications, other storage manners may also be adopted, and the embodiment of the present invention is not limited.
At the initial stage of establishing the personalized word stock, the pictures related to the characters recorded by the searching module 402 are limited, and if the searching module 402 does not search the pictures related to the characters to be displayed in the personalized word stock, the pictures related to the characters to be displayed can be generated by the picture generating module 404 according to the existing pictures in the personalized word stock.
One specific structure of the picture generation module 404 may include the following units:
a character to be split acquiring unit, configured to find two or more characters similar to the character to be displayed from the personalized word stock, as characters to be split;
the handwriting element extracting unit is used for respectively extracting different handwriting elements from the picture associated with the character to be split according to the stroke structure of the character to be displayed on the screen;
and the combination unit is used for generating a picture associated with the character to be displayed on the screen by using the handwriting elements.
Further, in another embodiment of the apparatus for displaying personalized fonts shown in fig. 5, the apparatus may further include: and a storage module 405, configured to record the generated picture associated with the character to be displayed in the personalized word stock 400.
Therefore, when a subsequent user needs to display a corresponding personalized character, the picture associated with the character can be directly searched from the personalized word stock, and the picture is displayed.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
According to the device for displaying the personalized fonts, provided by the embodiment of the invention, for the characters to be displayed on the screen, the picture associated with the characters to be displayed on the screen is obtained by utilizing the pre-established personalized font library, and the picture is displayed on the screen, so that the corresponding handwritten characters are presented. Compared with the scheme in the prior art that only the characters with the specific font can be displayed when the user inputs the characters by adopting the input method, the scheme of the invention enables the font display to be richer and can better meet the pursuit of the user on the personalized font display. Moreover, under the condition that the personalized word stock does not contain the pictures related to the characters to be displayed on the screen, the pictures related to the characters to be displayed on the screen can be generated according to the pictures of the similar characters in the personalized word stock, so that the influence on the display of the personalized characters when the pictures of the handwritten characters are not enough contained in the personalized word stock is avoided.
It should be noted that the screenshot processing method and apparatus in the embodiment of the present invention may be applied to various terminal devices, such as a mobile phone, a computer, and a notebook.
Fig. 6 is a block diagram illustrating an apparatus 800 for a method of displaying a personalized font, according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 6, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power component 806 provides power to the various components of device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed state of the device 800, the relative positioning of the components, such as a display and keypad of the apparatus 800, the sensor assembly 814 may also detect a change in position of the apparatus 800 or a component of the apparatus 800, the presence or absence of user contact with the apparatus 800, orientation or acceleration/deceleration of the apparatus 800, and a change in temperature of the apparatus 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the key press false touch correction method described above is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a key press mis-touch error correction method, the method comprising: in the input process of a user, acquiring pressing information when each key is triggered; determining a false triggering key according to the acquired pressing information; correcting error of the false triggering key; and determining each candidate word corresponding to the corrected complete input string.
Fig. 7 is a schematic structural diagram of a server in an embodiment of the present invention. The server 1900, which may vary widely in configuration or performance, may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) that store applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a device, enable the device to perform the key press mis-touch correction method described above.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (10)

1. A method of displaying a personalized font, the method comprising:
determining characters to be displayed on a screen based on user input;
checking whether a picture associated with the characters to be displayed exists in a pre-established personalized word stock, wherein the picture presents handwritten characters;
if so, displaying the picture associated with the character to be displayed on the screen;
otherwise, generating a picture associated with the characters to be displayed according to the pictures in the personalized word stock, and displaying the generated picture associated with the characters to be displayed.
2. The method of claim 1, further comprising:
collecting handwriting information;
performing character recognition on the handwriting information to obtain characters corresponding to the handwriting information;
generating a picture associated with the character;
and recording the pictures associated with the characters into a personalized word stock.
3. The method of claim 2, wherein the including the picture associated with the character into a personalized word stock comprises:
setting the internal code of the character as the internal code of the picture associated with the character;
establishing a corresponding relation between the internal code of the picture and the picture;
recording the corresponding relation into a personalized word stock;
the checking whether the picture corresponding to the character to be displayed exists in the pre-established personalized word stock comprises the following steps:
and checking whether the personalized word stock has a picture corresponding to the character to be displayed according to the internal code of the character to be displayed and the corresponding relation.
4. The method of claim 2, wherein the gathering handwriting information comprises:
collecting handwriting information in handwriting input; and/or
Taking a picture of the handwriting to obtain a handwriting picture; and extracting handwriting information from the handwriting photo.
5. The method of claim 1, wherein generating the picture associated with the character to be displayed according to the picture in the personalized word stock comprises:
finding out two or more characters similar to the characters to be displayed on the screen from the personalized word stock as the characters to be split;
respectively extracting different handwriting elements from the picture associated with the character to be split according to the stroke structure of the character to be displayed on the screen;
and generating a picture associated with the character to be displayed by utilizing the handwriting element.
6. A method according to claim 5, wherein the writing elements include any one or more of: radicals, strokes.
7. The method according to any one of claims 1 to 6, further comprising:
and recording the generated picture associated with the character to be displayed into the personalized word stock.
8. An apparatus for displaying a personalized font, the apparatus comprising:
the character determining module is used for determining characters to be displayed on the screen based on user input;
the searching module is used for checking whether a picture associated with the characters to be displayed exists in a pre-established personalized word stock, wherein the picture presents handwritten characters;
the screen-loading control module is used for loading the picture associated with the character to be loaded on the screen when the picture associated with the character to be loaded on the screen exists in the personalized word stock;
the image generation module is used for generating an image associated with the characters to be displayed according to the images in the personalized word stock when the images associated with the characters to be displayed do not exist in the personalized word stock;
the screen-loading control module is also used for loading the picture generated by the picture generation module and associated with the characters to be loaded on the screen.
9. A computer device, comprising: one or more processors, memory;
the memory is for storing computer-executable instructions, and the processor is for executing the computer-executable instructions to implement the method of any one of claims 1 to 7.
10. A readable storage medium having stored thereon instructions that are executed to implement the method of any one of claims 1 to 7.
CN201910840278.2A 2019-09-06 2019-09-06 Method and device for displaying personalized font Pending CN112464616A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910840278.2A CN112464616A (en) 2019-09-06 2019-09-06 Method and device for displaying personalized font

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910840278.2A CN112464616A (en) 2019-09-06 2019-09-06 Method and device for displaying personalized font

Publications (1)

Publication Number Publication Date
CN112464616A true CN112464616A (en) 2021-03-09

Family

ID=74806818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910840278.2A Pending CN112464616A (en) 2019-09-06 2019-09-06 Method and device for displaying personalized font

Country Status (1)

Country Link
CN (1) CN112464616A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639846A (en) * 2009-08-20 2010-02-03 无敌科技(西安)有限公司 Method for user-defined character font
CN101667102A (en) * 2009-09-21 2010-03-10 宇龙计算机通信科技(深圳)有限公司 Realizing method for personalized fonts and electronic terminal
CN103136769A (en) * 2011-12-02 2013-06-05 北京三星通信技术研究有限公司 Method and device of generation of writing style font of user
CN103207755A (en) * 2012-01-13 2013-07-17 宇龙计算机通信科技(深圳)有限公司 Terminal and character font changing method
KR20140008773A (en) * 2012-07-12 2014-01-22 주식회사 인프라웨어 Method of applying personal hand-writing for character-input applications, and computer-readable recording medium with personal hand-writing applying program for the same
CN103631550A (en) * 2012-08-24 2014-03-12 中兴通讯股份有限公司 Method and device for displaying individualized typefaces
CN105335198A (en) * 2015-11-13 2016-02-17 小米科技有限责任公司 Font addition method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101639846A (en) * 2009-08-20 2010-02-03 无敌科技(西安)有限公司 Method for user-defined character font
CN101667102A (en) * 2009-09-21 2010-03-10 宇龙计算机通信科技(深圳)有限公司 Realizing method for personalized fonts and electronic terminal
CN103136769A (en) * 2011-12-02 2013-06-05 北京三星通信技术研究有限公司 Method and device of generation of writing style font of user
CN103207755A (en) * 2012-01-13 2013-07-17 宇龙计算机通信科技(深圳)有限公司 Terminal and character font changing method
KR20140008773A (en) * 2012-07-12 2014-01-22 주식회사 인프라웨어 Method of applying personal hand-writing for character-input applications, and computer-readable recording medium with personal hand-writing applying program for the same
CN103631550A (en) * 2012-08-24 2014-03-12 中兴通讯股份有限公司 Method and device for displaying individualized typefaces
CN105335198A (en) * 2015-11-13 2016-02-17 小米科技有限责任公司 Font addition method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨压难: "字幕机字库的个性化", 现代电视技术, no. 11, 15 November 2003 (2003-11-15) *

Similar Documents

Publication Publication Date Title
US10296201B2 (en) Method and apparatus for text selection
CN109359056B (en) Application program testing method and device
RU2648616C2 (en) Font addition method and apparatus
CN107943317B (en) Input method and device
CN111797746B (en) Face recognition method, device and computer readable storage medium
CN108073291B (en) Input method and device and input device
CN110648657A (en) Language model training method, language model construction method and language model construction device
CN110213062B (en) Method and device for processing message
CN112667852B (en) Video-based searching method and device, electronic equipment and storage medium
CN110968246A (en) Intelligent Chinese handwriting input recognition method and device
CN112784858B (en) Image data processing method and device and electronic equipment
CN113873165A (en) Photographing method and device and electronic equipment
CN112464616A (en) Method and device for displaying personalized font
CN111208910B (en) Cloud association method and related device
CN110008135B (en) Information processing method and device and electronic equipment
CN112905023A (en) Input error correction method and device for input error correction
CN112000571A (en) Test method, test device and test device
CN112732098A (en) Input method and related device
CN112015281A (en) Cloud association method and related device
CN112990240B (en) Method and related device for determining vehicle type
CN109947264B (en) Information display method and device and electronic equipment
CN112242142B (en) Voice recognition input method and related device
CN111078022B (en) Input method and device
US20230274565A1 (en) Image, pattern and character recognition
CN111722726B (en) Method and device for determining pigment and text

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