CN106502614B - Font adjusting method and mobile terminal - Google Patents

Font adjusting method and mobile terminal Download PDF

Info

Publication number
CN106502614B
CN106502614B CN201610946279.1A CN201610946279A CN106502614B CN 106502614 B CN106502614 B CN 106502614B CN 201610946279 A CN201610946279 A CN 201610946279A CN 106502614 B CN106502614 B CN 106502614B
Authority
CN
China
Prior art keywords
target
target image
font
characters
color
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610946279.1A
Other languages
Chinese (zh)
Other versions
CN106502614A (en
Inventor
周悦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610946279.1A priority Critical patent/CN106502614B/en
Publication of CN106502614A publication Critical patent/CN106502614A/en
Application granted granted Critical
Publication of CN106502614B publication Critical patent/CN106502614B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros

Abstract

The embodiment of the invention provides a font adjusting method and a mobile terminal, wherein the font adjusting method comprises the following steps: obtaining a color mean value of at least part of pixels in a target image according to the position relation between the target characters and the target image, matching font features corresponding to the color mean value from a preset font matching library, and adjusting the fonts of the target characters according to the matched font features. According to the scheme provided by the invention, the spliced target characters and the target image can be visually matched, the situation that the characters cannot be seen clearly is avoided, the colors, the styles and the like of the target characters can be automatically adjusted by utilizing the color mean value of the target image, and the use experience of a user is improved.

Description

Font adjusting method and mobile terminal
Technical Field
The invention relates to the technical field of communication, in particular to a font adjusting method and a mobile terminal.
Background
In the prior art, in order to improve the use experience of a user, some software can generally splice images and characters together, and set the characters through specific several font colors and styles. For example, application QQ music may stitch lyrics and posters together, compose a lyric poster, and display the lyrics in a particular few font colors.
However, in the method for splicing image characters, the variability of the font color and the style is poor, and the font background color is single, so that the spliced characters and the images cannot be matched visually.
Disclosure of Invention
The embodiment of the invention provides a font adjusting method and a mobile terminal, and aims to solve the problem that spliced characters and images cannot be matched visually due to poor variability of font color and style and single font background color in the conventional method for splicing image characters.
In one aspect, an embodiment of the present invention provides a font adjusting method, including:
acquiring a color mean value of at least part of pixels in a target image according to the position relation between the target characters and the target image;
matching font characteristics corresponding to the color mean value from a preset font matching library;
and adjusting the font of the target character according to the matched font characteristics.
In another aspect, an embodiment of the present invention further provides a mobile terminal, including:
the acquisition module is used for acquiring the color mean value of at least part of pixels in the target image according to the position relation between the target characters and the target image;
the matching module is used for matching font characteristics corresponding to the color mean value from a preset font matching library;
and the first adjusting module is used for adjusting the font of the target character according to the matched font characteristics.
In this way, according to the font adjusting method of the embodiment of the present invention, the color mean value of at least some pixels in the target image is obtained according to the position relationship between the target text and the target image, the font features corresponding to the color mean value are matched from the preset font matching library, and the font of the target text is adjusted according to the matched font features, so that not only can the spliced target text be visually matched with the target image, and the situation that the text is not clearly seen is avoided, but also the color, the style, and the like of the target text can be automatically adjusted by using the color mean value of the target image, and the user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
Fig. 1 shows a flow chart of a font adjustment method according to a first embodiment of the present invention.
Fig. 2 shows a flow chart of a font adjustment method according to a second embodiment of the present invention.
Fig. 3 shows a flow chart of a font adjustment method according to a third embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention.
Fig. 5 is a second schematic structural diagram of a mobile terminal according to a fourth embodiment of the invention.
Fig. 6 is a third schematic structural diagram of a mobile terminal according to a fourth embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present invention.
Detailed Description
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive labor.
First embodiment
Referring to fig. 1, a first embodiment of the present invention provides a font adjusting method applied to a mobile terminal, including steps 101 to 103, which are described in detail below.
Step 101: and acquiring the color mean value of at least part of pixels in the target image according to the position relation between the target characters and the target image.
In the embodiment of the invention, the target image refers to an image to be spliced with the target characters, and can be a picture, a poster and the like. The target characters refer to characters to be spliced with the target picture, are characters to be subjected to font adjustment in the embodiment of the invention, and can be lyrics, poems and the like.
The pixel generally refers to a minimum unit in an image represented by a number sequence, so in the embodiment of the present invention, in order to determine the color mean of the image background of the target text, the color mean of at least a part of the pixels in the target image, that is, the color mean of the part of the target image related to the target text, may be obtained. The color mean value of which part of pixels in the target image is obtained is determined according to the position relationship between the target image and the target characters.
Step 102: and matching font characteristics corresponding to the color mean value from a preset font matching library.
In the embodiment of the invention, the preset font matching library is established in advance, the corresponding relation between the color mean value interval of the image and the font characteristics of the characters is stored, and the image and the characters are spliced together by virtue of the corresponding relation, so that the situation that the characters are not clearly seen basically does not occur.
Wherein the font features include at least one of: color values of the font, color values of the font background, style of the font, and the like.
Step 103: and adjusting the font of the target character according to the matched font characteristics.
Therefore, the fonts of the target characters are adjusted by using the font characteristics matched from the preset font matching library, so that the spliced target characters can be visually matched with the target image.
According to the font adjusting method provided by the embodiment of the invention, the color average value of at least part of pixels in the target image is obtained according to the position relation between the target characters and the target image, the font characteristics corresponding to the color average value are matched from the preset font matching library, and the font of the target characters is adjusted according to the matched font characteristics, so that the spliced target characters and the target image can be visually matched, the situation that the characters are not clearly seen is avoided, the color, the style and the like of the target characters can be automatically adjusted by using the color average value of the target image, and the use experience of a user is improved.
Second embodiment
Referring to fig. 2, a second embodiment of the present invention provides a font adjusting method applied to a mobile terminal, including steps 201 to 204, which are described in detail below.
Step 201: and acquiring the color value of each pixel in at least part of pixels of the target image according to the position relation between the target characters and the target image.
In the embodiment of the invention, the target image refers to an image to be spliced with the target characters, and can be a picture, a poster and the like. The target characters refer to characters to be spliced with the target picture, are characters to be subjected to font adjustment in the embodiment of the invention, and can be lyrics, poems and the like.
The pixel generally refers to a minimum unit in an image represented by a number sequence, so in the embodiment of the present invention, in order to determine the color mean of the image background of the target text, the color value of each pixel in at least a part of pixels of the target image may be first obtained, and then the color mean of the part of the target image related to the target text may be determined based on the obtained color values. The color value of each pixel in which part of pixels of the target image is to be obtained is determined according to the position relationship between the target image and the target text.
Step 202: and calculating the average value of the acquired color values to obtain the color average value of at least part of pixels in the target image.
Specifically, in order to obtain the color mean of at least some pixels in the target image, an existing color mean algorithm, that is, an average value of the obtained color values, may be used.
Step 203: and matching font characteristics corresponding to the color mean value from a preset font matching library.
In the embodiment of the invention, the preset font matching library is established in advance, the corresponding relation between the color mean value interval of the image and the font characteristics of the characters is stored, and the image and the characters are spliced together by virtue of the corresponding relation, so that the situation that the characters are not clearly seen basically does not occur.
Wherein the font features include at least one of: color values of the font, color values of the font background, style of the font, and the like.
Step 204: and adjusting the font of the target character according to the matched font characteristics.
Therefore, the fonts of the target characters are adjusted by using the font characteristics matched from the preset font matching library, so that the spliced target characters can be visually matched with the target image.
Compared with the first embodiment, the font adjusting method of the embodiment of the invention can simply and conveniently obtain the color mean value of the part of the target image related to the target character, so that the spliced target character is visually matched with the target image, the situation that the character is not clearly seen is avoided, the color mean value of the target image is utilized to automatically adjust the color, the style and the like of the target character, and the use experience of a user is improved.
Third embodiment
Referring to fig. 3, a third embodiment of the present invention provides a font adjustment method applied to a mobile terminal, including steps 301 to 308, which are described in detail below.
Step 301: and determining the position relation between the target image and the target character.
In the embodiment of the invention, the target image refers to an image to be spliced with the target characters, and can be a picture, a poster and the like. The target characters refer to characters to be spliced with the target picture, are characters to be subjected to font adjustment in the embodiment of the invention, and can be lyrics, poems and the like.
The position relationship between the target image and the target character can be two types: one is that the target text is located on the target image; the other is that the target text is not located above the target image, i.e. the target text is located at the side (left, right, upper and/or lower) of the target image.
Step 302: and if the target characters are positioned on the target image, acquiring the color mean value of pixels in the region of the target characters in the target image.
Specifically, when the target text is located on the target image, in order to ensure the accuracy of the obtained color mean, the color mean of the pixels in the region where the target text is located in the target image may be selected to be obtained.
Step 303: and if the target characters are not positioned on the target image, acquiring the color mean value of all pixels in the target image.
Specifically, when the target text is not located on the target image, the color mean of all pixels in the target image can be directly obtained, so as to ensure the balanced matching of the target image and the target text.
Step 304: and matching font characteristics corresponding to the color mean value from a preset font matching library.
In the embodiment of the invention, the preset font matching library is established in advance, the corresponding relation between the color mean value interval of the image and the font characteristics of the characters is stored, and the image and the characters are spliced together by virtue of the corresponding relation, so that the situation that the characters are not clearly seen basically does not occur.
Wherein the font features include at least one of: color values of the font, color values of the font background, style of the font, and the like.
Step 305: and adjusting the font of the target character according to the matched font characteristics.
Therefore, the fonts of the target characters are adjusted by using the font characteristics matched from the preset font matching library, so that the spliced target characters can be visually matched with the target image.
Step 306: and identifying the characteristic words in the target words.
In the embodiment of the invention, the characteristic words in the target characters refer to words, associated words and the like which have a description effect in the target characters, and the overall sense of the target characters can be reflected. Here, the words having a descriptive effect are, for example, cold, enthusiasm, black, happy, and the like, and the related words are, for example, not, though, but, and the like.
Step 307: and determining the mood type of the target character according to the matching degree between the recognized characteristic words and the preset characteristic words of each mood type.
In the embodiment of the present invention, in order to determine the mood type of the target text, a plurality of mood types, for example, 10 or 15 mood types, may be pre-divided in the mobile terminal, and feature words that may appear in each mood type are pre-set. And pre-divided mood types include, for example, depression, happiness, pain, freshness, etc.
Therefore, after the characteristic words in the target characters are identified, the identified characteristic words can be matched with the preset characteristic words of each situation type, and the situation type with the highest matching degree is selected as the situation type of the target characters.
Step 308: and adjusting the integral tone of the target character according to the mood type of the target character.
Specifically, after the mood type of the target character is determined, the overall tone of the target character can be adjusted based on the determined mood type, so that the overall tone of the target character is matched with the mood type, and the user experience degree is improved.
For example, when the mood type of the target character is melancholy, the adjustment of a cool tone (e.g., a blue tone) may be performed on the overall tone of the target character, and when the mood type of the target character is happy, the adjustment of a warm tone (e.g., a red tone) may be performed on the overall tone of the target character so that the overall tone of the target character matches the mood type thereof.
The font adjusting method provided by the embodiment of the invention not only can enable the spliced target characters to be visually matched with the target image, avoid the situation that the characters are not clearly seen, but also can automatically adjust the colors, the styles and the like of the target characters by using the color mean value of the target image, adjust the overall color tone of the target characters and improve the use experience of a user.
Fourth embodiment
Referring to fig. 4, a fourth embodiment of the present invention provides a mobile terminal, which is corresponding to the font adjusting method shown in fig. 1, and can implement the details of the font adjusting method in the first embodiment and achieve the same effects. The mobile terminal comprises an acquisition module 41, a matching module 42 and a first conditioning module 43, as detailed below.
The obtaining module 41 is configured to obtain a color mean value of at least part of pixels in the target image according to a position relationship between the target text and the target image.
And the matching module 42 is configured to match the font features corresponding to the color mean value from a preset font matching library.
The first adjusting module 43 is configured to adjust the font of the target text according to the matched font characteristics.
Referring to fig. 5, in the embodiment of the present invention, the obtaining module 41 includes a first obtaining unit 411 and a calculating unit 412, which are described in detail below.
The first obtaining unit 411 is configured to obtain a color value of each pixel in at least part of pixels of the target image according to a position relationship between the target text and the target image.
The calculating unit 412 is configured to calculate an average value of the obtained color values, so as to obtain a color average value of at least some pixels in the target image.
Referring to fig. 6, in the embodiment of the present invention, the obtaining module 41 includes a determining unit 413, a second obtaining unit 414, and a third obtaining unit 415, which are described in detail below.
The determining unit 413 is configured to determine a position relationship between the target image and the target text.
The second obtaining unit 414 is configured to obtain a color mean value of pixels in an area where the target text is located in the target image when the target text is located on the target image.
The third obtaining unit 415 is configured to obtain a color mean of all pixels in the target image when the target text is not located on the target image.
Specifically, the font features include at least one of: color values of the font, color values of the font background, and style of the font.
Further, referring to fig. 6, the mobile terminal further includes an identification module 44, a determination module 45, and a second adjustment module 46, which are described in detail below.
The identification module 44 is configured to identify the feature words in the target text.
The determining module 45 is configured to determine the mood type of the target text according to the matching degree between the identified feature words and the preset feature words of each mood type.
The second adjusting module 46 is configured to adjust the overall color tone of the target text according to the mood type of the target text.
According to the mobile terminal provided by the embodiment of the invention, the color mean value of at least part of pixels in the target image is obtained according to the position relation between the target characters and the target image, the font characteristics corresponding to the color mean value are matched from the preset font matching library, and the fonts of the target characters are adjusted according to the matched font characteristics, so that the spliced target characters and the target image can be matched visually, the situation that the characters are not clear is avoided, the color, the style and the like of the target characters can be automatically adjusted by using the color mean value of the target image, and the use experience of a user is improved.
Fifth embodiment
Fig. 7 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present invention. The mobile terminal 700 shown in fig. 7 includes: at least one processor 701, a memory 702, at least one network interface 704, and a user interface 703. The various components in the mobile terminal 700 are coupled together by a bus system 705. It is understood that the bus system 705 is used to enable communications among the components. The bus system 705 includes a power bus, a control bus, and a status signal bus in addition to a data bus. But for clarity of illustration the various busses are labeled in figure 7 as the bus system 705.
The user interface 703 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It is to be understood that the memory 702 in embodiments of the present invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of example, but not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data rate Synchronous Dynamic random access memory (ddr SDRAM ), Enhanced Synchronous SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and direct memory bus RAM (DRRAM). The memory 702 of the systems and methods described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 702 stores the following elements, executable modules or data structures, or a subset thereof, or an expanded set thereof: an operating system 7021 and application programs 7022.
The operating system 7021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, for implementing various basic services and processing hardware-based tasks. The application 7022 includes various applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. Programs that implement methods in accordance with embodiments of the present invention can be included within application program 7022.
In this embodiment of the present invention, by calling a program or an instruction stored in the memory 702, specifically, a program or an instruction stored in the application 7022, the processor 701 is configured to obtain a color mean value of at least a part of pixels in the target image according to a position relationship between the target text and the target image, match a font characteristic corresponding to the color mean value from a preset font matching library, and adjust the font of the target text according to the matched font characteristic.
The method disclosed in the above embodiments of the present invention may be applied to the processor 701, or implemented by the processor 701. The processor 701 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be implemented by integrated logic circuits of hardware or instructions in the form of software in the processor 701. The Processor 701 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable Gate Array (FPGA) or other programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 702, and the processor 701 reads the information in the memory 702 and performs the steps of the above method in combination with the hardware thereof.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented within one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions described herein, or a combination thereof.
For a software implementation, the techniques described herein may be implemented with modules (e.g., procedures, functions, and so on) that perform the functions described herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Optionally, the processor 701 is further configured to: and acquiring the color value of each pixel in at least part of pixels of the target image according to the position relation between the target characters and the target image, and calculating the average value of the acquired color values to obtain the color average value of at least part of pixels in the target image.
Optionally, the processor 701 is further configured to: and determining the position relation between the target image and the target characters, and if the target characters are positioned on the target image, acquiring the color mean value of pixels in the area where the target characters are positioned in the target image, or if the target characters are not positioned on the target image, acquiring the color mean value of all pixels in the target image.
Wherein the font features include at least one of: color values of the font, color values of the font background, and style of the font.
Optionally, the processor 701 is further configured to: identifying the characteristic words in the target characters, determining the situation type of the target characters according to the matching degree between the identified characteristic words and the preset characteristic words of each situation type, and adjusting the overall tone of the target characters according to the situation type of the target characters.
The mobile terminal 700 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
According to the mobile terminal 700 provided by the embodiment of the invention, the color mean value of at least part of pixels in the target image is obtained according to the position relationship between the target characters and the target image, the font characteristics corresponding to the color mean value are matched from the preset font matching library, and the fonts of the target characters are adjusted according to the matched font characteristics, so that the spliced target characters and the target image can be visually matched, the situation that the characters are not clearly seen is avoided, the colors, the styles and the like of the target characters can be automatically adjusted by using the color mean value of the target image, and the use experience of a user is improved.
Sixth embodiment
Fig. 8 is a schematic structural diagram of a mobile terminal according to a sixth embodiment of the present invention. Specifically, the mobile terminal 800 in fig. 8 may be a mobile phone, a tablet computer, a Personal Digital Assistant (PDA), or a vehicle-mounted computer.
The mobile terminal 800 in fig. 8 includes a Radio Frequency (RF) circuit 810, a memory 820, an input unit 830, a display unit 840, a processor 860, an audio circuit 870, a Wi-fi (wireless fidelity) module 880, and a power supply 890.
The input unit 830 may be used, among other things, to receive numeric or character information input by a user and to generate signal inputs related to user settings and function control of the mobile terminal 800. Specifically, in the embodiment of the present invention, the input unit 830 may include a touch panel 831. The touch panel 831, also referred to as a touch screen, can collect touch operations performed by a user on or near the touch panel 831 (e.g., operations performed by the user on the touch panel 831 using a finger, a stylus, or any other suitable object or accessory), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 831 may include two portions, i.e., a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 860, and can receive and execute commands sent by the processor 860. In addition, the touch panel 831 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 831, the input unit 830 may include other input devices 832, and the other input devices 832 may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
Among other things, the display unit 840 may be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 800. The display unit 840 may include a display panel 841, and the display panel 841 may be alternatively configured in the form of an LCD or an Organic Light-Emitting Diode (OLED), or the like.
It should be noted that the touch panel 831 can overlay the display panel 841 to form a touch display screen, which, when it detects a touch operation thereon or nearby, is passed to the processor 860 to determine the type of touch event, and then the processor 860 provides a corresponding visual output on the touch display screen according to the type of touch event.
The touch display screen comprises an application program interface display area and a common control display area. The arrangement modes of the application program interface display area and the common control display area are not limited, and can be an arrangement mode which can distinguish two display areas, such as vertical arrangement, left-right arrangement and the like. The application interface display area may be used to display an interface of an application. Each interface may contain at least one interface element such as an icon and/or widget desktop control for an application. The application interface display area may also be an empty interface that does not contain any content. The common control display area is used for displaying controls with high utilization rate, such as application icons like setting buttons, interface numbers, scroll bars, phone book icons and the like.
The processor 860 is a control center of the mobile terminal 800, connects various parts of the entire mobile phone using various interfaces and lines, and performs various functions of the mobile terminal 800 and processes data by operating or executing software programs and/or modules stored in the first memory 821 and calling data stored in the second memory 822, thereby integrally monitoring the mobile terminal 800. Optionally, processor 860 may include one or more processing units.
In this embodiment of the present invention, by calling the software program and/or module stored in the first memory 821 and/or the data stored in the second memory 822, the processor 860 is configured to obtain a color mean value of at least a part of pixels in the target image according to the position relationship between the target text and the target image, match a font characteristic corresponding to the color mean value from a preset font matching library, and adjust the font of the target text according to the matched font characteristic.
Optionally, the processor 860 is further configured to: and acquiring the color value of each pixel in at least part of pixels of the target image according to the position relation between the target characters and the target image, and calculating the average value of the acquired color values to obtain the color average value of at least part of pixels in the target image.
Optionally, the processor 860 is further configured to: determining the position relation between the target image and the target characters, if the target characters are located on the target image, obtaining the color mean value of pixels in the area where the target characters are located in the target image, or if the target characters are not located on the target image, obtaining the color mean value of all pixels in the target image.
Wherein the font features include at least one of: color values of the font, color values of the font background, and style of the font.
Optionally, the processor 860 is further configured to: identifying the characteristic words in the target characters, determining the situation type of the target characters according to the matching degree between the identified characteristic words and the preset characteristic words of each situation type, and adjusting the overall tone of the target characters according to the situation type of the target characters.
As can be seen, according to the mobile terminal 800 of the embodiment of the present invention, the color mean value of at least some pixels in the target image is obtained according to the position relationship between the target text and the target image, the font features corresponding to the color mean value are matched from the preset font matching library, and the font of the target text is adjusted according to the matched font features, so that not only can the target text and the target image spliced together be visually matched, and the situation that the text is not clearly seen is avoided, but also the color, the style, and the like of the target text can be automatically adjusted by using the color mean value of the target image, and the user experience is improved.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. 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 invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical 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 invention 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 functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (6)

1. A font adjustment method, comprising:
acquiring a color mean value of at least part of pixels in a target image according to the position relation between the target characters and the target image;
matching font characteristics corresponding to the color mean value from a preset font matching library;
adjusting the font of the target character according to the matched font characteristics;
the step of obtaining the color mean value of at least part of pixels in the target image according to the position relation between the target characters and the target image comprises the following steps:
determining the position relation between the target image and the target character;
if the target characters are located on the target image, acquiring a color mean value of pixels in an area where the target characters are located in the target image;
if the target characters are not positioned on the target image, acquiring the color mean values of all pixels in the target image;
wherein the target text is not located on the target image, and specifically comprises:
the target characters are positioned on the side of the target image;
the step of obtaining the color mean value of at least part of pixels in the target image according to the position relation between the target characters and the target image comprises the following steps:
acquiring a color value of each pixel in at least part of pixels of the target image according to the position relation between the target characters and the target image;
and calculating the average value of the acquired color values to obtain the color average value of at least part of pixels in the target image.
2. The method of claim 1, wherein the font features comprise at least one of: color values of the font, color values of the font background, and style of the font.
3. The method of claim 1, further comprising:
identifying characteristic words in the target characters;
determining the mood type of the target character according to the matching degree between the recognized characteristic words and the preset characteristic words of each mood type;
and adjusting the integral tone of the target character according to the mood type of the target character.
4. A mobile terminal, comprising:
the acquisition module is used for acquiring the color mean value of at least part of pixels in the target image according to the position relation between the target characters and the target image;
the matching module is used for matching font characteristics corresponding to the color mean value from a preset font matching library;
the first adjusting module is used for adjusting the font of the target character according to the matched font characteristics;
the acquisition module includes:
the determining unit is used for determining the position relation between the target image and the target character;
the second obtaining unit is used for obtaining the color mean value of pixels in the area where the target characters are located in the target image when the target characters are located on the target image;
a third obtaining unit, configured to obtain a color mean of all pixels in the target image when the target text is not located on the target image;
wherein the target text is not located on the target image, and specifically comprises:
the target characters are positioned on the side of the target image;
the acquisition module includes:
the first acquisition unit is used for acquiring the color value of each pixel in at least part of pixels of the target image according to the position relation between the target characters and the target image;
and the calculating unit is used for calculating the average value of the acquired color values to obtain the color average value of at least part of pixels in the target image.
5. The mobile terminal of claim 4, wherein the font features comprise at least one of: color values of the font, color values of the font background, and style of the font.
6. The mobile terminal of claim 4, wherein the mobile terminal further comprises:
the recognition module is used for recognizing the characteristic words in the target characters;
the determining module is used for determining the situation type of the target character according to the matching degree between the recognized feature words and the preset feature words of each situation type;
and the second adjusting module is used for adjusting the overall tone of the target character according to the mood type of the target character.
CN201610946279.1A 2016-10-26 2016-10-26 Font adjusting method and mobile terminal Active CN106502614B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610946279.1A CN106502614B (en) 2016-10-26 2016-10-26 Font adjusting method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610946279.1A CN106502614B (en) 2016-10-26 2016-10-26 Font adjusting method and mobile terminal

Publications (2)

Publication Number Publication Date
CN106502614A CN106502614A (en) 2017-03-15
CN106502614B true CN106502614B (en) 2020-01-10

Family

ID=58321162

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610946279.1A Active CN106502614B (en) 2016-10-26 2016-10-26 Font adjusting method and mobile terminal

Country Status (1)

Country Link
CN (1) CN106502614B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108133455A (en) * 2017-12-01 2018-06-08 天脉聚源(北京)科技有限公司 The display methods and device of user's name in poster image
CN108089830B (en) * 2017-12-11 2019-10-29 维沃移动通信有限公司 Song information display methods, device and mobile terminal
CN110533743B (en) * 2018-05-25 2023-03-21 阿里巴巴集团控股有限公司 Picture processing method, device and system
CN109558195B (en) * 2018-11-12 2021-07-06 厦门欢乐逛科技股份有限公司 Font special effect adjusting method, medium, computer equipment and device
CN110413955B (en) * 2019-07-30 2023-04-07 北京小米移动软件有限公司 Character readjusting method, device, terminal and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104076928A (en) * 2014-07-15 2014-10-01 深圳市金立通信设备有限公司 Method for adjusting color tone of text display area
CN104391691A (en) * 2014-11-07 2015-03-04 久邦计算机技术(广州)有限公司 Icon and text processing method
CN104391630A (en) * 2014-10-21 2015-03-04 四川盟宝实业有限公司 Method for automatically changing front color of standby interface of mobile terminal
CN105809645A (en) * 2016-03-28 2016-07-27 努比亚技术有限公司 Word display method and device and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508666B (en) * 2011-11-11 2014-11-19 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting application prompt message in application program

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104076928A (en) * 2014-07-15 2014-10-01 深圳市金立通信设备有限公司 Method for adjusting color tone of text display area
CN104391630A (en) * 2014-10-21 2015-03-04 四川盟宝实业有限公司 Method for automatically changing front color of standby interface of mobile terminal
CN104391691A (en) * 2014-11-07 2015-03-04 久邦计算机技术(广州)有限公司 Icon and text processing method
CN105809645A (en) * 2016-03-28 2016-07-27 努比亚技术有限公司 Word display method and device and mobile terminal

Also Published As

Publication number Publication date
CN106502614A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN106502614B (en) Font adjusting method and mobile terminal
CN107678644B (en) Image processing method and mobile terminal
CN106126077B (en) Display control method of application program icons and mobile terminal
CN107632895B (en) Information sharing method and mobile terminal
CN106327185B (en) Starting method of payment application and mobile terminal
CN107659722B (en) Image selection method and mobile terminal
CN107124543B (en) Shooting method and mobile terminal
CN107219988B (en) Interface operation guiding method and mobile terminal
CN107741820B (en) Input method keyboard display method and mobile terminal
CN107172346B (en) Virtualization method and mobile terminal
CN107665434B (en) Payment method and mobile terminal
CN106354373B (en) Icon moving method and mobile terminal
CN106168894B (en) Content display method and mobile terminal
CN106383638B (en) Payment mode display method and mobile terminal
CN107643847B (en) Message display method and mobile terminal
CN107959789B (en) Image processing method and mobile terminal
CN106446180B (en) Song identification method and mobile terminal
CN107172347B (en) Photographing method and terminal
CN107480500B (en) Face verification method and mobile terminal
TW201604719A (en) Method and apparatus of controlling a smart device
CN106408289B (en) Payment page switching method and mobile terminal
CN107370758B (en) Login method and mobile terminal
KR20230060497A (en) User terminal apparatus, electronic apparatus, system and control method thereof
CN106775378B (en) Method for determining candidate words of input method and mobile terminal
EP3605305A1 (en) Character input method of mobile terminal and mobile terminal

Legal Events

Date Code Title Description
C06 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211209

Address after: 523860 first floor, building F, No. 255, Wusha Bubugao Avenue, Chang'an Town, Dongguan City, Guangdong Province

Patentee after: Guangdong Weiwo Software Technology Co.,Ltd.

Address before: 523860 No. 283 BBK Avenue, Changan Town, Changan, Guangdong.

Patentee before: VIVO MOBILE COMMUNICATION Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 523860 first floor, building F, No. 255, Wusha Bubugao Avenue, Chang'an Town, Dongguan City, Guangdong Province

Patentee after: Guangdong Kexun Software Technology Co.,Ltd.

Address before: 523860 first floor, building F, No. 255, Wusha Bubugao Avenue, Chang'an Town, Dongguan City, Guangdong Province

Patentee before: Guangdong Weiwo Software Technology Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20220420

Address after: 523846 No. 1, Weiwo Road, Chang'an Town, Dongguan City, Guangdong Province

Patentee after: VIVO MOBILE COMMUNICATION Co.,Ltd.

Address before: 523860 first floor, building F, No. 255, Wusha Bubugao Avenue, Chang'an Town, Dongguan City, Guangdong Province

Patentee before: Guangdong Kexun Software Technology Co.,Ltd.