CN112805674A - Font setting method and device - Google Patents
Font setting method and device Download PDFInfo
- Publication number
- CN112805674A CN112805674A CN201880098559.9A CN201880098559A CN112805674A CN 112805674 A CN112805674 A CN 112805674A CN 201880098559 A CN201880098559 A CN 201880098559A CN 112805674 A CN112805674 A CN 112805674A
- Authority
- CN
- China
- Prior art keywords
- font
- handwritten
- user
- data
- model
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 90
- 238000013473 artificial intelligence Methods 0.000 claims abstract description 203
- 238000012545 processing Methods 0.000 claims description 18
- 230000015654 memory Effects 0.000 claims description 17
- 238000012549 training Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 14
- 238000004891 communication Methods 0.000 claims description 11
- 230000008447 perception Effects 0.000 claims description 10
- 238000003062 neural network model Methods 0.000 claims description 8
- 238000013527 convolutional neural network Methods 0.000 claims description 6
- 230000009286 beneficial effect Effects 0.000 abstract 1
- 230000006870 function Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 10
- 238000010586 diagram Methods 0.000 description 6
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000011176 pooling Methods 0.000 description 2
- 244000025254 Cannabis sativa Species 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013135 deep learning Methods 0.000 description 1
- 238000013136 deep learning model Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000002708 enhancing effect Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
- G06F3/0488—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
Abstract
A font setting method and device. The method comprises the following steps: displaying a font setting interface, wherein the font setting interface comprises an Artificial Intelligence (AI) font option (S201); when a selection operation for the AI font option is detected, acquiring first handwritten font data of a first user (S202); obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data (S203); generating an AI font resource library through the first AI font model (S204); and invoking the fonts in the first AI font resource library for text display (S205). The character body characteristic learning method is beneficial to efficiently learning character body characteristics from the first handwritten character body data to generate the first AI character body model, realizes that the character body displayed by the electronic equipment is matched with the actual handwriting habit character body of the user, and improves the experience of the user.
Description
The application relates to the technical field of mobile terminals, in particular to a font setting method and device.
With the continuous development of electronic technology, the consumption level of people is continuously improved, the consumption concept and the life style of people are deeply changed, and the personalized demand becomes the mainstream. With the increasing functions of electronic devices, how to meet the requirement of personalized design of users is a hot issue of research. One of the important functions of the mobile phone is to display information, and the font of the information cannot be left in the information display. At present, a mobile phone user does not meet a single mobile phone built-in font, and an online APP Store also has a large set of personalized fonts, for example: the mobile phone has the advantages that the mobile phone is in star font, young circle, wild grass and the like, but the selectivity of the user is low, the user is easily dull, the experience of the user is low, and the individuation becomes a new requirement of the user for the mobile phone.
Disclosure of Invention
The embodiment of the application provides a font setting method and device, and comprehensiveness and accuracy of a target model in processing a recommended task can be improved.
In a first aspect, an embodiment of the present application provides a font setting method applied to an electronic device, where the method includes:
displaying a font setting interface, wherein the font setting interface comprises an Artificial Intelligence (AI) font option;
when the selection operation aiming at the AI font option is detected, acquiring first handwritten font data of a first user;
obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data;
generating an AI font resource library through the first AI font model;
and calling fonts in the first AI font resource library to display characters.
In a second aspect, an embodiment of the present application provides a font setting apparatus applied to an electronic device, the font setting apparatus including a processing unit and a communication unit, wherein,
the processing unit is used for displaying a font setting interface, and the font setting interface comprises an Artificial Intelligence (AI) font option; the processing unit is used for acquiring first handwritten word volume data of a first user through the communication unit when the selection operation aiming at the AI font option is detected; obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data; generating an AI font resource library through the first AI font model; and calling the fonts in the first AI font resource library to display characters.
In a third aspect, an embodiment of the present application provides a mobile terminal, including a processor, a memory, a communication interface, and one or more programs, where the one or more programs are stored in the memory and configured to be executed by the processor, and the program includes instructions for executing the steps in any of the methods of the first aspect of the embodiments of the present application.
In a fourth aspect, this application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program for electronic data exchange, where the computer program is to make a computer perform part or all of the steps as described in any one of the methods of the first aspect of this application, and the computer includes a mobile terminal.
In a fifth aspect, the present application provides a computer program product, wherein the computer program product comprises a non-transitory computer-readable storage medium storing a computer program, the computer program being operable to cause a computer to perform some or all of the steps as described in any one of the methods of the first aspect of the embodiments of the present application. The computer program product may be a software installation package, said computer comprising a mobile terminal.
It can be seen that, in the embodiment of the application, the electronic device displays a font setting interface, where the font setting interface includes an artificial intelligence AI font option; when the electronic equipment detects the selection operation aiming at the AI font option, first acquiring first handwritten font data of a first user; secondly, obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data; thirdly, generating an AI font resource library through the first AI font model; and finally, calling the fonts in the first AI font resource library to display the characters. Therefore, the method for acquiring the first handwritten word data of the user by the electronic device has diversity and convenience, the electronic device can obtain the first AI font model associated with the handwriting habit of the first user according to the first handwritten word data of the user, and the font model can be generated by efficiently learning the character features from the first handwritten word data; the AI font resource library is generated by utilizing the font setting, and the font setting is not needed to be carried out on each font in the resource library in the process, so that the requirement on the data volume of the first handwritten font is avoided, and the universality of the font generation method is improved. The final user can customize the fonts belonging to the terminal in a personalized manner, the display fonts of the electronic equipment are matched with the actual handwriting habit fonts of the user, the display characteristics of the terminal are improved, and the experience of the user is improved.
Reference will now be made in brief to the accompanying drawings, to which embodiments of the present application relate.
FIG. 1a is a schematic diagram of a system font setting interface provided in an embodiment of the present application;
FIG. 1b is a diagram of an example of font display in a font body store provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of a font setting method provided in an embodiment of the present application;
FIG. 3 is a flow chart illustrating a font setting method disclosed in an embodiment of the present application;
FIG. 4 is a flow chart illustrating a font setting method disclosed in an embodiment of the present application;
FIG. 5 is a flow chart illustrating a font setting method disclosed in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application;
fig. 7 is a block diagram illustrating functional units of an electronic device according to an embodiment of the present disclosure.
In order to make the technical solutions of the present application better understood, 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 terms "first," "second," and the like in the description and claims of the present application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The Mobile terminal according to the embodiment of the present application may include various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of User Equipment (UE), Mobile Stations (MS), terminal devices (terminal device), and the like. For convenience of description, the above-mentioned devices are collectively referred to as a mobile terminal. The operating system related to the embodiment of the application is a software system which performs unified management on hardware resources and provides a service interface for a user.
In general design, as shown in fig. 1a, fonts supported and set by a mobile terminal at present mainly include two types, one type is a system font carried by the mobile terminal itself, and the other type is a font downloaded by a user from an application store, a theme store, and the like, where the system font is generally configured in advance by a developer before equipment leaves a factory, and is updated through a mechanism such as system update, and as shown in fig. 1b, a format of a font resource downloaded by the user is already fixed, and the user can only directly activate the font resource through subscription, purchase, and the like, and cannot change a style of the font resource to better adapt to an actual handwriting habit of the user.
In view of the above situation, an embodiment of the present application provides a font setting method, and the following describes the embodiment of the present application with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 is a schematic flowchart of a font setting method provided in an embodiment of the present application, and is applied to an electronic device, where as shown in the figure, the font setting method includes:
s201, the electronic equipment displays a font setting interface, wherein the font setting interface comprises an Artificial Intelligence (AI) font option;
the electronic equipment enters a font setting interface according to a user instruction, and the interface comprises fixed-style font options and Artificial Intelligence (AI) font options provided by a traditional main body shop.
S202, when the electronic equipment detects the selection operation aiming at the AI font option, acquiring first handwritten font data of a first user;
the selection operation for the AI font option has diversity, including but not limited to letting the user write by hand on paper, then using a camera to shoot the numbers, letters, chinese characters, etc. written by the user, and letting the user write down the numbers, letters, chinese characters, etc. on a touch screen of a mobile phone. And the first user not only refers to the owner user of the electronic equipment, but also includes other users besides the owner user, such as calligraphy master, celebrity, lover, and the like.
S203, the electronic equipment obtains a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data;
according to the difference of writing habits of each person, the handwriting font of each user has the writing habits of the user, such as continuous writing, light and heavy of starting a pen and the like, and the electronic equipment trains the font model with the writing habits of the user according to the writing habits of the font of the user.
S204, the electronic equipment generates an AI font resource library through the first AI font model;
in the implementation, the electronic equipment generates a font library with the personal writing habits of the user through a large amount of training according to the obtained font model with the writing habits of the user.
S205, the electronic equipment calls the fonts in the first AI font resource library to display the characters.
After the electronic equipment generates the font library with the writing habits of the user, when the electronic equipment needs to be used, the font library with the personal writing habits of the user is directly called out for display.
It can be seen that, in the embodiment of the application, the electronic device displays a font setting interface, where the font setting interface includes an artificial intelligence AI font option; when the electronic equipment detects the selection operation aiming at the AI font option, first acquiring first handwritten font data of a first user; secondly, obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data; thirdly, generating an AI font resource library through the first AI font model; and finally, calling the fonts in the first AI font resource library to display the characters. Therefore, the method for acquiring the first handwritten word data of the user by the electronic device has diversity and convenience, the electronic device can obtain the first AI font model associated with the handwriting habit of the first user according to the first handwritten word data of the user, and the font model can be generated by efficiently learning the font features from the original data; the AI font resource library is generated by utilizing the font setting, and the font setting is not needed to be carried out on each font in the resource library in the process, so that the requirement on the data volume of the first handwritten font is avoided, and the universality of the font generation method is improved. The final user can customize the fonts belonging to the terminal in a personalized manner, the display fonts of the electronic equipment are matched with the actual handwriting habit fonts of the user, the display characteristics of the terminal are improved, and the experience of the user is improved.
In one possible example, the obtaining first handwritten font data of the first user includes:
outputting a handwritten font guide interface; acquiring first handwritten character data input by a first user on the handwritten character guide interface; and/or inquiring the input method use record of the electronic equipment; extracting first handwritten character volume data in a handwritten keyboard mode from the input method use record; and/or shooting to obtain a handwritten font image of the first user; generating first handwritten font data according to the handwritten font image; and/or receiving first handwritten character data of a first user from a terminal or a server.
The electronic equipment outputs a handwritten font guide interface firstly, a user records a handwritten font in the handwritten font guide interface according to requirements, and the requirements are the handwritten font of a section of characters input at will or the handwritten font of the section of characters input according to specified characters. And the input method records of the user can be inquired, and the font records input under the handwriting keyboard mode are extracted when the user is detected to have handwriting input before. Or when a user writes on paper or other bearing objects by using a pen, the electronic equipment collects images through the camera and writes the volume data by first hand. The electronic equipment can also acquire the handwriting fonts of celebrities, calligraphy masters and the like from a terminal or a server.
Therefore, in this example, the method for acquiring the first handwritten character data of the user by the electronic device has diversity and convenience, so that the user can set the personal font according to the writing habit of the user, and can set the font of the celebrity or the font of the calligrapher and the like which the user likes as the personal font, thereby improving the font selectivity and the user experience.
In one possible example, the deriving, from the first handwritten font data, a first AI font model associated with a first user handwriting habit includes: generating handwritten font sample data according to the first handwritten font data; and training a pre-configured AI font model by using the handwriting font sample data to obtain a trained first AI font model.
As can be seen, in this example, the electronic device trains the collected handwritten fonts as sample data to obtain a font model related to the handwritten fonts, so that the requirement on the data size of the first handwritten font is avoided, and the universality of the font generation method is improved.
In one possible example, the deriving, from the first handwritten font data, a first AI font model associated with a first user handwriting habit includes: sending the first handwritten font data to a server; receiving a first AI font model from the server, the first AI font model being obtained by the server performing the following operations: generating handwritten font sample data according to the first handwritten font data, and training a pre-configured AI font model by using the handwritten font sample data to obtain a trained first AI font model.
The server trains the received handwritten font as sample data to obtain a font model related to the handwritten font, and then the server sends the trained font model to the electronic equipment. The requirement on the data size of the first handwritten font is avoided, and the universality of the font generation method is improved.
Therefore, in this example, the model training of the font does not need to be performed on the electronic device, and the model training is performed on the server and then the model is sent to the electronic device, so that the running memory of the electronic device is saved, the requirement on the data volume of the first handwritten font is avoided, and the universality of the font generation method is improved.
In one possible example, after the generating an AI font resource library by the first AI font model, the method further comprises: determining high-frequency using fonts in the AI font resource library; calling and displaying the high-frequency using fonts in the AI font resource library; outputting a handwriting perception area when a selection operation aiming at the high-frequency use font is detected; acquiring second handwriting volume data input by a user through the handwriting perception area; training the first AI font model with the second handwritten font data to update the first AI font model.
The high frequency refers to the number of times of using the font within a preset time period. When the fact that the user needs to call the high-frequency using font is detected, the handwriting input keyboard is output, the user can input the high-frequency using font again in a handwriting mode, and therefore the purpose of updating the font model is achieved.
Therefore, in this example, when it is detected that the user needs to call the high-frequency font, the electronic device enables the user to perform handwriting input again for the high-frequency font, and updates the first AI font model, so that the handwritten font of the electronic device is closer to the handwritten font of the user, and the accuracy of the font model and the experience of the user are improved.
In one possible example, the fonts in the first AI font resource library include at least one of: chinese characters, numbers, letters.
The fonts in the first AI font resource library include but are not limited to chinese characters, numbers, letters, and also include characters, symbols, and the like.
It can be seen that, in this example, the electronic device not only adapts the first AI font resource library to chinese characters, numbers, letters, etc., thereby improving the universality of the writing habits of the user and enhancing the uniformity and harmony of the displayed chinese characters, numbers, letters, etc.
In one possible example, the first handwritten word data is a neural network model, the neural network model including any one of: a generative confrontation network, a convolutional neural network and a nonlinear kernel residual error network.
Among them, the Generative Adaptive Networks (GAN) is a deep learning model, and is one of the most promising methods for unsupervised learning in complex distribution in recent years. The model passes through (at least) two modules in the framework: the mutual game learning of the Generative Model (Generative Model) and the Discriminative Model (Discriminative Model) yields a reasonably good output. When the first handwritten character data is limited, the generative confrontation network can be used for data enhancement. Convolutional Neural Network (CNN) is a feed-forward Neural Network that includes Convolutional layers (Convolutional layer) and pooling layers (pooling layer). For handwritten character recognition, the method can be based on nonlinear core residual error network algorithm recognition.
Therefore, in the present example, the electronic device can deeply describe the first handwritten character sample data according to various algorithms, and can efficiently and automatically learn the character of the character from the original data; the method overcomes the defects of the prior art of the deep learning network in the field of handwritten character recognition. The technology is simple and easy to realize, and the network training efficiency is improved while the handwritten character recognition performance is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart of a font setting method provided in an embodiment of the present application, and the font setting method is applied to an electronic device, where as shown in the figure, the font setting method includes:
s301, the electronic equipment displays a font setting interface, wherein the font setting interface comprises an Artificial Intelligence (AI) font option;
s302, when the electronic equipment detects the selection operation aiming at the AI font option, acquiring first handwritten font data of a first user;
s303, the electronic equipment generates handwritten font sample data according to the first handwritten font data;
s304, the electronic equipment trains a pre-configured AI font model by using the handwriting font sample data to obtain a first trained AI font model;
s305, the electronic equipment generates an AI font resource library through the first AI font model;
s306, the electronic equipment calls the fonts in the first AI font resource library to display the characters.
It can be seen that, in the embodiment of the application, the electronic device displays a font setting interface, where the font setting interface includes an artificial intelligence AI font option; when the electronic equipment detects the selection operation aiming at the AI font option, first acquiring first handwritten font data of a first user; secondly, obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data; thirdly, generating an AI font resource library through the first AI font model; and finally, calling the fonts in the first AI font resource library to display the characters. Therefore, the method for acquiring the first handwritten word data of the user by the electronic device has diversity and convenience, the electronic device can obtain the first AI font model associated with the handwriting habit of the first user according to the first handwritten word data of the user, and the font model can be generated by efficiently learning the font features from the original data; the AI font resource library is generated by utilizing the font setting, and the font setting is not needed to be carried out on each font in the resource library in the process, so that the requirement on the data volume of the first handwritten font is avoided, and the universality of the font generation method is improved. The final user can customize the fonts belonging to the terminal in a personalized manner, the display fonts of the electronic equipment are matched with the actual handwriting habit fonts of the user, the display characteristics of the terminal are improved, and the experience of the user is improved.
In addition, the electronic equipment trains the collected handwritten fonts as sample data to obtain font models related to the handwritten fonts, so that the requirement on the data size of the first handwritten font is avoided, and the universality of the font generation method is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart of a font setting method provided in an embodiment of the present application, and is applied to an electronic device, where as shown in the figure, the font setting method includes:
s401, displaying a font setting interface by the electronic equipment, wherein the font setting interface comprises an Artificial Intelligence (AI) font option;
s402, when the electronic equipment detects the selection operation aiming at the AI font option, acquiring first handwritten font data of a first user;
s403, the electronic equipment sends the first handwritten character data to a server;
s404, the electronic device receives a first AI font model from the server, where the first AI font model is obtained by the server performing the following operations: generating handwritten font sample data according to the first handwritten font data, and training a pre-configured AI font model by using the handwritten font sample data to obtain a trained first AI font model;
s405, the electronic equipment generates an AI font resource library through the first AI font model;
s406, the electronic equipment calls the fonts in the first AI font resource library to display characters.
It can be seen that, in the embodiment of the application, the electronic device displays a font setting interface, where the font setting interface includes an artificial intelligence AI font option; when the electronic equipment detects the selection operation aiming at the AI font option, first acquiring first handwritten font data of a first user; secondly, obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data; thirdly, generating an AI font resource library through the first AI font model; and finally, calling the fonts in the first AI font resource library to display the characters. Therefore, the method for acquiring the first handwritten word data of the user by the electronic device has diversity and convenience, the electronic device can obtain the first AI font model associated with the handwriting habit of the first user according to the first handwritten word data of the user, and the font model can be generated by efficiently learning the font features from the original data; the AI font resource library is generated by utilizing the font setting, and the font setting is not needed to be carried out on each font in the resource library in the process, so that the requirement on the data volume of the first handwritten font is avoided, and the universality of the font generation method is improved. The final user can customize the fonts belonging to the terminal in a personalized manner, the display fonts of the electronic equipment are matched with the actual handwriting habit fonts of the user, the display characteristics of the terminal are improved, and the experience of the user is improved.
In addition, the electronic equipment sends the collected handwritten fonts to the server, the server trains the received handwritten fonts as sample data to obtain font models related to the handwritten fonts, and then the server sends the trained font models to the electronic equipment, so that the running memory of the electronic equipment is saved, the requirement on the data volume of the first handwritten font is avoided, and meanwhile, the universality of font generation is improved.
Referring to fig. 5, fig. 5 is a schematic flowchart of a font setting method provided in an embodiment of the present application, and is applied to an electronic device, where as shown in the figure, the font setting method includes:
s501, the electronic equipment displays a font setting interface, wherein the font setting interface comprises an Artificial Intelligence (AI) font option;
s502, when the electronic equipment detects the selection operation aiming at the AI font option, acquiring first handwritten font data of a first user;
s503, obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data;
s504, the electronic equipment generates an AI font resource library through the first AI font model;
s505, the electronic equipment determines high-frequency using fonts in the AI font resource library;
s506, the electronic equipment calls and displays the high-frequency using fonts in the AI font resource library;
s507, when the electronic equipment detects the selection operation aiming at the high-frequency use font, outputting a handwriting perception area;
s508, the electronic equipment obtains second handwriting volume data input by the user through the handwriting perception area;
s509, the electronic device trains the first AI font model through the second handwritten font data to update the first AI font model;
s510, the electronic equipment calls fonts in the first AI font resource library to display characters.
It can be seen that, in the embodiment of the application, the electronic device displays a font setting interface, where the font setting interface includes an artificial intelligence AI font option; when the electronic equipment detects the selection operation aiming at the AI font option, first acquiring first handwritten font data of a first user; secondly, obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data; thirdly, generating an AI font resource library through the first AI font model; and finally, calling the fonts in the first AI font resource library to display the characters. Therefore, the method for acquiring the first handwritten word data of the user by the electronic device has diversity and convenience, the electronic device can obtain the first AI font model associated with the handwriting habit of the first user according to the first handwritten word data of the user, and the font model can be generated by efficiently learning the font features from the original data; the AI font resource library is generated by utilizing the font setting, and the font setting is not needed to be carried out on each font in the resource library in the process, so that the requirement on the data volume of the first handwritten font is avoided, and the universality of the font generation method is improved. The final user can customize the fonts belonging to the terminal in a personalized manner, the display fonts of the electronic equipment are matched with the actual handwriting habit fonts of the user, the display characteristics of the terminal are improved, and the experience of the user is improved.
In addition, when the electronic equipment detects that the user needs to call the high-frequency using font, the handwriting input keyboard is output, and the user can perform handwriting input again aiming at the high-frequency using font again, so that the purpose of updating the font model is achieved. And updating the first AI font model by the user aiming at the high-frequency use font again when the electronic equipment detects that the user needs to call the high-frequency use font, so that the handwritten font of the electronic equipment is closer to the handwritten font of the user, the accuracy of the font model is improved, and the experience of the user is improved.
In accordance with the embodiments shown in fig. 2 to 4, please refer to fig. 6, where fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application, the electronic device runs with one or more application programs and an operating system, and as shown, the electronic device includes a processor, a memory, a communication interface, and one or more programs, where the one or more programs are different from the one or more application programs, and the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for performing the following steps;
displaying a font setting interface, wherein the font setting interface comprises an Artificial Intelligence (AI) font option;
when the selection operation aiming at the AI font option is detected, acquiring first handwritten font data of a first user;
obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data;
generating an AI font resource library through the first AI font model;
and calling fonts in the first AI font resource library to display characters.
It can be seen that, in the embodiment of the application, the electronic device displays a font setting interface, where the font setting interface includes an artificial intelligence AI font option; when the electronic equipment detects the selection operation aiming at the AI font option, first acquiring first handwritten font data of a first user; secondly, obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data; thirdly, generating an AI font resource library through the first AI font model; and finally, calling the fonts in the first AI font resource library to display the characters. Therefore, the method for acquiring the first handwritten word data of the user by the electronic device has diversity and convenience, the electronic device can obtain the first AI font model associated with the handwriting habit of the first user according to the first handwritten word data of the user, and the font model can be generated by efficiently learning the font features from the original data; the AI font resource library is generated by utilizing the font setting, and the font setting is not needed to be carried out on each font in the resource library in the process, so that the requirement on the data volume of the first handwritten font is avoided, and the universality of the font generation method is improved. The final user can customize the fonts belonging to the terminal in a personalized manner, the display fonts of the electronic equipment are matched with the actual handwriting habit fonts of the user, the display characteristics of the terminal are improved, and the experience of the user is improved.
In one possible example, in the aspect of obtaining the first handwritten volume data of the first user, the instructions in the program are specifically configured to: outputting a handwritten font guide interface; acquiring first handwritten character data input by a first user on the handwritten character guide interface; and/or inquiring the input method use record of the electronic equipment; extracting first handwritten character volume data in a handwritten keyboard mode from the input method use record; and/or shooting to obtain a handwritten font image of the first user; generating first handwritten font data according to the handwritten font image; and/or receiving first handwritten character data of a first user from a terminal or a server.
In one possible example, in terms of obtaining the first AI font model associated with the first user handwriting habit from the first handwritten font data, the instructions in the program are specifically configured to: generating handwritten font sample data according to the first handwritten font data; and training a pre-configured AI font model by using the handwriting font sample data to obtain a trained first AI font model.
In one possible example, in terms of obtaining the first AI font model associated with the first user handwriting habit from the first handwritten font data, the instructions in the program are specifically configured to: sending the first handwritten font data to a server; receiving a first AI font model from the server, the first AI font model being obtained by the server performing the following operations: generating handwritten font sample data according to the first handwritten font data, and training a pre-configured AI font model by using the handwritten font sample data to obtain a trained first AI font model.
In one possible example, the program further includes instructions for: determining high-frequency using fonts in the AI font resource library; calling and displaying the high-frequency using fonts in the AI font resource library; outputting a handwriting perception area when a selection operation aiming at the high-frequency use font is detected; acquiring second handwriting volume data input by a user through the handwriting perception area; training the first AI font model with the second handwritten font data to update the first AI font model.
In one possible example, the fonts in the first AI font resource library include at least one of: chinese characters, numbers, letters.
In one possible example, the first handwritten word data is a neural network model, the neural network model including any one of: a generative confrontation network, a convolutional neural network and a nonlinear kernel residual error network.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the electronic device comprises corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above-mentioned functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiment of the present application, the electronic device may be divided into the functional units according to the method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Fig. 7 shows a block diagram of a possible functional unit composition of the font setting apparatus involved in the embodiment. The font setting apparatus 700 is applied to an electronic device comprising a processing unit 701 and a communication unit 702, wherein,
the processing unit 701 is configured to display a font setting interface, where the font setting interface includes an artificial intelligence AI font option; the processing unit 701 is configured to, when a selection operation for the AI font option is detected, obtain first handwritten font data of a first user through the communication unit 702; obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data; generating an AI font resource library through the first AI font model; and calling the fonts in the first AI font resource library to display characters.
It can be seen that, in the embodiment of the application, the electronic device displays a font setting interface, where the font setting interface includes an artificial intelligence AI font option; when the electronic equipment detects the selection operation aiming at the AI font option, first acquiring first handwritten font data of a first user; secondly, obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data; thirdly, generating an AI font resource library through the first AI font model; and finally, calling the fonts in the first AI font resource library to display the characters. Therefore, the method for acquiring the first handwritten word data of the user by the electronic device has diversity and convenience, the electronic device can obtain the first AI font model associated with the handwriting habit of the first user according to the first handwritten word data of the user, and the font model can be generated by efficiently learning the font features from the original data; the AI font resource library is generated by utilizing the font setting, and the font setting is not needed to be carried out on each font in the resource library in the process, so that the requirement on the data volume of the first handwritten font is avoided, and the universality of the font generation method is improved. The final user can customize the fonts belonging to the terminal in a personalized manner, the display fonts of the electronic equipment are matched with the actual handwriting habit fonts of the user, the display characteristics of the terminal are improved, and the experience of the user is improved.
In one possible example, in the aspect of acquiring the first handwritten volume data of the first user, the processing unit 701 is specifically configured to: outputting a handwritten font guide interface; acquiring first handwritten character data input by a first user on the handwritten character guide interface; and/or inquiring the input method use record of the electronic equipment; extracting first handwritten character volume data in a handwritten keyboard mode from the input method use record; and/or shooting to obtain a handwritten font image of the first user; generating first handwritten font data according to the handwritten font image; and/or receiving first handwritten character data of a first user from a terminal or a server.
In one possible example, in terms of obtaining the first AI font model associated with the handwriting habit of the first user according to the first handwritten font data, the processing unit 701 is specifically configured to: generating handwritten font sample data according to the first handwritten font data; and training a pre-configured AI font model by using the handwriting font sample data to obtain a trained first AI font model.
In one possible example, in terms of obtaining the first AI font model associated with the handwriting habit of the first user according to the first handwritten font data, the processing unit 701 is specifically configured to: sending the first handwritten font data to a server; receiving a first AI font model from the server, the first AI font model being obtained by the server performing the following operations: generating handwritten font sample data according to the first handwritten font data, and training a pre-configured AI font model by using the handwritten font sample data to obtain a trained first AI font model.
In a possible example, after the processing unit 701 generates the AI font resource library through the first AI font model, the processing unit is further specifically configured to: determining high-frequency using fonts in the AI font resource library; calling and displaying the high-frequency using fonts in the AI font resource library; outputting a handwriting perception area when a selection operation aiming at the high-frequency use font is detected; acquiring second handwriting volume data input by a user through the handwriting perception area; training the first AI font model with the second handwritten font data to update the first AI font model.
In one possible example, the fonts in the first AI font resource library include at least one of: chinese characters, numbers, letters.
In one possible example, the first handwritten word data is a neural network model, the neural network model including any one of: a generative confrontation network, a convolutional neural network and a nonlinear kernel residual error network.
It should be noted that the font setting device described in the embodiment of the present application is presented in the form of a functional unit. The term "unit" as used herein is to be understood in its broadest possible sense, and objects used to implement the functions described by the respective "unit" may be, for example, an integrated circuit ASIC, a single circuit, a processor (shared, dedicated, or chipset) and memory that execute one or more software or firmware programs, a combinational logic circuit, and/or other suitable components that provide the described functionality.
Embodiments of the present application also provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any one of the methods described in the method embodiments, and the computer includes a mobile terminal.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as recited in the method embodiments. The computer program product may be a software installation package, said computer comprising a mobile terminal.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required in this application.
In the embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable memory. Based on such understanding, the technical solution of the present application may be substantially implemented or a part of or all or part of the technical solution contributing to the prior art may be embodied in the form of a software product stored in a memory, and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned memory comprises: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
Those of ordinary skill in the art will appreciate that all or part of the steps of the various methods of the embodiments described herein may be performed by associated hardware as instructed by a program, which may be stored in a computer readable memory, which may include: flash Memory disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present 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 (10)
- A font setting method is applied to an electronic device, and the method comprises the following steps:displaying a font setting interface, wherein the font setting interface comprises an Artificial Intelligence (AI) font option;when the selection operation aiming at the AI font option is detected, acquiring first handwritten font data of a first user;obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data;generating an AI font resource library through the first AI font model;and calling fonts in the first AI font resource library to display characters.
- The method of claim 1, wherein obtaining first handwritten volume data of the first user comprises:outputting a handwritten font guide interface;acquiring first handwritten character data input by a first user on the handwritten character guide interface; and/or the presence of a gas in the gas,inquiring the input method use record of the electronic equipment;extracting first handwritten character volume data in a handwritten keyboard mode from the input method use record; and/or the presence of a gas in the gas,shooting to obtain a handwritten font image of a first user;generating first handwritten font data according to the handwritten font image; and/or the presence of a gas in the gas,first handwritten font data of a first user is received from a terminal or a server.
- The method according to claim 1 or 2, wherein the deriving a first AI font model associated with a first user handwriting habit from the first handwritten font datum comprises:generating handwritten font sample data according to the first handwritten font data;and training a pre-configured AI font model by using the handwriting font sample data to obtain a trained first AI font model.
- The method according to claim 1 or 2, wherein the deriving a first AI font model associated with a first user handwriting habit from the first handwritten font datum comprises:sending the first handwritten font data to a server;receiving a first AI font model from the server, the first AI font model being obtained by the server performing the following operations: generating handwritten font sample data according to the first handwritten font data, and training a pre-configured AI font model by using the handwritten font sample data to obtain a trained first AI font model.
- The method according to any of claims 1-4, wherein after generating the library of AI font resources via the first AI font model, the method further comprises:determining high-frequency using fonts in the AI font resource library;calling and displaying the high-frequency using fonts in the AI font resource library;outputting a handwriting perception area when a selection operation aiming at the high-frequency use font is detected;acquiring second handwriting volume data input by a user through the handwriting perception area;training the first AI font model with the second handwritten font data to update the first AI font model.
- The method of claim 5, wherein the fonts in the first AI font resource library include at least one of:chinese characters, numbers, letters.
- The method of claim 6, wherein the first handwritten word data is a neural network model, and wherein the neural network model comprises any one of: a generative confrontation network, a convolutional neural network and a nonlinear kernel residual error network.
- A font setting apparatus applied to an electronic device, the font setting apparatus comprising a processing unit and a communication unit, wherein,the processing unit is used for displaying a font setting interface, and the font setting interface comprises an Artificial Intelligence (AI) font option; the processing unit is used for acquiring first handwritten word volume data of a first user through the communication unit when the selection operation aiming at the AI font option is detected; obtaining a first AI font model associated with the handwriting habit of the first user according to the first handwriting volume data; generating an AI font resource library through the first AI font model; and calling the fonts in the first AI font resource library to display characters.
- An electronic device comprising a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, the programs comprising instructions for performing the steps of the method of any of claims 1-7.
- A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes a computer to perform the method according to any one of claims 1-7, the computer comprising a mobile terminal.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2018/122136 WO2020124449A1 (en) | 2018-12-19 | 2018-12-19 | Font setting method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112805674A true CN112805674A (en) | 2021-05-14 |
CN112805674B CN112805674B (en) | 2024-04-02 |
Family
ID=71100658
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201880098559.9A Active CN112805674B (en) | 2018-12-19 | 2018-12-19 | Font setting method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112805674B (en) |
WO (1) | WO2020124449A1 (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101377854A (en) * | 2008-10-07 | 2009-03-04 | 浙江大学 | Method for simulating Chinese characters hand-written handwriting by a computer |
CN102646023A (en) * | 2012-04-11 | 2012-08-22 | 广东欧珀移动通信有限公司 | Method for generating original user handwriting fonts |
CN103207755A (en) * | 2012-01-13 | 2013-07-17 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and character font changing method |
CN103885699A (en) * | 2012-12-20 | 2014-06-25 | 中山大学深圳研究院 | Automatic handwriting copying method based on mobile terminals |
CN107644006A (en) * | 2017-09-29 | 2018-01-30 | 北京大学 | A kind of Chinese script character library automatic generation method based on deep neural network |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101393493B (en) * | 2007-09-19 | 2011-01-12 | 北京三星通信技术研究有限公司 | Method and apparatus for auto registering handwriting of assigned operation |
CN101667102B (en) * | 2009-09-21 | 2012-06-13 | 宇龙计算机通信科技(深圳)有限公司 | Realizing method for personalized fonts and electronic terminal |
-
2018
- 2018-12-19 WO PCT/CN2018/122136 patent/WO2020124449A1/en active Application Filing
- 2018-12-19 CN CN201880098559.9A patent/CN112805674B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101377854A (en) * | 2008-10-07 | 2009-03-04 | 浙江大学 | Method for simulating Chinese characters hand-written handwriting by a computer |
CN103207755A (en) * | 2012-01-13 | 2013-07-17 | 宇龙计算机通信科技(深圳)有限公司 | Terminal and character font changing method |
CN102646023A (en) * | 2012-04-11 | 2012-08-22 | 广东欧珀移动通信有限公司 | Method for generating original user handwriting fonts |
CN103885699A (en) * | 2012-12-20 | 2014-06-25 | 中山大学深圳研究院 | Automatic handwriting copying method based on mobile terminals |
CN107644006A (en) * | 2017-09-29 | 2018-01-30 | 北京大学 | A kind of Chinese script character library automatic generation method based on deep neural network |
Also Published As
Publication number | Publication date |
---|---|
CN112805674B (en) | 2024-04-02 |
WO2020124449A1 (en) | 2020-06-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11132349B2 (en) | Update basis for updating digital content in a digital medium environment | |
US10733262B2 (en) | Attribute control for updating digital content in a digital medium environment | |
CN107609092B (en) | Intelligent response method and device | |
US20190087472A1 (en) | Method for providing intelligent service, intelligent service system and intelligent terminal based on artificial intelligence | |
CN105593811B (en) | The message establishing based on situation of icon may be selected through user | |
CN111368180B (en) | Page display method and device and electronic equipment | |
US20170090725A1 (en) | Selecting at least one graphical user interface item | |
WO2017219967A1 (en) | Virtual keyboard generation method and apparatus | |
CN107547646B (en) | Application program pushing method and device, terminal and computer readable storage medium | |
CN109151318A (en) | A kind of image processing method, device and computer storage medium | |
CN110858291A (en) | Character segmentation method and device | |
CN108090044A (en) | The recognition methods of contact method and device | |
CN117033599A (en) | Digital content generation method and related equipment | |
CN112840312A (en) | Font setting method and device | |
CN112052316A (en) | Model evaluation method, model evaluation device, storage medium and electronic equipment | |
CN103778232A (en) | Method and device for processing personalized information | |
CN112840305A (en) | Font switching method and related product | |
CN112805674A (en) | Font setting method and device | |
CN107247692B (en) | Information processing method and device | |
CN111625737B (en) | Label display method, device, equipment and storage medium | |
US11455555B1 (en) | Methods, mediums, and systems for training a model | |
CN114493781A (en) | User behavior prediction method and device, electronic equipment and storage medium | |
CN111582281A (en) | Picture display optimization method and device, electronic equipment and storage medium | |
CN111399722A (en) | Mail signature generation method, device, terminal and storage medium | |
CN111898373B (en) | Handwriting date sample generation method and device |
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 |