WO2020124457A1 - 个性化字体显示方法及相关产品 - Google Patents

个性化字体显示方法及相关产品 Download PDF

Info

Publication number
WO2020124457A1
WO2020124457A1 PCT/CN2018/122159 CN2018122159W WO2020124457A1 WO 2020124457 A1 WO2020124457 A1 WO 2020124457A1 CN 2018122159 W CN2018122159 W CN 2018122159W WO 2020124457 A1 WO2020124457 A1 WO 2020124457A1
Authority
WO
WIPO (PCT)
Prior art keywords
font
characters
personalized
user
template
Prior art date
Application number
PCT/CN2018/122159
Other languages
English (en)
French (fr)
Inventor
陈岩
Original Assignee
深圳市欢太科技有限公司
Oppo广东移动通信有限公司
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 深圳市欢太科技有限公司, Oppo广东移动通信有限公司 filed Critical 深圳市欢太科技有限公司
Priority to CN201880098602.1A priority Critical patent/CN112840343A/zh
Priority to PCT/CN2018/122159 priority patent/WO2020124457A1/zh
Publication of WO2020124457A1 publication Critical patent/WO2020124457A1/zh

Links

Images

Classifications

    • 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/048Interaction techniques based on graphical user interfaces [GUI]

Definitions

  • This application relates to the field of electronic technology, in particular to a personalized font display method and related products.
  • fonts can be set on smart terminals, including smartphones or tablets.
  • Common fonts include Song, Kai, Hei, or Youyuan, etc.
  • the embodiments of the present application provide a personalized font display method and related products, which can provide different personalized fonts for different users, reduce the time consumption of switching fonts, and further meet the personalized requirements of terminal fonts.
  • an embodiment of the present application provides a personalized font display method, the method includes:
  • the personal information includes login account information, fingerprint information, face information or hand-drawn patterns;
  • the personalized font corresponding to the personal account is acquired as the display font of the target user's electronic device.
  • an embodiment of the present application provides a personalized font display device.
  • the personalized font display device includes:
  • the obtaining unit is used to obtain the personal information of the target user, where the personal information includes login account information, fingerprint information, face information or hand-drawn patterns;
  • a matching unit used to match the personal information of the target user with the personal account information
  • the display unit is configured to obtain the personalized font corresponding to the personal account as the display font of the electronic device of the target user if the matching is successful.
  • an embodiment of the present application provides an electronic device, 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 by the above
  • the processor executes, and the above program includes instructions for performing the steps in the first aspect of the embodiments of the present application.
  • an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program for electronic data exchange, wherein the computer program causes the computer to execute the first embodiment of the present application. Part or all of the steps described in one aspect.
  • an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium that stores the computer program, and the computer program is operable to cause the computer to execute as implemented in the present application Examples of some or all of the steps described in the first aspect.
  • the computer program product may be a software installation package.
  • the personalized font display method and related products described in the embodiments of the present application obtain the personal information of the target user, and then match the personal information of the target user with the personal account information; if the match is successful, the personal The personalized font corresponding to the account number is used as the display font of the target user's electronic device. Because personal information includes login account information, fingerprint information, face information or hand-drawn patterns, personalized fonts can be accurately matched to target users, and then the display fonts of electronic devices can be automatically switched to improve the switching efficiency of different users using different fonts. In addition , Personalized fonts can further distinguish the display fonts of different users of the same electronic device to meet the personalized needs of users.
  • FIG. 1A is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
  • FIG. 1B is a schematic flowchart of a method for displaying a personalized font disclosed in an embodiment of the present application
  • FIG. 2 is a schematic flowchart of another personalized font display method disclosed in an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another personalized font display method disclosed in an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of another electronic device disclosed in an embodiment of the present application.
  • 5A is a schematic structural diagram of a personalized font display device disclosed in an embodiment of the present application.
  • FIG. 5B is a modified structure of the personalized font display device shown in FIG. 5A provided by an embodiment of the present application;
  • FIG. 5C is a modified structure of the personalized font display device shown in FIG. 5A or FIG. 5B provided by an embodiment of the present application.
  • the electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, in-vehicle devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, and various forms of user equipment (user equipment, UE), mobile station (MS), terminal device, etc.
  • UE user equipment
  • MS mobile station
  • terminal device etc.
  • the devices mentioned above are collectively referred to as electronic devices.
  • FIG. 1A is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application.
  • the electronic device 100 may include a control circuit, and the control circuit may include a storage and processing circuit 110.
  • the storage and processing circuit 110 may be a memory, such as a hard disk drive memory, a non-volatile memory (such as flash memory or other electronic programmable read-only memory used to form a solid-state drive, etc.), a volatile memory (such as static or dynamic random memory Take memory, etc.), etc., the embodiments of the present application are not limited.
  • the processing circuit in the storage and processing circuit 110 may be used to control the operation of the electronic device 100.
  • the processing circuit can be implemented based on one or more microprocessors, microcontrollers, digital master-slave headset switching controllers, baseband processors, power management units, audio codec chips, dedicated integrated circuits, display driver integrated circuits, etc. .
  • the storage and processing circuit 110 can be used to run software in the electronic device 100, such as Internet browsing applications, voice over Internet (VOIP) phone call applications, email applications, media playback applications, operating system functions Wait. These software can be used to perform some control operations, such as camera-based image acquisition, ambient light sensor-based ambient light measurement, proximity sensor-based proximity sensor measurement, and information based on status indicators such as light-emitting diode status indicators Display functions, touch event detection based on touch sensors, functions associated with displaying information on multiple (eg, layered) displays, operations associated with performing wireless communication functions, operations associated with collecting and generating audio signals
  • the control operations associated with collecting and processing button press event data and other functions in the electronic device 100 are not limited in the embodiments of the present application.
  • the electronic device 100 may also include an input-output circuit 150.
  • the input-output circuit 150 may be used to enable the electronic device 100 to realize input and output of data, that is, to allow the electronic device 100 to receive data from an external device and also to allow the electronic device 100 to output data from the electronic device 100 to an external device.
  • the input-output circuit 150 may further include a sensor 170.
  • the sensor 170 may include an ambient light sensor, a proximity sensor based on light and capacitance, and a touch sensor (for example, a light-based touch sensor and/or a capacitive touch sensor, where the touch sensor may be part of a touch display screen or may be used as a The touch sensor structure is used independently), acceleration sensor, gravity sensor, and other sensors.
  • the input-output circuit 150 may also include one or more displays, such as display 130.
  • the display 130 may include a liquid crystal display, an organic light emitting diode display, an electronic ink display, a plasma display, or a display using other display technologies or a combination of several.
  • the display 130 may include a touch sensor array (ie, the display 130 may be a touch display screen).
  • the touch sensor may be a capacitive touch sensor formed by an array of transparent touch sensor electrodes (such as indium tin oxide (ITO) electrodes), or may be a touch sensor formed using other touch technologies, such as sonic touch, pressure sensitive touch, resistance Touch, optical touch, etc. are not limited in the embodiments of the present application.
  • the audio component 140 may be used to provide audio input and output functions for the electronic device 100.
  • the audio component 140 in the electronic device 100 may include a speaker, a microphone, a buzzer, a tone generator, and other components for generating and detecting sound.
  • the communication circuit 120 may be used to provide the electronic device 100 with the ability to communicate with external devices.
  • the communication circuit 120 may include analog and digital input-output interface circuits, and wireless communication circuits based on radio frequency signals and/or optical signals.
  • the wireless communication circuit in the communication circuit 120 may include a radio frequency transceiver circuit, a power amplifier circuit, a low noise amplifier, a switch, a filter, and an antenna.
  • the wireless communication circuit in the communication circuit 120 may include a circuit for supporting near field communication (NFC) by transmitting and receiving near-field coupled electromagnetic signals.
  • the communication circuit 120 may include a near field communication antenna and a near field communication transceiver.
  • the communication circuit 120 may also include a cellular phone transceiver and antenna, a wireless local area network transceiver circuit and antenna, and so on.
  • the electronic device 100 may further include a battery, a power management circuit, and other input-output units 160.
  • the input-output unit 160 may include buttons, joysticks, click wheels, scroll wheels, touch pads, keypads, keyboards, cameras, light emitting diodes, other status indicators, and the like.
  • the user can control the operation of the electronic device 100 by inputting commands through the input-output circuit 150, and can use the output data of the input-output circuit 150 to realize receiving status information and other outputs from the electronic device 100.
  • FIG. 1B is a schematic flowchart of a personalized font display method provided by an embodiment of the present application.
  • the personalized font display method described in this embodiment is applied to an electronic device as shown in FIG. 1A.
  • Font display methods include:
  • the personal information includes login account information, fingerprint information, face information, or hand-drawn patterns.
  • the personal information of the target user is obtained to identify the target user, so the personal information contains a wide range of content, including login account information, fingerprint information, face information or hand-drawn patterns, and can also include gestures, strokes, iris or sound, etc. Information to identify users.
  • the method before acquiring the personal information of the target user, the method further includes establishing a correspondence between the personalized font and the personal account, which specifically includes: acquiring the user's handwritten font and obtaining the personalized font according to the handwritten font; establishing the user's personal Account, and store personal account and personalized font correspondingly.
  • the purpose of matching the target user with the personal account is to provide the personalized font to the target user. Therefore, before using the target to match the personal account, you need to obtain the personalized font first, and then create the personalized font and Correspondence between personal accounts.
  • the obtained personalized font may be obtained according to the user's handwritten font, and the handwritten font is subjected to error correction, feature extraction, structural adjustment, or splitting and reorganization to form a personalized font. Create a personal account of the user, and then store the personal account in correspondence with the personalized font, so that when the target user matches the personal account, the personalized font can be correspondingly obtained as the display font of the electronic device.
  • establishing a user's personal account includes: receiving the identification feature entered by the user, the identification feature includes a fingerprint, facial feature, or hand-drawn pattern; if the identification feature entered by the user is an identification feature, a personal account is established based on the identification feature; If the identification features entered by the user are multiple identification features, the unity analysis is performed on the multiple identification features. If the multiple identification features are unitary, a personal account is established based on the multiple identification features. If the multiple identification features do not have For unity, multiple personal accounts are established based on multiple identification characteristics.
  • the user when establishing a user's personal account, the user is required to enter identification features, including fingerprints, facial features, or hand-drawn patterns.
  • identification features including fingerprints, facial features, or hand-drawn patterns.
  • the same user may enter multiple identification features, for example, the same user may enter The fingerprint of the left thumb and the thumb of the right hand, or the front and side faces when entering the face.
  • obtaining the user's handwriting font includes: obtaining an image containing the handwriting font; parsing the image to obtain the user's handwriting font; or receiving a writing operation on the electronic device screen to obtain the user's handwriting font.
  • the user's handwriting font can be obtained by collecting images of the user's words written on paper, desk, or other objects, and then analyzing the image to obtain the user's handwriting fonts, which are closer to the user's handwriting. It can better reflect the uniqueness of the user's font. Or, receiving the font written by the user on the screen of the electronic device as the user's handwriting font, such an advantage is that it is convenient and quick to obtain the handwriting font, and the personalized font can be quickly applied to the electronic device for display.
  • a personalized font according to the handwriting font including: identifying the handwriting font, determining the characters corresponding to the handwriting font, and the characters include Chinese characters, letters, or numbers; obtaining the standard font corresponding to the characters, and combining the handwriting font and the standard font Model training to determine the mapping relationship between handwritten fonts and standard fonts; input the standard fonts to be converted into the training model, and combine the mapping relationships to generate personalized fonts corresponding to the converted standard fonts.
  • the handwriting font needs to be recognized, and the character content corresponding to the handwriting font needs to be determined.
  • the user has handwritten "R2T”.
  • the corresponding character is determined to be "R", "2", "T”.
  • the standard font corresponding to the 3 characters.
  • the standard font is the existing print font, including Song type, Kai type, bold type, etc. Then input the handwriting font and the standard font together into the training model, conduct model training, and determine the mapping relationship between the handwriting font and the standard font.
  • Both the generative model and the confrontation model can be neural network models, and the algorithm used for the training model can be linear regression, gradient descent, or polynomial regression.
  • the mapping relationship in order to enhance the generalization ability of the model, the handwriting font and the standard font can be feature extracted, and then the mapping relationship between the features can be determined.
  • the characters in the handwritten font include numbers, symbols, uppercase and lowercase letters, and Chinese characters.
  • the characteristics of the symbols are single, and the mapping relationship can be directly a peer-to-peer relationship.
  • the number of features is large, and the combination is complicated.
  • letters include the characteristics of a single letter and the characteristics between multiple letters.
  • the feature to be extracted is the distance between the upper and lower structures.
  • the features to be extracted include the connection mode or layout of the left and right structures Ways, etc.;
  • the features to be extracted include the consecutive way between letters, shorthand way, or the spacing between letters, etc.
  • the feature extraction process of numbers is similar to letters.
  • the structure and features are more complex.
  • stroke writing includes horizontal, vertical, and dot writing methods
  • the connection method includes cross connection or There is no cross connection
  • the structure combination method includes upper and lower structure, left and right structure, semi-enclosed structure and fully enclosed structure.
  • the method further includes providing the user with a template character set for the user to write the handwriting font, which specifically includes: extracting features of various characters, and the various characters include letters, numbers, and Chinese characters; Obtain the characters of the same type of characters that are greater than the first preset threshold as the first type of template characters; obtain the characters of the same type of characters whose characteristics are less than the second preset threshold as the second type of template characters; use the first type of template characters The characters are combined with the second type of template characters to form a template character set; the template character set is provided for users to write handwritten fonts.
  • a template character set for the user to write the handwriting font, which specifically includes: extracting features of various characters, and the various characters include letters, numbers, and Chinese characters; Obtain the characters of the same type of characters that are greater than the first preset threshold as the first type of template characters; obtain the characters of the same type of characters whose characteristics are less than the second preset threshold as the second type of template characters; use the first type of template characters The characters are combined with the second type
  • the obtained handwriting font should contain as many representative characters as possible.
  • the representative characters include two types, and one type includes many other similar characters. Characteristic characters, another type are characters whose characteristics are rarely contained by other similar characters. For capital letters, feature distribution table 1 shows:
  • the letters S, Z, and O are center-symmetrical structures, and the center-symmetrical feature is included by 3 letters.
  • the second preset threshold is set to 4, Then, the characters included in the same type of characters that meet their own characteristics and are less than the second preset threshold are S, Z, and O, that is, the second type of template characters.
  • the letter O it is a center symmetric structure, especially a top-bottom symmetric structure, and also a left-right symmetric structure. Then O contains 3 similar features.
  • the first preset threshold is set to 2
  • O contains more than the first preset Characters of the same character set with a threshold are the first type of template characters.
  • a template character set is generated and provided to the user for transcription, and then representative characters can be obtained in order to generate a personalized font.
  • combining the first type template character and the second type template character to form a template character set includes: determining the total number of characters that the template character set can accommodate; when the total number of characters is less than the third preset threshold, Remove characters with less than the fourth preset threshold from the first type of template characters and the second type of template characters; randomly select N1 characters from the remaining characters of the first type of template characters and select from the second type of template characters Randomly select N2 characters to form a template character set, the sum of N1 and N1 is the total number of characters, N1 and N2 are integers greater than 0, and N1 is less than or equal to N2.
  • the user should also be provided with the template character set to accommodate
  • the total number of characters allows the user to select or enter. For example, 10 characters, 20 characters, etc., and the number of characters in the template character set selected or entered is different, the template characters provided to the user will also be different.
  • the fourth preset threshold may be 1, that is, for a character that contains only a single feature, it will not be selected into the template character set.
  • the Chinese character " ⁇ " contains only a single feature and will not be selected as a template character. concentrated.
  • the characters are randomly selected from the first type template characters and the second type template characters, and the sum of the selected characters is the total number of characters that the template character set can accommodate.
  • the first type of template character is a character that contains many characteristics of other similar characters
  • the second template character is a character whose characteristics are rarely included by other similar characters
  • the first type of template character is more common than the second type of template character Therefore, in the template character set, more first-type template characters and less second-type template characters can be included.
  • matching the personal information of the target user with the personal account information is to identify whether the target user is a personal account already stored in the electronic device. Therefore, in the matching process, a certain degree of matching is required to be considered as a successful match. For example, for login account information, the user name and user password entered by the target user are exactly the same as the user name and user password stored in the personal account information; for fingerprint information, the fingerprint entered by the target user can reach 90% of the fingerprint stored in the personal information The degree of matching above; for hand-drawn patterns, the hand-drawn patterns that need to be input by the target user are exactly the same as the hand-drawn patterns stored in the personal account.
  • the personalized font corresponding to the personal account can be obtained as the display of the target user's electronic device Font.
  • the method further includes filtering the time point of adapting the personalized font, specifically including: obtaining the current time point, and combining the current time point Match the display time period of the personalized font.
  • the display time period of the personalized font is preset by the user; if the current time point is within the display time period of the personalized font, it is determined that the current time point is adapted to the personalized font.
  • handwritten fonts are special and can meet the personalized needs of users, but on the other hand, compared with printed fonts, handwritten fonts lack regularity and seriousness and are not suitable for use in serious occasions. Therefore, the user can set the time period for applying the personalized font.
  • the time period for using personalized fonts can be when the user’s mind is clear during the day, and the fonts need to be quickly recognized during the rest period at night, then the printed fonts are used; or the printed fonts are used during work and study during the day, and the personalized time is used for leisure and entertainment at night Fonts etc.
  • the current time point is matched with the set display period of the personalized font. If the matching is successful, the personalized font is displayed, otherwise the personalized font is not displayed.
  • the method further includes determining that the current application scene is adapted to the personalized font, specifically including: performing the current application scene with the casual application scene For matching, the leisure application scene is determined by feature extraction according to the application scene in the electronic device; if the matching is successful, it is determined that the current application scene is adapted to the personalized font.
  • some scenarios of electronic devices are not suitable for personalized fonts, such as social software for work communication, mailboxes for sending and receiving work emails, or application programs for performing test exercises.
  • personalized fonts are suitable for some leisure and entertainment scenes, then all application scenarios in the terminal can be analyzed, such as text and images in the application scenarios, to determine whether the application scenarios are casual application scenarios, and if so, mark them. Then, the current application scene is matched with the marked leisure application scene. If the matching is successful, it is determined that the current application scene is a leisure application scene. Then, when the user applies for using the personalized font, the electronic device can display the personalized font.
  • the method before acquiring the personalized font corresponding to the personal account as the target user's electronic device display font, the method further includes determining that the current terminal mode is adapted to the personalized font, specifically including: acquiring the current terminal mode, the current terminal mode includes flying Mode, standby mode or normal mode; if the current terminal mode is determined to be the normal mode, it is determined that the current terminal mode is adapted to the personalized font.
  • terminal modes include airplane mode, standby mode, and normal mode.
  • airplane mode and standby mode the electronic device is in a standby or resting state, then the display font of the electronic device is a printed font, which is the same for all users of electronic devices. .
  • the electronic device is in the normal mode, it indicates that the user is using the electronic device, and the personalized font needs to be switched to meet the personalized requirements of different users using the same electronic device.
  • the personalized font corresponding to the personal account is obtained as the electronic device of the target user Display font.
  • personal information includes login account information, fingerprint information, face information or hand-drawn patterns
  • personalized fonts can be accurately matched to target users, and then the display fonts of electronic devices can be automatically switched to improve the switching efficiency of different users using different fonts.
  • Personalized fonts can further distinguish the display fonts of different users of the same electronic device to meet the personalized needs of users.
  • FIG. 2 is a schematic flowchart of another personalized font display method provided by an embodiment of the present application.
  • the personalized font display method described in this embodiment is applied as shown in FIG. 1A
  • the method may include the following steps:
  • 201 Acquire personal information of the target user, where the personal information includes login account information, fingerprint information, face information, or hand-drawn patterns;
  • the current terminal mode includes an airplane mode, a standby mode, or a normal mode
  • the current terminal mode is an ordinary mode, determine that the current terminal mode is adapted to the personalized font
  • the personalized font display method described in the embodiment of the present application accurately matches the personalized font to the target user, and then automatically switches the display font of the electronic device to improve the switching efficiency of different users using different fonts.
  • the current time point, application scenario, and terminal mode of the electronic device must be adapted to further improve the matching accuracy of the personalized font and the electronic terminal.
  • personalized fonts can further distinguish the display fonts of different users of the same electronic device and meet the user's personalized needs.
  • FIG. 3 is a schematic flowchart of another embodiment of a method for displaying a personalized font provided by an embodiment of the present application.
  • the method for displaying a personalized font described in this embodiment is applied as shown in FIG. 1A.
  • the method may include the following steps:
  • N1 characters Randomly select N1 characters from the remaining characters of the first type of template characters, and randomly select N2 characters from the second type of template characters to form a template character set.
  • the sum of N1 and N1 is the total Number of characters, N1 and N2 are integers greater than 0, and N1 is less than or equal to N2;
  • the character corresponding to the handwriting font includes Chinese characters, letters, or numbers; obtain the standard font corresponding to the character, and perform the handwriting font and the standard font Model training to determine the mapping relationship between the handwritten font and the standard font;
  • the personalized font display method described in the embodiment of the present application accurately matches the personalized font to the target user, and then automatically switches the display font of the electronic device to improve the switching efficiency of different users using different fonts.
  • providing the template character set for the user can improve the efficiency of obtaining the user's handwriting font, and at the same time reduce the user's handwriting task.
  • the personalized font can further distinguish the display fonts of different users of the same electronic device, and meet the personalized needs of the users.
  • the following is a device for implementing the above personalized font display method, as follows:
  • FIG. 4 is a schematic structural diagram of another electronic device disclosed in an embodiment of the present application.
  • the electronic device includes a processor, a memory, a communication interface, and one or more programs.
  • One or more programs are stored in the aforementioned memory and are configured to be executed by the aforementioned processor, and the aforementioned program includes instructions for performing the following steps:
  • the personal information of the target user includes login account information, fingerprint information, face information or hand-drawn patterns;
  • the personalized font corresponding to the personal account is acquired as the display font of the target user's electronic device.
  • the method before acquiring the personalized font corresponding to the personal account as the font displayed by the target user's electronic device, the method further includes screening a time point adapted to the personalized font, specifically including:
  • the display time period of the personalized font is preset by the user
  • the current time point is within the display time period of the personalized font, it is determined that the current time point is adapted to the personalized font.
  • the method before acquiring the personalized font corresponding to the personal account as the font displayed by the target user's electronic device, the method further includes determining that the current application scenario is adapted to the personalized font, specifically including:
  • the method before acquiring the personalized font corresponding to the personal account as the font displayed by the target user's electronic device, the method further includes determining that the current terminal mode is adapted to the personalized font, specifically including:
  • the current terminal mode includes an airplane mode, a standby mode, or a normal mode
  • the current terminal mode is a normal mode, it is determined that the current terminal mode is adapted to the personalized font.
  • the method before acquiring the personal information of the target user, the method further includes establishing a correspondence between the personalized font and the personal account, specifically including:
  • the acquiring the user's handwriting font includes:
  • the obtaining a personalized font according to the handwritten font includes:
  • the characters include Chinese characters, letters or numbers;
  • Input the standard font to be converted into the training model, and combine the mapping relationship to generate a personalized font corresponding to the standard font to be converted.
  • the method before acquiring the user's handwriting font, the method further includes providing the user with a template character set for the user to write the handwriting font, specifically including:
  • the user is provided with the template character set for the user to write a handwritten font.
  • the combining of the first-type template characters and the second-type template characters to form a template character set includes:
  • N1 characters are randomly selected from the remaining characters of the first type of template characters, and N2 characters are randomly selected from the second type of template characters to form a template character set, and the sum of N1 and N1 is the total number of characters Number, N1 and N2 are integers greater than 0, and N1 is less than or equal to N2.
  • the electronic device includes a hardware structure and/or a software module corresponding to each function.
  • the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driven hardware depends on the specific application of the technical solution and design constraints. Professional technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
  • the embodiments of the present application may divide the functional unit of the electronic device according to the above 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 above integrated unit can be implemented in the form of hardware or software function unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a division of logical functions, and there may be other division manners in actual implementation.
  • FIG. 5A is a schematic structural diagram of a personalized font display device disclosed in an embodiment of the present application, which is applied to an electronic device.
  • the personalized font display device includes an acquisition unit 501, a matching unit 502, and a display unit 503 ,among them,
  • the obtaining unit 501 is used to obtain personal information of the target user, where the personal information includes login account information, fingerprint information, face information or hand-drawn patterns;
  • the matching unit 502 is used to match the target user's personal information with personal account information
  • the display unit 503 is configured to obtain a personalized font corresponding to the personal account as the display font of the electronic device of the target user if the matching is successful.
  • FIG. 5B is a modified structure of the personalized font display device shown in FIG. 5A. Compared with FIG. 5A, it may further include: a time point screening unit 504, an application scene adaptation unit 505, and a terminal Mode adaptation unit 506, wherein,
  • the time point screening unit 504 is specifically used to:
  • the display time period of the personalized font is preset by the user
  • the current time point is within the display time period of the personalized font, it is determined that the current time point is adapted to the personalized font.
  • the device further includes an application scenario adaptation unit 505, which is specifically used to:
  • the device further includes a terminal mode adaptation unit 506, which is specifically used to:
  • the current terminal mode includes an airplane mode, a standby mode, or a normal mode
  • the current terminal mode is a normal mode, it is determined that the current terminal mode is adapted to the personalized font.
  • FIG. 5C is a modified structure of the personalized font display device shown in FIG. 5A or FIG. 5B. Compared with FIG. 5A, it may further include: a establishing unit 507 and a template character providing unit 508, in which ,
  • the establishment unit 507 is used to establish a correspondence between personalized fonts and personal accounts, and is specifically used to:
  • the establishing unit 507 is further specifically used to:
  • the establishing unit 507 is further specifically configured to:
  • the characters include Chinese characters, letters or numbers;
  • Input the standard font to be converted into the training model, and combine the mapping relationship to generate a personalized font corresponding to the standard font to be converted.
  • the device further includes a template character providing unit 508, which is specifically used to:
  • the user is provided with the template character set for the user to write a handwritten font.
  • the template character providing unit 508 is further specifically used for:
  • N1 characters are randomly selected from the remaining characters of the first type of template characters, and N2 characters are randomly selected from the second type of template characters to form a template character set, and the sum of N1 and N1 is the total number of characters Number, N1 and N2 are integers greater than 0, and N1 is less than or equal to N2.
  • the personalized font display device described in the embodiments of the present application obtains the personal information of the target user, and then matches the personal information of the target user with the personal account information; if the match is successful, the corresponding The personalized font is used as the display font of the target user's electronic device. Because personal information includes login account information, fingerprint information, face information or hand-drawn patterns, personalized fonts can be accurately matched to target users, and then the display fonts of electronic devices can be automatically switched to improve the switching efficiency of different users using different fonts. In addition , Personalized fonts can further distinguish the display fonts of different users of the same electronic device to meet the personalized needs of users.
  • An embodiment of the present application further provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program causes the computer to execute any personalized font display method as described in the above method embodiments Part or all of the steps.
  • An embodiment of the present application further provides a computer program product, the computer program product includes a non-transitory computer-readable storage medium storing a computer program, the computer program is operable to cause the computer to execute as described in the above method embodiments Part or all of any personalized font display method.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or may Integration into another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware or software program modules.
  • the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it may be stored in a computer-readable memory.
  • the technical solution of the present application may essentially be a part that contributes to the prior art or all or part of the technical solution may be embodied in the form of a software product, and the computer software product is stored in a memory.
  • Several instructions are included to enable a computer device (which may be a personal computer, server, network device, etc.) to perform all or part of the steps of the methods described in the embodiments of the present application.
  • the foregoing memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
  • the program may be stored in a computer-readable memory, and the memory may include: a flash disk , ROM, RAM, magnetic disk or optical disk, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种个性化字体显示方法及相关产品,应用于电子设备,其中个性化字体显示方法包括:获取目标用户的个人信息,个人信息包括登录账号信息、指纹信息、人脸信息或手绘图案(101);将目标用户的个人信息与个人账号信息进行匹配(102);若匹配成功,则获取个人账号对应的个性化字体作为目标用户的电子设备显示字体(103)。该方法能够为不同用户提供不同的个性化字体,减少切换字体的时间消耗,同时进一步满足终端字体的个性化要求。

Description

个性化字体显示方法及相关产品 技术领域
本申请涉及电子技术领域,具体涉及一种个性化字体显示方法及相关产品。
背景技术
目前,在智能终端上,包括智能手机或平板电脑上,都可以进行各种字体设置,常用字体包括宋体、楷体、黑体或幼圆等,此外包括一些艺术字体的分类也越来越多,方便用户选择。
但是,对于使用同一智能终端的用户,往往希望可以使用各自所偏好的字体,其对字体的要求是不同的,如果每次更换使用用户的时候,都要对智能终端进行一次字体设置,这将造成不必要的时间和精力浪费。另外,用户对于智能终端显示字体的个性化要求越来越高,常规的通用字体已经无法满足用户的个性化需求。
发明内容
本申请实施例提供了一种个性化字体显示方法及相关产品,能够为不同用户提供不同的个性化字体,减少切换字体的时间消耗,同时进一步满足终端字体的个性化要求。
第一方面,本申请实施例提供一种个性化字体显示方法,所述方法包括:
获取目标用户的个人信息,所述个人信息包括登录账号信息、指纹信息、人脸信息或手绘图案;
将所述目标用户的个人信息与个人账号信息进行匹配;
若匹配成功,则获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体。
第二方面,本申请实施例提供了一种个性化字体显示装置,所述个性化字体显示装置包括:
获取单元,用于获取目标用户的个人信息,所述个人信息包括登录账号信息、指纹信息、人脸信息或手绘图案;
匹配单元,用于将所述目标用户的个人信息与个人账号信息进行匹配;
显示单元,用于若匹配成功,则获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体。
第三方面,本申请实施例提供一种电子设备,包括处理器、存储器、通信接口,以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请实施例第一方面中的步骤的指令。
第四方面,本申请实施例提供了一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本 申请实施例第一方面中所描述的部分或全部步骤。
第五方面,本申请实施例提供了一种计算机程序产品,其中,上述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,上述计算机程序可操作来使计算机执行如本申请实施例第一方面中所描述的部分或全部步骤。该计算机程序产品可以为一个软件安装包。
可以看出,本申请实施例中所描述的个性化字体显示方法及相关产品,通过获取目标用户的个人信息,然后将目标用户的个人信息与个人账号信息进行匹配;若匹配成功,则获取个人账号对应的个性化字体作为目标用户的电子设备显示字体。因为个人信息包括登录账号信息、指纹信息、人脸信息或手绘图案,因此可以将个性化字体精准匹配到目标用户,然后自动切换电子设备的显示字体,提升不同用户采用不同字体的切换效率,另外,个性化字体能够使同一个电子设备的不同用户的显示字体进一步区分开,满足了用户的个性化需求。
附图说明
下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍。
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1A是本申请实施例公开的一种电子设备的结构示意图;
图1B是本申请实施例公开的一种个性化字体显示方法的流程示意图;
图2是本申请实施例公开的另一种个性化字体显示方法的流程示意图;
图3是本申请实施例公开的另一种个性化字体显示方法的流程示意图;
图4是本申请实施例公开的另一种电子设备的结构示意图;
图5A是本申请实施例公开的一种个性化字体显示装置的结构示意图;
图5B是本申请实施例提供的图5A所示的一种个性化字体显示装置的变型结构;
图5C是本申请实施例提供的图5A或图5B所示的一种个性化字体显示装置的一种变型结构。
具体实施方式
为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在 没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。
本申请实施例所涉及到的电子设备可以包括各种具有无线通信功能的手持设备、车载设备、可穿戴设备、计算设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备(user equipment,UE),移动台(mobile station,MS),终端设备(terminal device)等等。为方便描述,上面提到的设备统称为电子设备。
下面对本申请实施例进行详细介绍。
请参阅图1A,图1A是本申请实施例公开的一种电子设备的结构示意图,电子设备100可以包括控制电路,该控制电路可以包括存储和处理电路110。该存储和处理电路110可以存储器,例如硬盘驱动存储器,非易失性存储器(例如闪存或用于形成固态驱动器的其它电子可编程只读存储器等),易失性存储器(例如静态或动态随机存取存储器等)等,本申请实施例不作限制。存储和处理电路110中的处理电路可以用于控制电子设备100的运转。该处理电路可以基于一个或多个微处理器,微控制器,数字主从耳机切换控制器,基带处理器,功率管理单元,音频编解码器芯片,专用集成电路,显示驱动器集成电路等来实现。
存储和处理电路110可用于运行电子设备100中的软件,例如互联网浏览应用程序,互联网协议语音(voice over internet protocol,VOIP)电话呼叫应用程序,电子邮件应用程序,媒体播放应用程序,操作系统功能等。这些软件可以用于执行一些控制操作,例如,基于照相机的图像采集,基于环境光传感器的环境光测量,基于接近传感器的接近传感器测量,基于诸如发光二极管的状态指示灯等状态指示器实现的信息显示功能,基于触摸传感器的触摸事件检测,与在多个(例如分层的)显示器上显示信息相关联的功能,与执行无线通信功能相关联的操作,与收集和产生音频信号相关联的操作,与收集和处理按钮按压事件数据相关联的控制操作,以及电子设备100中的其它功能等,本申请实施例不作限制。
电子设备100还可以包括输入-输出电路150。输入-输出电路150可用于使电子设备100实现数据的输入和输出,即允许电子设备100从外部设备接收数据和也允许电子设备100将数据从电子设备100输出至外部设备。输入-输出电路150可以进一步包括传感器170。传感器170可以包括环境光传感器,基于光和电容的接近传感器,触摸传感器(例如, 基于光触摸传感器和/或电容式触摸传感器,其中,触摸传感器可以是触控显示屏的一部分,也可以作为一个触摸传感器结构独立使用),加速度传感器,重力传感器,和其它传感器等。
输入-输出电路150还可以包括一个或多个显示器,例如显示器130。显示器130可以包括液晶显示器,有机发光二极管显示器,电子墨水显示器,等离子显示器,使用其它显示技术的显示器中一种或者几种的组合。显示器130可以包括触摸传感器阵列(即,显示器130可以是触控显示屏)。触摸传感器可以是由透明的触摸传感器电极(例如氧化铟锡(ITO)电极)阵列形成的电容式触摸传感器,或者可以是使用其它触摸技术形成的触摸传感器,例如音波触控,压敏触摸,电阻触摸,光学触摸等,本申请实施例不作限制。
音频组件140可以用于为电子设备100提供音频输入和输出功能。电子设备100中的音频组件140可以包括扬声器,麦克风,蜂鸣器,音调发生器以及其它用于产生和检测声音的组件。
通信电路120可以用于为电子设备100提供与外部设备通信的能力。通信电路120可以包括模拟和数字输入-输出接口电路,和基于射频信号和/或光信号的无线通信电路。通信电路120中的无线通信电路可以包括射频收发器电路、功率放大器电路、低噪声放大器、开关、滤波器和天线。举例来说,通信电路120中的无线通信电路可以包括用于通过发射和接收近场耦合电磁信号来支持近场通信(near field communication,NFC)的电路。例如,通信电路120可以包括近场通信天线和近场通信收发器。通信电路120还可以包括蜂窝电话收发器和天线,无线局域网收发器电路和天线等。
电子设备100还可以进一步包括电池,电力管理电路和其它输入-输出单元160。输入-输出单元160可以包括按钮,操纵杆,点击轮,滚动轮,触摸板,小键盘,键盘,照相机,发光二极管和其它状态指示器等。
用户可以通过输入-输出电路150输入命令来控制电子设备100的操作,并且可以使用输入-输出电路150的输出数据以实现接收来自电子设备100的状态信息和其它输出。
请参阅图1B,图1B是本申请实施例提供的一种个性化字体显示方法的流程示意图,本实施例中所描述的个性化字体显示方法,应用于如图1A的电子设备,该个性化字体显示方法包括:
101、获取目标用户的个人信息,所述个人信息包括登录账号信息、指纹信息、人脸信息或手绘图案。
获取目标用户的个人信息是为了识别目标用户,因此个人信息包含的内容十分广泛,包括登录账户信息、指纹信息、人脸信息或手绘图案,还可以包括手势、笔画、虹膜或声音等各类能够对用户进行识别的信息。
可选的,在获取目标用户的个人信息之前,该方法还包括建立个性化字体与个人账号的对应关系,具体包括:获取用户的手写字体,并根据手写字体获得个性化字体;建立用户的个人账号,并将个人账号与个性化字体对应存储。
具体地,将目标用户与个人账号进行匹配的目的是为了给目标用户提供个性化字体,因此,在将目标用于与个人账号进行匹配之前,需要先获取个性化字体,然后建立个性化字体与个人账号的对应关系。获取的个性化字体可以是根据用户的手写字体得到的,将手写字体进行错误矫正、特征提取、结构调整或拆分重组,形成个性化字体。建立用户的个人账号,然后将个人账号与个性化字体对应存储,这样当目标用户匹配到个人账号时,即可对应获取个性化字体作为电子设备的显示字体。
可选的,建立用户的个人账号包括:接收用户录入的识别特征,识别特征包括指纹、面部特征或手绘图案;若用户录入的识别特征为一个识别特征,则根据一个识别特征建立一个个人账号;若用户录入的识别特征为多个识别特征,则对多个识别特征进行单一性分析,若多个识别特征具有单一性,则根据多个识别特征建立一个个人账户,若多个识别特征不具有单一性,则根据多个识别特征建立多个个人账户。
具体地,在建立用户的个人账号时,需要用户录入识别特征,包括指纹、面部特征或手绘图案,而对于录入的识别特征,可能同一个用户会录入多个识别特征,例如同一个用户会录入左手拇指的指纹和右手拇指的指纹,或者在录入人脸的时候录入正脸和侧脸。在接收录入的识别特征时,例如指纹识别特征,可以根据指纹大小、指纹图像和获取指纹的时间间隔分析这些指纹识别特征是不是属于同一个人,如果是,则为这些识别特征建立一个个人账户,否者建立多个个人账户。这样可以减少重复创建个人账户的概率,提升创建个人账户的效率,进一步提升后续进行个性化字体获取的效率。
可选的,获取用户的手写字体包括:获取包含手写字体的图像;对图像进行解析,获取用户的手写字体;或接收电子设备屏幕上的书写操作,获取用户的手写字体。
具体地,用户的手写字体可以通过对用户写在纸上、桌上或者其他物体上的字进行图像采集,然后对图像进行解析,获得用户的手写字体,这些字体更接近用户平时书写的字迹,更能体现用户的字体的独特性。或者,接收用户在电子设备屏幕上书写的字体作为用户的手写字体,这样的优势是获取手写字体方便快捷,能够快速将个性化字体运用到电子设备中进行显示。
可选的,根据手写字体获得个性化字体,包括:对手写字体进行识别,确定手写字体对应的字符,字符包括汉字、字母或数字;获取字符对应的标准字体,并将手写字体和标准字体进行模型训练,确定手写字体与标准字体的映射关系;将需要进行转化的标准字体输入训练模型,结合映射关系,生成需要转化的标准字体对应的个性化字体。
具体地,首先需要对手写字体进行识别,确定手写字体对应的字符内容,例如用户手写了“R2T”,进行识别后,确定对应的字符为“R”、“2”、“T”,获取这3个字符对应的标准字体,标准字体即为现有的打印字体,包括宋体、楷体、黑体等。然后将手写字体和标准字体一起输入训练模型,进行模型训练,确定手写字体和标准字体之间的映射关系。在进行训练的过程中,可以采用生成对抗网络的方式进行训练,即先采用生成模型确定手写字 体和标准字体之间的映射关系,然后根据映射关系生成个性化字体;再将生成的个性化字体和手写字体一起输入对抗模型,根据输出结果调整映射关系。生成模型和对抗模型都可以是神经网络模型,采用训练模型的算法可以是线性回归、梯度下降或多项式回归等。在进行映射关系确定时,为了增强模型的泛化能力,可以将手写字体和标准字体进行特征提取,然后确定特征之间的映射关系。
其中,手写字体里的字符包括数字、符号、大小写字母和汉字,符号的特征单一,映射关系可以直接为对等关系。而对于数字、字母和汉字来说,特征数量多,结合方式复杂。例如字母,包括单个字母的特征和多个字母之间的特征。对于单个字母,例如上下结构的字母i或j,需要提取的特征为上下结构之间的距离,对于p、q和b这种左右结构的字母,需要提取的特征包括左右结构的连接方式或布局方式等;对于多个字母,需要提取的特征包括字母之间的连写方式、简写方式或字母之间的间距等。数字的特征提取过程与字母类似。对于汉字,结构和特征都更复杂,在提取特征的时候,包括笔画书写方式、笔画连接方式和结构组合方式等,其中笔画书写方式包括横、竖、点的书写方式,连接方式包括交叉连接或不交叉连接,结构组合方式包括上下结构、左右结构、半包围结构和全包围结构等。
可选的,在获取用户的手写字体之前,该方法还包括为用户提供模板字符集以供用户书写手写字体,具体包括:对各种字符进行特征提取,各种字符包括字母、数字和汉字;获取包含大于第一预设阈值的同类字符特征的字符作为第一类模板字符;获取自身特征被少于第二预设阈值的同类字符包含的字符作为第二类模板字符;将第一类模板字符和第二类模板字符结合,形成模板字符集;为用户提供模板字符集以供用户书写手写字体。
具体地,因为需要根据用户的手写字体获得包含所有字符的个性化字体,那么获取的手写字体就应该包含尽可能多的代表性字符,代表性字符包括两类,一类是包含很多其他同类字符特征的字符,另一类是本身的特征很少被其他同类字符包含的字符。对于大写字母,特征分布表1所示:
表1 大写字母的特征分布表
Figure PCTCN2018122159-appb-000001
根据表1中的大写字母的特征分布,可知按照结构特征分类,字母S、Z和O为中心对称 的结构,而中心对称这一特征被3个字母包含,设置第二预设阈值为4,那么满足自身特征被小于第二预设阈值的同类字符包含的字符为S、Z和O,即为第二类模板字符。而对于字母O,即为中心对称结构,尤为上下对称结构,也为左右对称结构,那么O包含的同类特征为3个,如果设置第一预设阈值为2,则O为包含大于第一预设阈值的同类字符特征的字符,即为第一类模板字。结合第一类模板字符和第二类模板字符,生成模板字符集,提供给用户进行抄写,即可获得代表性字符,以便生成个性化字体。
可选的,将第一类模板字符和第二类模板字符结合,形成模板字符集,包括:确定模板字符集能够容纳的总字符个数;当总字符个数小于第三预设阈值时,去除第一类模板字符和第二类模板字符中的特征数量少于第四预设阈值的字符;从第一类模板字符的剩余字符中随机挑选N1个字符,并从第二类模板字符中随机挑选N2个字符,形成模板字符集,N1和N1的和为总字符个数,N1和N2为大于0的整数,且N1小于或等于N2。
具体地,因为每个用户愿意为电子设备提供手写字体的数量是不同的,为了进一步提升用户抄写的模板字符集的效率,应当在提示用户输入手写字体时,同时为用户提供模板字符集容纳的总字符个数让用户进行选择或输入。例如10个字符,20个字符等,而选择或输入的模板字符集容纳字符个数不同,为用户提供的模板字符也会有所区别。当总字符个数小于第三预设阈值时,说明用户输入的手写字体很少,需要进一步优化模板字符集,去除第一类模板字符和第二类模板字符中的特征数量少于第四预设阈值的字符,第四预设阈值可以是1,即对于只包含单个特征的字符,不会被选择到模板字符集中,例如汉字“一”,只包含单个特征,不会被选择到模板字符集中。从第一类模板字符和第二类模板字符中随机挑选字符,且挑选的字符之和为模板字符集能够容纳的总字符个数。另外,因为第一类模板字符是包含很多其他同类字符特征的字符,而第二模板字符是自身特征很少被其他同类字符包含的字符,第一类模板字符比第二类模板字符更具有普遍性,因此在模板字符集中,可以包含较多的第一类模板字符和较少的第二类模板字符。
102、将所述目标用户的个人信息与个人账号信息进行匹配。
具体地,将目标用户的个人信息与个人账号信息进行匹配是为了识别目标用户是否为电子设备中已经存储的个人账号,因此,在匹配的过程中,需要达到一定的匹配度才能认为匹配成功。例如对于登录账户信息,需要目标用户输入的用户名和用户密码与个人账号信息中存储的用户名和用户密码完全相同;对于指纹信息,需要目标用户输入的指纹能够与个人信息中存储的指纹达到90%以上的匹配程度;而对于手绘图案,需要目标用户输入的手绘图案与个人账户中存储的手绘图案完全相同。
103、若匹配成功,则获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体。
具体地,若目标用户的个人信息与个人账号信息进匹配成功,说明目标用户是电子终端中存储的个人账号对应的用户,那么可以获取个人账号对应的个性化字体作为该目标用 户电子设备的显示字体。
可选的,在获取个人账号对应的个性化字体作为目标用户的电子设备显示字体之前,该方法还包括筛选适配个性化字体的时间点,具体包括:获取当前时间点,并将当前时间点与个性化字体的显示时间段进行匹配,个性化字体的显示时间段由用户预先设置;若当前时间点处于个性化字体的显示时间段内,则确定当前时间点与个性化字体适配。
具体地,手写字体具有特殊性,能够满足用户的个性化需求,但是另一方面,与印刷字体相比,手写字体缺乏规整性和严肃性,不适合在严肃场合使用。因此,用户可以对适用个性化字体的时间段进行设置。使用个性化字体的时间段可以是白天用户头脑清晰的时候,而晚上休息的时间需要快速辨认字体,则采用印刷字体;或者白天工作学习的时间使用印刷字体,而晚上休闲娱乐的时间使用个性化字体等。每次用户进行个性化字体显示前,都将当前时间点与设置的个性化字体的显示时间段进行匹配,如果匹配成功,才显示成个性化字体,否则不进行个性化字体显示。
可选的,在获取个人账号对应的个性化字体作为目标用户的电子设备显示字体之前,方法还包括确定当前应用场景与个性化字体适配,具体包括:将当前应用场景与休闲类应用场景进行匹配,所述休闲类应用场景为根据所述电子设备中的应用场景进行特征提取判定的;若匹配成功,则确定当前应用场景与个性化字体适配。
具体地,电子设备有些场景不适用个性化字体,例如进行工作交流的社交软件中,进行工作邮件收发的邮箱,或者进行试题测试练习的应用程序中等。而一些休闲娱乐场景中适用个性化字体,那么可以对终端中的所有应用场景进行分析,例如应用场景中的文字和图像等,确定应用场景是否为休闲类应用场景,如果是,则进行标记。然后将当前应用场景与标记了的休闲类应用场景进行匹配,如果匹配成功,则确定当前应用场景为休闲类应用场景,那么在用户申请使用个性化字体的时候,电子设备可以显示个性化字体。
可选的,在获取个人账号对应的个性化字体作为目标用户的电子设备显示字体之前,方法还包括确定当前终端模式与个性化字体适配,具体包括:获取当前终端模式,当前终端模式包括飞行模式、待机模式或普通模式;若确定当前终端模式为普通模式,则确定当前终端模式与个性化字体适配。
具体地,终端模式包括飞行模式、待机模式和普通模式,在飞行模式和待机模式中,电子设备处于待机或休息状态,那么电子设备的显示字体为印刷字体,对于所有电子设备的使用用户都相同。而当电子设备处于普通模式时,表明用户正在使用电子设备,需要进行个性化字体的切换以满足不同用户使用同一电子设备的个性化要求。
可见,在本申请实施例中,通过获取目标用户的个人信息,然后将目标用户的个人信息与个人账号信息进行匹配;若匹配成功,则获取个人账号对应的个性化字体作为目标用户的电子设备显示字体。因为个人信息包括登录账号信息、指纹信息、人脸信息或手绘图案,因此可以将个性化字体精准匹配到目标用户,然后自动切换电子设备的显示字体,提 升不同用户采用不同字体的切换效率,另外,个性化字体能够使同一个电子设备的不同用户的显示字体进一步区分开,满足了用户的个性化需求。
与上述一致地,请参阅图2,图2是本申请实施例提供的另一种个性化字体显示方法的流程示意图,本实施例中所描述的个性化字体显示方法,应用于如图1A的电子设备,该方法可包括以下步骤:
201、获取目标用户的个人信息,所述个人信息包括登录账号信息、指纹信息、人脸信息或手绘图案;
202、将所述目标用户的个人信息与个人账号信息进行匹配;
203、若匹配成功,则获取当前时间点,并将所述当前时间点与所述个性化字体的显示时间段进行匹配,所述个性化字体的显示时间段由用户预先设置;
204、若所述当前时间点处于所述个性化字体的显示时间段内,则确定所述当前时间点与所述个性化字体适配;
205、将当前应用场景与休闲类应用场景进行匹配,所述休闲类应用场景为根据所述电子设备中的应用场景进行特征提取判定的;
206、若匹配成功,则确定所述当前应用场景与所述个性化字体适配;
207、获取当前终端模式,所述当前终端模式包括飞行模式、待机模式或普通模式;
208、若确定所述当前终端模式为普通模式,则确定所述当前终端模式与所述个性化字体适配;
209、获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体。
其中,上述步骤201-步骤209的具体描述可以参照图1所描述的个性化字体显示方法的相应描述,在此不再赘述。
可以看出,本申请实施例中所描述的个性化字体显示方法,通过将个性化字体精准匹配到目标用户,然后自动切换电子设备的显示字体,提升不同用户采用不同字体的切换效率,另外,在目标用户与个人账号匹配成功后,还要对电子设备当前的时间点、应用场景和终端模式进行适配,进一步提升个性化字体与电子终端的匹配准确度。最后,个性化字体能够使同一个电子设备的不同用户的显示字体进一步区分开,满足了用户的个性化需求。
与上述一致地,请参阅图3,为本申请实施例提供的另一种个性化字体显示方法的实施例流程示意图,本实施例中所描述的个性化字体显示方法,应用于如图1A的电子设备,本方法可包括以下步骤:
301、对各种字符进行特征提取,所述各种字符包括字母、数字和汉字;
302、获取包含大于第一预设阈值的同类字符特征的字符作为第一类模板字符,并获取自身特征被少于第二预设阈值的同类字符包含的字符作为第二类模板字符;
303、确定模板字符集能够容纳的总字符个数;
304、当所述总字符个数小于第三预设阈值时,去除所述第一类模板字符和所述第二类模板字符中的特征数量少于第四预设阈值的字符;
305、从所述第一类模板字符的剩余字符中随机挑选N1个字符,并从所述第二类模板字符中随机挑选N2个字符,形成模板字符集,N1和N1的和为所述总字符个数,N1和N2为大于0的整数,且N1小于或等于N2;
306、为用户提供所述模板字符集以供用户书写手写字体;
307、获取包含手写字体的图像,并对所述图像进行解析,获取用户的手写字体;或接收电子设备屏幕上的书写操作,获取用户的手写字体;
308、对手所述写字体进行识别,确定所述手写字体对应的字符,所述字符包括汉字、字母或数字;获取所述字符对应的标准字体,并将所述手写字体和所述标准字体进行模型训练,确定所述手写字体与所述标准字体的映射关系;
309、将需要进行转化的标准字体输入训练模型,结合所述映射关系,生成需要转化的标准字体对应的个性化字体;
310、建立用户的个人账号,并将所述个人账号与所述个性化字体对应存储;
311、获取目标用户的个人信息,所述个人信息包括登录账号信息、指纹信息、人脸信息或手绘图案;
312、将所述目标用户的个人信息与个人账号信息进行匹配;
313、若匹配成功,则获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体。
其中,上述步骤301-步骤313的具体描述可以参照图1所描述的个性化字体显示方法的相应描述,在此不再赘述。
可以看出,本申请实施例中所描述的个性化字体显示方法,通过将个性化字体精准匹配到目标用户,然后自动切换电子设备的显示字体,提升不同用户采用不同字体的切换效率,另外,在获取用户的手写字体前,为用户提供模板字符集,能够提升获取用户手写字体的效率,同时减少用户的手写任务。并且个性化字体能够使同一个电子设备的不同用户的显示字体进一步区分开,满足了用户的个性化需求。
以下是实施上述个性化字体显示方法的装置,具体如下:
请参阅图4,图4是本申请实施例公开的另一种电子设备的结构示意图,如图所示,该电子设备包括处理器、存储器、通信接口,以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行以下步骤的指令:
获取目标用户的个人信息,所述个人信息包括登录账号信息、指纹信息、人脸信息或 手绘图案;
将所述目标用户的个人信息与个人账号信息进行匹配;
若匹配成功,则获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体。
在一个可能的示例中,在获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体之前,所述方法还包括筛选适配所述个性化字体的时间点,具体包括:
获取当前时间点,并将所述当前时间点与所述个性化字体的显示时间段进行匹配,所述个性化字体的显示时间段由用户预先设置;
若所述当前时间点处于所述个性化字体的显示时间段内,则确定所述当前时间点与所述个性化字体适配。
在一个可能的示例中,在获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体之前,所述方法还包括确定当前应用场景与所述个性化字体适配,具体包括:
将当前应用场景与休闲类应用场景进行匹配,所述休闲类应用场景为根据所述电子设备中的应用场景进行特征提取判定的;
若匹配成功,则确定所述当前应用场景与所述个性化字体适配。
在一个可能的示例中,在获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体之前,所述方法还包括确定当前终端模式与所述个性化字体适配,具体包括:
获取当前终端模式,所述当前终端模式包括飞行模式、待机模式或普通模式;
若确定所述当前终端模式为普通模式,则确定所述当前终端模式与所述个性化字体适配。
在一个可能的示例中,在获取目标用户的个人信息之前,所述方法还包括建立个性化字体与个人账号的对应关系,具体包括:
获取用户的手写字体,并根据所述手写字体获得个性化字体;
建立用户的个人账号,并将所述个人账号与所述个性化字体对应存储。
在一个可能的示例中,所述获取用户的手写字体包括:
获取包含手写字体的图像;
对所述图像进行解析,获取用户的手写字体;或
接收电子设备屏幕上的书写操作,获取用户的手写字体。
在一个可能的示例中,所述根据所述手写字体获得个性化字体,包括:
对手写字体进行识别,确定所述手写字体对应的字符,字符包括汉字、字母或数字;
获取所述字符对应的标准字体,并将所述手写字体和所述标准字体进行模型训练,确定所述手写字体与所述标准字体的映射关系;
将需要进行转化的标准字体输入训练模型,结合所述映射关系,生成需要转化的标准字体对应的个性化字体。
在一个可能的示例中,在获取用户的手写字体之前,所述方法还包括为用户提供模板字符集以供用户书写手写字体,具体包括:
对各种字符进行特征提取,所述各种字符包括字母、数字和汉字;
获取包含大于第一预设阈值的同类字符特征的字符作为第一类模板字符;
获取自身特征被少于第二预设阈值的同类字符包含的字符作为第二类模板字符;
将所述第一类模板字符和所述第二类模板字符结合,形成模板字符集;
为用户提供所述模板字符集以供用户书写手写字体。
在一个可能的示例中,所述将所述第一类模板字符和所述第二类模板字符结合,形成模板字符集,包括:
确定所述模板字符集能够容纳的总字符个数;
当所述总字符个数小于第三预设阈值时,去除所述第一类模板字符和所述第二类模板字符中的特征数量少于第四预设阈值的字符;
从所述第一类模板字符的剩余字符中随机挑选N1个字符,并从所述第二类模板字符中随机挑选N2个字符,形成模板字符集,N1和N1的和为所述总字符个数,N1和N2为大于0的整数,且N1小于或等于N2。
上述主要从方法侧执行过程的角度对本申请实施例的方案进行了介绍。可以理解的是,电子设备为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所提供的实施例描述的各示例的单元及算法步骤,本申请能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
本申请实施例可以根据上述方法示例对电子设备进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。
请参阅图5A,图5A是本申请实施例公开的一种个性化字体显示装置的结构示意图,应用于电子设备,所述个性化字体显示装置包括获取单元501、匹配单元502、和显示单元503,其中,
获取单元501,用于获取目标用户的个人信息,所述个人信息包括登录账号信息、指纹信息、人脸信息或手绘图案;
匹配单元502,用于将所述目标用户的个人信息与个人账号信息进行匹配;
显示单元503,用于若匹配成功,则获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体。
可选地,如图5B,图5B为图5A所示的个性化字体显示装置的变型结构,其与图5A相比较,还可以包括:时间点筛选单元504,应用场景适配单元505和终端模式适配单元506,其中,
所述时间点筛选单元504具体用于:
获取当前时间点,并将所述当前时间点与所述个性化字体的显示时间段进行匹配,所述个性化字体的显示时间段由用户预先设置;
若所述当前时间点处于所述个性化字体的显示时间段内,则确定所述当前时间点与所述个性化字体适配。
可选的,所述装置还包括应用场景适配单元505,具体用于:
将当前应用场景与休闲类应用场景进行匹配,所述休闲类应用场景为根据所述电子设备中的应用场景进行特征提取判定的;
若匹配成功,则确定所述当前应用场景与所述个性化字体适配。
可选的,所述装置还包括终端模式适配单元506,具体用于:
获取当前终端模式,所述当前终端模式包括飞行模式、待机模式或普通模式;
若确定所述当前终端模式为普通模式,则确定所述当前终端模式与所述个性化字体适配。
可选的,如图5C,图5C为图5A或图5B所示的个性化字体显示装置的变型结构,其与图5A相比较,还可以包括:建立单元507和模板字符提供单元508,其中,
所述建立单元507,用于建立个性化字体与个人账号的对应关系,具体用于:
获取用户的手写字体,并根据所述手写字体获得个性化字体;
建立用户的个人账号,并将所述个人账号与所述个性化字体对应存储。
可选的,在所述获取用户的手写字体方面,所述建立单元507还具体用于:
获取包含手写字体的图像;
对所述图像进行解析,获取用户的手写字体;或
接收电子设备屏幕上的书写操作,获取用户的手写字体。
可选的,在所述根据所述手写字体获得个性化字体方面,所述建立单元507还具体用于:
对手写字体进行识别,确定所述手写字体对应的字符,字符包括汉字、字母或数字;
获取所述字符对应的标准字体,并将所述手写字体和所述标准字体进行模型训练,确定所述手写字体与所述标准字体的映射关系;
将需要进行转化的标准字体输入训练模型,结合所述映射关系,生成需要转化的标准字体对应的个性化字体。
可选的,所述装置还包括模板字符提供单元508,具体用于:
对各种字符进行特征提取,所述各种字符包括字母、数字和汉字;
获取包含大于第一预设阈值的同类字符特征的字符作为第一类模板字符;
获取自身特征被少于第二预设阈值的同类字符包含的字符作为第二类模板字符;
将所述第一类模板字符和所述第二类模板字符结合,形成模板字符集;
为用户提供所述模板字符集以供用户书写手写字体。
可选的,所述模板字符提供单元508还具体用于:
确定所述模板字符集能够容纳的总字符个数;
当所述总字符个数小于第三预设阈值时,去除所述第一类模板字符和所述第二类模板字符中的特征数量少于第四预设阈值的字符;
从所述第一类模板字符的剩余字符中随机挑选N1个字符,并从所述第二类模板字符中随机挑选N2个字符,形成模板字符集,N1和N1的和为所述总字符个数,N1和N2为大于0的整数,且N1小于或等于N2。
可以看出,本申请实施例中所描述的个性化字体显示装置,通过获取目标用户的个人信息,然后将目标用户的个人信息与个人账号信息进行匹配;若匹配成功,则获取个人账号对应的个性化字体作为目标用户的电子设备显示字体。因为个人信息包括登录账号信息、指纹信息、人脸信息或手绘图案,因此可以将个性化字体精准匹配到目标用户,然后自动切换电子设备的显示字体,提升不同用户采用不同字体的切换效率,另外,个性化字体能够使同一个电子设备的不同用户的显示字体进一步区分开,满足了用户的个性化需求。
可以理解的是,本实施例的个性化字体显示装置的各程序模块的功能可根据上述方法实施例中的方法具体实现,其具体实现过程可以参照上述方法实施例的相关描述,此处不再赘述。
本申请实施例还提供一种计算机存储介质,其中,该计算机存储介质存储用于电子数据交换的计算机程序,该计算机程序使得计算机执行如上述方法实施例中记载的任何一种个性化字体显示方法的部分或全部步骤。
本申请实施例还提供一种计算机程序产品,所述计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,所述计算机程序可操作来使计算机执行如上述方法实施例中记载的任何一种个性化字体显示方法的部分或全部步骤。
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分, 可以参见其他实施例的相关描述。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模块的形式实现。
所述集成的单元如果以软件程序模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储器中,存储器可以包括:闪存盘、ROM、RAM、磁盘或光盘等。
以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。

Claims (20)

  1. 一种个性化字体显示方法,其特征在于,应用于电子设备,所述方法包括;
    获取目标用户的个人信息,所述个人信息包括登录账号信息、指纹信息、人脸信息或手绘图案;
    将所述目标用户的个人信息与个人账号信息进行匹配;
    若匹配成功,则获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体。
  2. 根据权利要求1所述的方法,其特征在于,在获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体之前,所述方法还包括筛选适配所述个性化字体的时间点,具体包括:
    获取当前时间点,并将所述当前时间点与所述个性化字体的显示时间段进行匹配,所述个性化字体的显示时间段由用户预先设置;
    若所述当前时间点处于所述个性化字体的显示时间段内,则确定所述当前时间点与所述个性化字体适配。
  3. 根据权利要求1或2所述的方法,其特征在于,在获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体之前,所述方法还包括确定当前应用场景与所述个性化字体适配,具体包括:
    将当前应用场景与休闲类应用场景进行匹配,所述休闲类应用场景为根据所述电子设备中的应用场景进行特征提取判定的;
    若匹配成功,则确定所述当前应用场景与所述个性化字体适配。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,在获取个人账号对应的个性化字体作为所述目标用户的电子设备显示字体之前,所述方法还包括确定当前终端模式与所述个性化字体适配,具体包括:
    获取当前终端模式,所述当前终端模式包括飞行模式、待机模式或普通模式;
    若确定所述当前终端模式为普通模式,则确定所述当前终端模式与所述个性化字体适配。
  5. 根据权利要求1-4所述的方法,其特征在于,在获取目标用户的个人信息之前,所述方法还包括建立个性化字体与个人账号的对应关系,具体包括:
    获取用户的手写字体,并根据所述手写字体获得个性化字体;
    建立用户的个人账号,并将所述个人账号与所述个性化字体对应存储。
  6. 根据权利要求5所述的方法,其特征在于,所述获取用户的手写字体包括:
    获取包含手写字体的图像;
    对所述图像进行解析,获取用户的手写字体;或
    接收电子设备屏幕上的书写操作,获取用户的手写字体。
  7. 根据权利要求6所述的方法,其特征在于,所述根据所述手写字体获得个性化字体,包括:
    对所述手写字体进行识别,确定所述手写字体对应的字符,所述字符包括汉字、字母或数字;
    获取所述字符对应的标准字体,并将所述手写字体和所述标准字体进行模型训练,确定所述手写字体与所述标准字体的映射关系;
    将需要进行转化的标准字体输入训练模型,结合所述映射关系,生成所述需要转化的标准字体对应的个性化字体。
  8. 根据权利要求1-7所述的方法,其特征在于,在获取用户的手写字体之前,所述方法还包括为用户提供模板字符集以供用户书写手写字体,具体包括:
    对各种字符进行特征提取,所述各种字符包括字母、数字和汉字;
    获取包含大于第一预设阈值的同类字符特征的字符作为第一类模板字符;
    获取自身特征被少于第二预设阈值的同类字符包含的字符作为第二类模板字符;
    将所述第一类模板字符和所述第二类模板字符结合,形成模板字符集;
    为用户提供所述模板字符集以供用户书写手写字体。
  9. 根据权利要求8所述的方法,其特征在于,所述将所述第一类模板字符和所述第二类模板字符结合,形成模板字符集,包括:
    确定所述模板字符集能够容纳的总字符个数;
    当所述总字符个数小于第三预设阈值时,去除所述第一类模板字符和所述第二类模板字符中的特征数量少于第四预设阈值的字符;
    从所述第一类模板字符的剩余字符中随机挑选N1个字符,并从所述第二类模板字符中随机挑选N2个字符,形成模板字符集,N1和N1的和为所述总字符个数,N1和N2为大于0的整数,且N1小于或等于N2。
  10. 一种个性化字体显示装置,其特征在于,所述个性化字体显示装置包括:
    获取单元,用于获取目标用户的个人信息,所述个人信息包括登录账号信息、指纹信息、人脸信息或手绘图案;
    匹配单元,用于将所述目标用户的个人信息与个人账号信息进行匹配;
    显示单元,用于若匹配成功,则获取个人账号对应的个性化字体作为所述目标用户的 电子设备显示字体。
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括时间点筛选单元,具体用于:
    获取当前时间点,并将所述当前时间点与所述个性化字体的显示时间段进行匹配,所述个性化字体的显示时间段由用户预先设置;
    若所述当前时间点处于所述个性化字体的显示时间段内,则确定所述当前时间点与所述个性化字体适配。
  12. 根据权利要求10所述的装置,其特征在于,所述装置还包括应用场景适配单元,具体用于:
    将当前应用场景与休闲类应用场景进行匹配,所述休闲类应用场景为根据所述电子设备中的应用场景进行特征提取判定的;
    若匹配成功,则确定所述当前应用场景与所述个性化字体适配。
  13. 根据权利要求10所述的装置,其特征在于,所述装置还包括终端模式适配单元,具体用于:
    获取当前终端模式,所述当前终端模式包括飞行模式、待机模式或普通模式;
    若确定所述当前终端模式为普通模式,则确定所述当前终端模式与所述个性化字体适配。
  14. 根据权利要求10-13所述的装置,其特征在于,所述装置还包括建立单元,用于建立个性化字体与个人账号的对应关系,具体用于:
    获取用户的手写字体,并根据所述手写字体获得个性化字体;
    建立用户的个人账号,并将所述个人账号与所述个性化字体对应存储。
  15. 根据权利要求14所述的装置,其特征在于,在所述获取用户的手写字体方面,所述建立单元还具体用于:
    获取包含手写字体的图像;
    对所述图像进行解析,获取用户的手写字体;或
    接收电子设备屏幕上的书写操作,获取用户的手写字体。
  16. 根据权利要求15所述的装置,其特征在于,在所述根据所述手写字体获得个性化字体方面,所述建立单元还具体用于:
    对所述手写字体进行识别,确定所述手写字体对应的字符,所述字符包括汉字、字母或数字;
    获取所述字符对应的标准字体,并将所述手写字体和所述标准字体进行模型训练,确 定所述手写字体与所述标准字体的映射关系;
    将需要进行转化的标准字体输入训练模型,结合所述映射关系,生成所述需要转化的标准字体对应的个性化字体。
  17. 根据权利要求9-16所述的装置,其特征在于,所述装置还包括模板字符提供单元,具体用于:
    对各种字符进行特征提取,所述各种字符包括字母、数字和汉字;
    获取包含大于第一预设阈值的同类字符特征的字符作为第一类模板字符;
    获取自身特征被少于第二预设阈值的同类字符包含的字符作为第二类模板字符;
    将所述第一类模板字符和所述第二类模板字符结合,形成模板字符集;
    为用户提供所述模板字符集以供用户书写手写字体。
  18. 根据权利要求17所述的装置,其特征在于,所述模板字符提供单元还具体用于:
    确定所述模板字符集能够容纳的总字符个数;
    当所述总字符个数小于第三预设阈值时,去除所述第一类模板字符和所述第二类模板字符中的特征数量少于第四预设阈值的字符;
    从所述第一类模板字符的剩余字符中随机挑选N1个字符,并从所述第二类模板字符中随机挑选N2个字符,形成模板字符集,N1和N1的和为所述总字符个数,N1和N2为大于0的整数,且N1小于或等于N2。
  19. 一种电子设备,包括处理器、存储器、通信接口,以及一个或多个程序,其中,上述一个或多个程序被存储在上述存储器中,并且被配置由上述处理器执行,上述程序包括用于执行本申请权利要求1-9任一项所述的方法中的步骤的指令。
  20. 一种计算机可读存储介质,其中,上述计算机可读存储介质存储用于电子数据交换的计算机程序,其中,上述计算机程序使得计算机执行如本申请权利要求1-9任一项所述的方法。
PCT/CN2018/122159 2018-12-19 2018-12-19 个性化字体显示方法及相关产品 WO2020124457A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201880098602.1A CN112840343A (zh) 2018-12-19 2018-12-19 个性化字体显示方法及相关产品
PCT/CN2018/122159 WO2020124457A1 (zh) 2018-12-19 2018-12-19 个性化字体显示方法及相关产品

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/122159 WO2020124457A1 (zh) 2018-12-19 2018-12-19 个性化字体显示方法及相关产品

Publications (1)

Publication Number Publication Date
WO2020124457A1 true WO2020124457A1 (zh) 2020-06-25

Family

ID=71102560

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/122159 WO2020124457A1 (zh) 2018-12-19 2018-12-19 个性化字体显示方法及相关产品

Country Status (2)

Country Link
CN (1) CN112840343A (zh)
WO (1) WO2020124457A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112799613A (zh) * 2021-01-25 2021-05-14 杭州思锐迪科技有限公司 三维扫描的运营系统、方法、电子装置和存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281205A (zh) * 2010-06-10 2011-12-14 腾讯科技(深圳)有限公司 一种即时通信系统中的文字显示的方法、终端及系统
CN102646023A (zh) * 2012-04-11 2012-08-22 广东欧珀移动通信有限公司 一种用户原始笔迹字体的生成方法
CN103473492A (zh) * 2013-09-05 2013-12-25 北京百纳威尔科技有限公司 权限识别方法和用户终端
CN105095721A (zh) * 2015-08-21 2015-11-25 京东方科技集团股份有限公司 指纹认证显示装置及认证显示方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281205A (zh) * 2010-06-10 2011-12-14 腾讯科技(深圳)有限公司 一种即时通信系统中的文字显示的方法、终端及系统
CN102646023A (zh) * 2012-04-11 2012-08-22 广东欧珀移动通信有限公司 一种用户原始笔迹字体的生成方法
CN103473492A (zh) * 2013-09-05 2013-12-25 北京百纳威尔科技有限公司 权限识别方法和用户终端
CN105095721A (zh) * 2015-08-21 2015-11-25 京东方科技集团股份有限公司 指纹认证显示装置及认证显示方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112799613A (zh) * 2021-01-25 2021-05-14 杭州思锐迪科技有限公司 三维扫描的运营系统、方法、电子装置和存储介质
CN112799613B (zh) * 2021-01-25 2021-10-08 杭州思锐迪科技有限公司 三维扫描的运营系统、方法、电子装置和存储介质

Also Published As

Publication number Publication date
CN112840343A (zh) 2021-05-25

Similar Documents

Publication Publication Date Title
US10169639B2 (en) Method for fingerprint template update and terminal device
US10438080B2 (en) Handwriting recognition method and apparatus
CN108537207B (zh) 唇语识别方法、装置、存储介质及移动终端
US20190138703A1 (en) Method For Controlling Unlocking And Terminal Device
CN103927000A (zh) 输入设备、输出设备和存储介质
WO2017005020A1 (zh) 一种移动终端及其实现自动接听的方法
US10289894B2 (en) Method for controlling unlocking and terminal
CN108958587B (zh) 分屏处理方法、装置、存储介质和电子设备
CN108833779B (zh) 拍摄控制方法及相关产品
WO2020257988A1 (zh) 刷量用户识别方法及相关产品
CN110688973A (zh) 设备控制方法及相关产品
CN112329926A (zh) 智能机器人的质量改善方法及系统
CN109120781A (zh) 信息提示方法、电子装置及计算机可读存储介质
CN108958623A (zh) 一种应用程序启动方法及终端设备
WO2020124457A1 (zh) 个性化字体显示方法及相关产品
CN110264184B (zh) 支付控制方法及相关产品
CN110221696B (zh) 眼球追踪方法及相关产品
CN111796874A (zh) 一种设备唤醒的方法、装置、计算机设备和存储介质
JP2015049372A (ja) 外国語学習支援装置及び外国語学習支援プログラム
WO2022012595A1 (zh) 软件界面的订单生成方法及系统
CN112435671B (zh) 汉语精准识别的智能化语音控制方法及系统
CN112904997B (zh) 设备控制方法及相关产品
CN111158572B (zh) 交互方法和电子设备
WO2020124450A1 (zh) 字体设置方法及装置
WO2020252742A1 (zh) 资源推送方法及相关产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18943859

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 021121)

122 Ep: pct application non-entry in european phase

Ref document number: 18943859

Country of ref document: EP

Kind code of ref document: A1