CN107832784B - Image beautifying method and mobile terminal - Google Patents

Image beautifying method and mobile terminal Download PDF

Info

Publication number
CN107832784B
CN107832784B CN201711023730.3A CN201711023730A CN107832784B CN 107832784 B CN107832784 B CN 107832784B CN 201711023730 A CN201711023730 A CN 201711023730A CN 107832784 B CN107832784 B CN 107832784B
Authority
CN
China
Prior art keywords
user
beautifying
mobile terminal
beautification
image
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
CN201711023730.3A
Other languages
Chinese (zh)
Other versions
CN107832784A (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 CN201711023730.3A priority Critical patent/CN107832784B/en
Publication of CN107832784A publication Critical patent/CN107832784A/en
Application granted granted Critical
Publication of CN107832784B publication Critical patent/CN107832784B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/90Dynamic range modification of images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Evolutionary Biology (AREA)
  • Evolutionary Computation (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Telephone Function (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention provides an image beautifying method and a mobile terminal, wherein the method comprises the following steps: acquiring user characteristic information, and determining a user type according to the user characteristic information; determining corresponding beauty parameters according to the user type; and beautifying the image in the mobile terminal by using the beautifying parameter. The embodiment of the invention beautifies the image by using the beauty parameters corresponding to the user type, so that the beautified image is more in line with the expectation of the user, the beautifying effect of the image is improved, and the beautifying satisfaction of the image is improved.

Description

Image beautifying method and mobile terminal
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image beautifying method and a mobile terminal.
Background
With the development of science and technology, the functions of mobile terminals are more and more abundant, and the current mobile terminals have the multimedia functions of entertainment, payment, photographing and the like besides the basic functions of communication.
At present, more and more users take pictures by using mobile terminals, especially self-shooting. In order to make users take more beautiful self-portrait photos, the beauty function has become the function of mobile terminal main printing.
Currently, a beauty product on the market is mainly characterized in that a set of default beauty parameters including whitening grade, skin grinding degree and the like are preset. And then beautifies the preview and the photo of the user through a specific beautifying algorithm. Manual adjustment of the beauty parameters is required when the user is not satisfied with the default settings of the system.
However, these two approaches have the following drawbacks:
1. beauty treatment is a product depending on subjective judgment, the individual beauty treatment has great difference, and the default beauty treatment parameters can not meet the requirements of different crowds.
2. The manual adjustment of the beauty parameters by the user has many limitations, the effect of the user who debugs by himself cannot be optimal, many small and white users cannot adjust the beauty parameters, and the learning cost is high.
Disclosure of Invention
The embodiment of the invention provides an image beautifying method, which aims to solve the problem of poor beautifying effect in the prior art.
In order to solve the technical problem, the invention is realized as follows: a method for beautifying images, which is applied to a mobile terminal, comprises the following steps:
acquiring user characteristic information, and determining a user type according to the user characteristic information;
determining corresponding beauty parameters according to the user type;
and beautifying the image in the mobile terminal by using the beautifying parameter.
In a first aspect, an embodiment of the present invention further provides a mobile terminal, including:
the acquisition module is used for acquiring the user characteristic information and determining the user type according to the user characteristic information;
the determining module is used for determining corresponding beauty parameters according to the user type;
and the beautifying module is used for beautifying the image in the mobile terminal by using the beautifying parameter.
In a second aspect, an embodiment of the present invention provides a further mobile terminal, including a processor, a memory, and a computer program stored on the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of a method for beautifying an image according to any one of the above.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of a method for beautifying an image according to any one of claims 1 to 7.
The embodiment of the invention beautifies the image by using the beauty parameters corresponding to the user type, so that the beautified image is more in line with the expectation of the user, the beautifying effect of the image is improved, and the beautifying satisfaction of the image is improved.
Drawings
FIG. 1 is a flow chart of the steps of a method embodiment of the invention for image beautification;
FIG. 2 is a flow chart of steps of yet another method embodiment of image beautification of the present invention;
FIG. 3 is a block diagram of a mobile terminal according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a hardware structure of a mobile terminal implementing various embodiments of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for beautifying an image according to the present invention is shown, where the method is applied to a mobile terminal having a first beautification template library, where the first beautification template library includes one or more beautification templates, where each beautification template includes one or more beauty parameters and a value of each beauty parameter, and each beautification template has a corresponding user type.
In the present invention, the mobile terminal may have the following features:
(1) on a hardware architecture, a device has a central processing unit, a memory, an input unit and an output unit, that is, the device is often a microcomputer device having a communication function. In addition, various input modes such as a keyboard, a mouse, a touch screen, a microphone, a camera and the like can be provided, and input can be adjusted as required. Meanwhile, the equipment often has a plurality of output modes, such as a telephone receiver, a display screen and the like, and can be adjusted according to needs;
(2) on a software system, the device must have an operating system, such as Windows Mobile, Symbian, Palm, Android, iOS, and the like. Meanwhile, the operating systems are more and more open, and personalized application programs developed based on the open operating system platforms are infinite, such as a communication book, a schedule, a notebook, a calculator, various games and the like, so that the requirements of personalized users are met to a great extent;
(3) in terms of communication capacity, the device has flexible access mode and high-bandwidth communication performance, and can automatically adjust the selected communication mode according to the selected service and the environment, thereby being convenient for users to use. The equipment can support GSM, WCDMA, CDMA2000, TDSCDMA, Wi-Fi, WiMAX and the like, thereby being suitable for various systems of networks, not only supporting voice services, but also supporting various wireless data services;
(4) in the aspect of function use, the equipment focuses more on humanization, individuation and multi-functionalization. With the development of computer technology, devices enter a human-centered mode from a device-centered mode, and the embedded computing, control technology, artificial intelligence technology, biometric authentication technology and the like are integrated, so that the human-oriented purpose is fully embodied. Due to the development of software technology, the equipment can be adjusted and set according to individual requirements, and is more personalized. Meanwhile, the device integrates a plurality of software and hardware, and the function is more and more powerful.
The method specifically comprises the following steps:
step 101, obtaining user characteristic information, and determining a user type according to the user characteristic information.
When the mobile terminal is in the shooting mode, the user can shoot through a physical key of the mobile terminal, such as a shooting button, or through a virtual button, such as a shooting button on a screen.
After a user presses a shooting button, a central processing unit of the mobile terminal sends a shooting instruction to the camera, and the camera collects a first image after receiving the shooting instruction.
In a preferred embodiment of the present invention, the user characteristic information includes user behavior characteristic information and user facial characteristic information; each API of the mobile terminal is provided with a buried point, and the buried point is used for collecting user behavior characteristic information, encrypting the collected user behavior characteristic information and storing the encrypted user behavior characteristic information in a preset user behavior characteristic information base.
Specifically, the user behavior feature information may include browsing records, browsing time, operation records, and the like of the user, for example, how long the user browses on a webpage of the cosmetic, which operations are performed, and the like are recorded; the user facial feature information may include, but is not limited to, age, gender, facial shape features, skin tone, etc.
Each API (Application Programming Interface) of the mobile terminal is provided with a buried point, and the buried point is used for acquiring behavior information of a user, encrypting the acquired behavior information, and storing the behavior information in a preset behavior information base.
The buried point is a common data acquisition method for data analysis. The data embedding points are divided into a primary mode, a middle mode and a high mode. Data embedding is a good privatized deployment data acquisition mode. For example, a monitoring point is added to an APP (Application program), so that it is clear from the background what the user does at the monitoring point, and the like.
Data embedding is preparation work of data analysis, data can be obtained for analysis only after the data embedding, and the desired target data can be obtained after the data embedding, and the method comprises the following steps:
1. behavior data: time, location, people, interactions, content of interactions;
2. quality data: browser loading conditions, error exceptions, etc.;
3. environmental data: browser-related metadata and geography, operator, etc.;
4. operation data: PV, UV, conversion, retention (very visual data);
in the embodiment of the present invention, in order to obtain the behavior data of the user, it is necessary to perform a site burying process on each API of the mobile terminal.
An API (Application Programming Interface) is a predefined function that is intended to provide applications and developers the ability to access a set of routines based on certain software or hardware, without having to access source code or understand the details of the internal workings.
By embedding points in each API of the mobile terminal, the user can know which information such as stars, clothes, ornaments and cosmetics, etc., the user browses, so that the user preference is determined, and the user category is further determined.
In a preferred embodiment of the present invention, the step of obtaining the user characteristic information and determining the user type according to the user characteristic information includes:
performing portrait analysis on the user face characteristic information and the user behavior characteristic information in the user behavior characteristic information base;
based on the analysis results, a user type of the user is determined.
Specifically, after the mobile terminal finishes collecting the first image, the first image is not directly displayed to the user, and whether the first image contains a portrait or not needs to be determined, for example, the determination may be performed through face recognition.
Face recognition is a biometric technology for identity recognition based on facial feature information of a person. A series of related technologies, also commonly called face recognition and face recognition, are used to capture an image or video stream containing a face with a camera or a video camera, automatically detect and track the face in the image, and then perform face recognition on the detected face.
The human face is inherent like other biological characteristics (fingerprints, irises and the like) of a human body, the uniqueness and the good characteristic that the human face is not easy to copy provide necessary premise for identity identification, and compared with other types of biological identification, the human face identification has the following characteristics:
optional characteristics: the user does not need to be specially matched with face acquisition equipment, and can almost acquire a face image in an unconscious state, and the sampling mode is not mandatory;
non-contact property: the user can obtain the face image without directly contacting with the equipment;
concurrency: the method can be used for sorting, judging and identifying a plurality of faces in an actual application scene;
in addition, the visual characteristics are also met: the characteristic of 'people can be identified by the appearance', and the characteristics of simple operation, visual result, good concealment and the like.
In the embodiment of the invention, each beautification template in the beautification template library in the mobile terminal respectively has one-to-one corresponding user type, namely, different beautification templates can be adopted for beautification instead of the situation that all people beautify by using the same beautification mode.
To obtain the target beautification template, the user type needs to be determined, and the portrait analysis needs to be performed on the feature information of the portrait in the first image when the user type is determined.
A representation, a "user representation," is a virtual representation of a real user, and is a target user model built over a series of real data. According to the difference of their targets, behaviors and viewpoints, the people are divided into different types, then typical features are extracted from each type, and names, photos, some demographic elements, scenes and the like are given to the typical features, so that a character prototype is formed. If described in terms of a sentence, that is: and labeling the user information.
The portrait analysis is to classify the user by using the label of the user information, and is applied to the embodiment of the invention, namely to classify the characteristic information of the portrait in the first image to determine the type of the user, and then to obtain the beautification template corresponding to the type of the user from the beautification template library.
Therefore, after the characteristic information of the portrait in the first image is obtained, the type of the user can be determined more accurately by combining the behavior information of the user. For example, after the portrait feature information in the first image and the behavior information corresponding to the portrait are analyzed, the user is a woman, the age of 20 years old, frequently browses pages related to Zhang cypress, likes one-piece dress, likes light makeup, and the like, based on the information, the category of the user can be determined to be a third category, and then a beautification template corresponding to the third category is obtained from the beautification template library.
It should be noted that, because the behavior information of the user obtained by burying the API of the mobile terminal may include the privacy of the user, in the present application, all information obtained by burying the API must be encrypted, and is only used locally by the mobile terminal, and is not uploaded to the server or other people, and the user himself or other people cannot view the behavior information from the mobile terminal.
In addition, in practical application, a situation that a friend who is not the owner of the mobile terminal, that is, the owner of the mobile terminal uses the mobile terminal to take a self-portrait may occur, but since the behavior information of the friend is not recorded by the mobile terminal, in this case, the first image is not portrait-analyzed based on the feature information of the portrait in the first image in combination with the behavior information in the behavior information base, since the feature information and the main body of the behavior information are not the same user. Therefore, in this case, the beautification template may be acquired based on the feature information of the portrait in the first image.
The determination of whether the portrait in the first image is the owner of the mobile terminal may be performed by saving the image of the owner in the mobile terminal in advance, and determining whether the portrait in the first image is the same as the portrait in the image saved in advance when beautifying, or may be performed in other manners, which is not limited in this embodiment of the present invention.
And 102, determining corresponding beauty parameters according to the user type.
In a preferred embodiment of the present invention, the step of determining the corresponding beauty parameter according to the user type includes:
acquiring a beautification template corresponding to the user type from the first beautification template library;
acquiring beauty parameters of the beautifying template;
and taking the beauty parameter as a target beauty parameter.
Specifically, the beautification module may include a plurality of beauty parameters, such as brightness, RGB, ISO, and other parameters, and after the beautification module corresponding to the user type is obtained, it may be known which beauty parameters the beautification module includes, and then the beautification module may be ready to beautify the image using the beauty parameters.
And 103, beautifying the image in the mobile terminal by using the beautifying parameter.
After the beautifying parameters of the beautifying module are obtained, the image can be beautified.
In an embodiment of the present invention, the beautifying the image in the mobile terminal by using the beautifying parameter includes:
obtaining the value of each beauty parameter of the target beauty parameters;
and modifying the value of the target beauty parameter of the image into the value of each beauty parameter of the target beauty parameter.
Specifically, the value of the image parameter in the first image is modified into the value of the image parameter in the target beautification template, and a second image is generated. For example, if the value of the luminance parameter in the first image is 10 and the value of the luminance parameter in the beautification template is 48, the value of the luminance parameter in the first image is modified to 48, and so on, and thus the description is omitted here.
After the second image is generated, it is presented to the user, who sees the image as beautified.
It should be noted that, in the embodiment of the present invention, the beautification may be performed during the user's photographing, or the beautification may be performed on the image in the album after the user finishes photographing.
The embodiment of the invention beautifies the image by using the beauty parameters corresponding to the user type, so that the beautified image is more in line with the expectation of the user, the beautifying effect of the image is improved, and the beautifying satisfaction of the image is improved.
Referring to fig. 2, a flow chart of steps of yet another method embodiment of image beautification of the present invention is shown, applied to a mobile terminal,
the method specifically comprises the following steps:
step 201, obtaining user characteristic information, and determining a user type according to the user characteristic information;
step 202, determining corresponding beauty parameters according to the user type;
and 203, beautifying the image in the mobile terminal by using the beautifying parameter.
Step 204, acquiring the latest beautification template from the server according to a preset time interval; the server is provided with a second beautification template library and is used for receiving an beautification template updating request sent by the mobile terminal, the request comprises the version number of the first beautification template library in the mobile terminal, and when the version number of the second beautification template library is higher than the version number of the first beautification template library, the updating file is sent to the mobile terminal.
Specifically, the mobile terminal may obtain the latest beautification template from the server at preset time intervals, for example, 6 hours, 12 hours, 1 day, and the like.
The server acquires data through big data statistics including but not limited to user research, user return visit, forum periodic discussion and the like, determines user classification methods and user behavior information corresponding to each type of users, and determines a group of beautifying templates for each type of users through professional beautifying effect teams.
It should be noted that the server may perform statistics manually or through artificial intelligence to obtain data through big data, which is not limited in this embodiment of the present invention.
And after receiving the beautification template updating request sent by the mobile terminal, the server compares the version number of the first beautification template library of the mobile terminal in the request with the version number of the second beautification template library, and if the version number of the second beautification template library is higher than the version number of the first beautification template library, the server sends the updating file to the mobile terminal. The update file may be a brand new beautification template which is not available in the mobile terminal, or may be an beautification template which is already available in the mobile terminal, but the values of the image parameters in the beautification template are different.
And step 205, updating the latest beautification template to the first beautification template library.
Specifically, if the beautification template sent by the server is not available in the preset beautification template library, the beautification template is added to the preset beautification template library; and if the beautification template sent by the server is already existed in the preset beautification template library, modifying the value of the image parameter in the template into the value of the image parameter in the latest beautification template sent by the server.
In the embodiment of the invention, the user characteristic information is firstly acquired, the user type is determined according to the user characteristic information, the corresponding beautifying parameter is determined according to the user type, and finally, the beautifying parameter is used for beautifying the image in the mobile terminal. Therefore, the type of the user in the image is determined by an artificial intelligence method, and then the beautifying template corresponding to the type is used for beautifying the image, so that default beautifying parameters are more in line with the aesthetic perception of the user, the beautifying effect is improved, and the satisfaction degree of the user on the beautifying is also improved.
Meanwhile, the method and the device automatically synchronize with the server and update the local beautification template of the mobile terminal, so that the beautification templates corresponding to different types of users are more targeted.
It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, a block diagram of a mobile terminal according to an embodiment of the present invention is shown, which may specifically include the following modules:
an obtaining module 301, configured to obtain user feature information, and determine a user type according to the user feature information;
a determining module 302, configured to determine a corresponding beauty parameter according to the user type;
a beautification module 303, configured to beautify the image in the mobile terminal by using the beauty parameter.
In a preferred embodiment of the present invention, the mobile terminal has a first beautification template library, the first beautification template library includes one or more sets of beautification templates, the beautification templates include one or more beauty parameters and values of the beauty parameters, and each set of beautification templates has a corresponding user type.
In a preferred embodiment of the present invention, the user characteristic information includes user behavior characteristic information and user facial characteristic information; each API of the mobile terminal is provided with a buried point, and the buried point is used for collecting user behavior characteristic information, encrypting the collected user behavior characteristic information and storing the encrypted user behavior characteristic information in a preset user behavior characteristic information base.
In a preferred embodiment of the present invention, the obtaining module includes:
the portrait analysis submodule is used for carrying out portrait analysis on the user face characteristic information and the user behavior characteristic information in the user behavior characteristic information base;
and the type determining submodule is used for determining the user type of the user based on the analysis result.
In a preferred embodiment of the present invention, the determining module includes:
the beautifying template acquisition submodule is used for acquiring a beautifying template corresponding to the user type from the first beautifying template library;
the beautifying parameter acquisition submodule is used for acquiring beautifying parameters of the beautifying template;
and the beautifying parameter determining submodule is used for taking the beautifying parameter as a target beautifying parameter.
In a preferred embodiment of the present invention, the beautification module comprises:
a beauty parameter value extraction module for obtaining the value of each beauty parameter of the target beauty parameter;
and the beautifying parameter value modifying module is used for modifying the value of the target beautifying parameter of the image into the value of each beautifying parameter of the target beautifying parameter.
In a preferred embodiment of the present invention, the method further comprises:
the receiving module is used for acquiring the latest beautification template from the server according to a preset time interval; the server is provided with a second beautification template library and is used for receiving an beautification template updating request sent by the mobile terminal, wherein the beautification template updating request comprises the version number of a first beautification template library in the mobile terminal, and when the version number of the second beautification template library is higher than the version number of the first beautification template library, the updating file is sent to the mobile terminal;
and the updating module is used for updating the latest beautification template to the first beautification template library.
The mobile terminal provided in the embodiment of the present invention can implement each process implemented by the mobile terminal in the method embodiments of fig. 1 to fig. 2, and is not described herein again to avoid repetition.
The embodiment of the invention beautifies the image by using the beauty parameters corresponding to the user type, so that the beautified image is more in line with the expectation of the user, the beautifying effect of the image is improved, and the beautifying satisfaction of the image is improved.
Figure 4 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 400 includes, but is not limited to: radio frequency unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor 410, and power supply 411. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 4 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The 401 processor 410 is configured to obtain user feature information, and determine a user type according to the user feature information; determining corresponding beauty parameters according to the user type; and beautifying the image in the mobile terminal by using the beautifying parameter.
In the embodiment of the invention, when the mobile terminal receives an image acquisition instruction, a first image is acquired, whether the first image contains a portrait is judged, if yes, the characteristic information of the portrait is acquired, a target beautifying template is acquired from a first beautifying template library based on the characteristic information, the value of the image parameter in the first image is modified into the value of the image parameter in the target beautifying template, a second image is generated, and finally the second image is displayed. Therefore, the type of the user in the image is determined by an artificial intelligence method, and then the beautifying template corresponding to the type is used for beautifying the image, so that default beautifying parameters are more in line with the aesthetic perception of the user, the beautifying effect is improved, and the satisfaction degree of the user on the beautifying is also improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 401 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 410; in addition, the uplink data is transmitted to the base station. Typically, radio unit 401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio unit 401 can also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access through the network module 402, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 403 may convert audio data received by the radio frequency unit 401 or the network module 402 or stored in the memory 409 into an audio signal and output as sound. Also, the audio output unit 403 may also provide audio output related to a specific function performed by the mobile terminal 400 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 403 includes a speaker, a buzzer, a receiver, and the like.
The input unit 404 is used to receive audio or video signals. The input Unit 404 may include a Graphics Processing Unit (GPU) 404 and a microphone 404, and the Graphics processor 404 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 406. The image frames processed by the graphic processor 404 may be stored in the memory 409 (or other storage medium) or transmitted via the radio frequency unit 401 or the network module 402. The microphone 404 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 401 in case of the phone call mode.
The mobile terminal 400 also includes at least one sensor 405, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 406 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 406 and/or the backlight when the mobile terminal 400 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 405 may also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be described in detail herein.
The display unit 406 is used to display information input by the user or information provided to the user. The Display unit 406 may include a Display panel 406, and the Display panel 406 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 407 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 407 includes a touch panel 407 and other input devices 407. Touch panel 407, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on touch panel 407 or near touch panel 407 using a finger, stylus, or any other suitable object or attachment). The touch panel 407 may include two parts of 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 410, receives a command from the processor 410, and executes the command. In addition, the touch panel 407 may be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 407 may include other input devices 407 in addition to the touch panel 407. Specifically, the other input devices 407 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a track ball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 407 can be overlaid on the display panel 406, and when the touch panel 407 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 410 to determine the type of the touch event, and then the processor 410 provides a corresponding visual output on the display panel 406 according to the type of the touch event. Although in fig. 4, the touch panel 407 and the display panel 406 are two independent components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 407 and the display panel 406 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 408 is an interface through which an external device is connected to the mobile terminal 400. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 408 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 400 or may be used to transmit data between the mobile terminal 400 and external devices.
The memory 409 may be used to store software programs as well as various data. The memory 409 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 409 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 410 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 409 and calling data stored in the memory 409, thereby integrally monitoring the mobile terminal. Processor 410 may include one or more processing units; preferably, the processor 410 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The mobile terminal 400 may further include a power supply 411 (e.g., a battery) for supplying power to various components, and preferably, the power supply 411 may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the mobile terminal 400 includes some functional modules that are not shown, and thus, are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 410, a memory 409, and a computer program stored in the memory 409 and capable of running on the processor 410, and when the computer program is executed by the processor 410, the processes of the embodiment of the image beautification method are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the above-mentioned method for beautifying an image, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (8)

1. A method for beautifying images, which is applied to a mobile terminal, and comprises the following steps:
acquiring user characteristic information, and determining a user type according to the user characteristic information;
determining corresponding beauty parameters according to the user type;
beautifying the image in the mobile terminal by using the beautifying parameter;
the step of obtaining the user characteristic information and determining the user type according to the user characteristic information comprises the following steps:
carrying out portrait analysis on the user face characteristic information and the user behavior characteristic information in the user behavior characteristic information base; the user behavior feature information comprises: browsing records, browsing time and operation records of a user; the representation is a user representation which is a virtual representation of a real user and is a target user model established on a series of real data;
determining a user type of the user based on the analysis result;
wherein, still include:
through embedding points in each API of the mobile terminal, information of stars, clothes, ornaments and cosmetics browsed by a user is obtained, and the information is used for determining the preference of the user so as to determine the category of the user.
2. The method of claim 1, wherein the mobile terminal has a first beautification template library, wherein the first beautification template library comprises one or more beautification templates, wherein the beautification templates comprise one or more beauty parameters and values of the beauty parameters, and wherein each beautification template has a corresponding user type.
3. The method of claim 2, wherein the step of determining the corresponding beauty parameter according to the user type comprises:
acquiring a beautification template corresponding to the user type from the first beautification template library;
acquiring beauty parameters of the beautifying template;
and taking the beauty parameter as a target beauty parameter.
4. A mobile terminal, comprising:
the acquisition module is used for acquiring the user characteristic information and determining the user type according to the user characteristic information;
the determining module is used for determining corresponding beauty parameters according to the user type;
the beautifying module is used for beautifying the image in the mobile terminal by using the beautifying parameter;
wherein the acquisition module comprises:
the portrait analysis submodule is used for carrying out portrait analysis on the face characteristic information of the user and the user behavior characteristic information in the user behavior characteristic information base; the user behavior feature information comprises: browsing records, browsing time and operation records of a user; the representation is a user representation which is a virtual representation of a real user and is a target user model established on a series of real data;
the type determining submodule is used for determining the user type of the user based on the analysis result;
wherein the mobile terminal is further configured to:
through embedding points in each API of the mobile terminal, information of stars, clothes, ornaments and cosmetics browsed by a user is obtained, and the information is used for determining the preference of the user so as to determine the category of the user.
5. The mobile terminal of claim 4, wherein the mobile terminal has a first beautification template library, wherein the first beautification template library comprises one or more beautification templates, wherein the beautification templates comprise one or more beauty parameters and values of the beauty parameters, and each beautification template has a corresponding user type.
6. The mobile terminal of claim 5, wherein the determining module comprises:
the beautifying template acquisition submodule is used for acquiring a beautifying template corresponding to the user type from the first beautifying template library;
the beautifying parameter acquisition submodule is used for acquiring beautifying parameters of the beautifying template;
and the beautifying parameter determining submodule is used for taking the beautifying parameter as a target beautifying parameter.
7. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of a method of image beautification as claimed in any one of claims 1 to 3.
8. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of a method of image beautification as claimed in any one of claims 1 to 3.
CN201711023730.3A 2017-10-27 2017-10-27 Image beautifying method and mobile terminal Active CN107832784B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711023730.3A CN107832784B (en) 2017-10-27 2017-10-27 Image beautifying method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711023730.3A CN107832784B (en) 2017-10-27 2017-10-27 Image beautifying method and mobile terminal

Publications (2)

Publication Number Publication Date
CN107832784A CN107832784A (en) 2018-03-23
CN107832784B true CN107832784B (en) 2021-04-30

Family

ID=61650646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711023730.3A Active CN107832784B (en) 2017-10-27 2017-10-27 Image beautifying method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107832784B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109447896B (en) * 2018-09-21 2023-07-25 维沃移动通信(杭州)有限公司 Image processing method and terminal equipment
CN109493286A (en) * 2018-09-28 2019-03-19 维沃移动通信(杭州)有限公司 A kind of method and terminal device obtaining beauty parameter
CN109242767B (en) * 2018-09-28 2023-05-05 维沃移动通信(杭州)有限公司 Method for obtaining beauty parameters and terminal equipment
CN109325929A (en) * 2018-10-17 2019-02-12 联想(北京)有限公司 Image processing method and electronic equipment
US11010636B2 (en) * 2018-10-25 2021-05-18 L'oreal Systems and methods for providing personalized product recommendations using deep learning
CN110930338B (en) * 2019-11-29 2023-06-23 Oppo广东移动通信有限公司 Image processing method, image processing apparatus, electronic device, and computer-readable storage medium
CN111031239B (en) * 2019-12-05 2021-06-18 Oppo广东移动通信有限公司 Image processing method and apparatus, electronic device, and computer-readable storage medium
CN111179155B (en) * 2019-12-19 2024-05-21 北京达佳互联信息技术有限公司 Image processing method and device, electronic equipment and storage medium
CN112132744A (en) * 2020-11-24 2020-12-25 北京蜜莱坞网络科技有限公司 Beauty parameter adjusting method and device, electronic equipment and storage medium
CN112669233A (en) * 2020-12-25 2021-04-16 北京达佳互联信息技术有限公司 Image processing method, image processing apparatus, electronic device, storage medium, and program product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004036478A1 (en) * 2002-10-17 2004-04-29 Taejin Infotech Co., Ltd. Method for providing beauty service using hair coordination simulation in franchise manner
CN107145489A (en) * 2016-03-01 2017-09-08 阿里巴巴集团控股有限公司 A kind of information statistical method and device of the client application based on cloud platform

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102693501A (en) * 2012-05-31 2012-09-26 刘志军 Method for analyzing Internet advertisement popularizing effect
US20140351092A1 (en) * 2013-05-21 2014-11-27 Heidi Burkhart Methods, Systems, and Media for Marketing Beauty Products and Services
CN104537630A (en) * 2015-01-22 2015-04-22 厦门美图之家科技有限公司 Method and device for image beautifying based on age estimation
CN104715236A (en) * 2015-03-06 2015-06-17 广东欧珀移动通信有限公司 Face beautifying photographing method and device
CN106056533B (en) * 2016-05-26 2019-08-20 维沃移动通信有限公司 A kind of method and terminal taken pictures
CN107231470B (en) * 2017-05-15 2020-06-23 努比亚技术有限公司 Image processing method, mobile terminal and computer readable storage medium
CN107274354A (en) * 2017-05-22 2017-10-20 奇酷互联网络科技(深圳)有限公司 image processing method, device and mobile terminal

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004036478A1 (en) * 2002-10-17 2004-04-29 Taejin Infotech Co., Ltd. Method for providing beauty service using hair coordination simulation in franchise manner
CN107145489A (en) * 2016-03-01 2017-09-08 阿里巴巴集团控股有限公司 A kind of information statistical method and device of the client application based on cloud platform

Also Published As

Publication number Publication date
CN107832784A (en) 2018-03-23

Similar Documents

Publication Publication Date Title
CN107832784B (en) Image beautifying method and mobile terminal
JP6272342B2 (en) Image processing method, image processing device, terminal device, program, and recording medium
CN107767333B (en) Method and equipment for beautifying and photographing and computer storage medium
CN110706179B (en) Image processing method and electronic equipment
CN108712603B (en) Image processing method and mobile terminal
CN109461117B (en) Image processing method and mobile terminal
CN109660728B (en) Photographing method and device
CN108259758B (en) Image processing method, image processing apparatus, storage medium, and electronic device
CN108062400A (en) Examination cosmetic method, smart mirror and storage medium based on smart mirror
CN107784089B (en) Multimedia data storage method, processing method and mobile terminal
CN108037863A (en) A kind of method and apparatus for showing image
CN109819167B (en) Image processing method and device and mobile terminal
CN112052897B (en) Multimedia data shooting method, device, terminal, server and storage medium
CN108460817B (en) Jigsaw puzzle method and mobile terminal
CN107644396B (en) Lip color adjusting method and device
CN109448069B (en) Template generation method and mobile terminal
CN107666536B (en) Method and device for searching terminal
CN108984143B (en) Display control method and terminal equipment
CN108881782B (en) Video call method and terminal equipment
CN108052819A (en) A kind of face identification method, mobile terminal and computer readable storage medium
CN111080747B (en) Face image processing method and electronic equipment
CN107273024B (en) A kind of method and apparatus realized using data processing
CN108958623A (en) A kind of application program launching method and terminal device
CN109451235B (en) Image processing method and mobile terminal
CN107911563B (en) Image processing method and mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant