CN107563353B - Image processing method and device and mobile terminal - Google Patents

Image processing method and device and mobile terminal Download PDF

Info

Publication number
CN107563353B
CN107563353B CN201710882929.5A CN201710882929A CN107563353B CN 107563353 B CN107563353 B CN 107563353B CN 201710882929 A CN201710882929 A CN 201710882929A CN 107563353 B CN107563353 B CN 107563353B
Authority
CN
China
Prior art keywords
freckle
image
information
target area
freckles
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
CN201710882929.5A
Other languages
Chinese (zh)
Other versions
CN107563353A (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 CN201710882929.5A priority Critical patent/CN107563353B/en
Publication of CN107563353A publication Critical patent/CN107563353A/en
Application granted granted Critical
Publication of CN107563353B publication Critical patent/CN107563353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides an image processing method, an image processing device and a mobile terminal, wherein the method comprises the following steps: carrying out face recognition and facial feature detection on the image, and determining the position of facial features; in other areas of the face except the five sense organs, freckles are added. According to the embodiment of the invention, freckles can be conveniently added to the face of the image, so that the efficiency and convenience of image processing are improved.

Description

Image processing method and device and mobile terminal
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to an image method, an image device, and a mobile terminal.
Background
With the continuous development of electronic technology and the popularization of mobile terminals, mobile terminals are becoming the main photographing devices of most users, and users often use mobile terminals to take self-photographs in addition to taking landscapes by using the mobile terminals.
In order to make the self-shot photo more beautiful, the shooting equipment of the mobile terminal has a beautifying function, and can beautify the self-shot photo, such as skin grinding, whitening, freckle and acne removal and the like; in addition, the self-timer application with the face beautifying function can beautify the self-timer photo.
In some cases, a user may wish to take a picture of a makeup with freckles, and often the user is required to manually draw freckles on the forehead or add freckles to the face by tattooing, which is cumbersome.
Disclosure of Invention
The embodiment of the invention provides an image processing method, which aims to solve the problem of complicated operation of adding freckles in a face of an image in the prior art.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an image processing method applied to a mobile terminal, including: carrying out face recognition and facial feature detection on the image, and determining the position of facial features; in other areas of the face except the five sense organs, freckles are added.
In a second aspect, an embodiment of the present invention further provides an image processing apparatus, which is applied to a mobile terminal, and specifically includes: the recognition module is used for carrying out face recognition and facial feature detection on the image and determining the position of the facial features; and the adding module is used for adding freckles in other areas except the positions of the five sense organs in the human face.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the image processing method according to the embodiment of the present invention.
In a fourth aspect, an 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 the steps of the image processing method according to the embodiment of the present invention.
According to the embodiment of the invention, freckles can be conveniently added to the face of the image, so that the efficiency and convenience of image processing are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced 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 that other drawings can be obtained according to these drawings without inventive labor.
FIG. 1 is a flow chart of the steps of an embodiment of an image processing method of the present invention;
FIG. 2 is a flow chart of steps in another image processing method embodiment of the present invention;
FIG. 3 is a flow chart of steps of yet another image processing method embodiment of the present invention;
FIG. 4 is a block diagram of an embodiment of an image processing apparatus according to the present invention;
FIG. 5 is a block diagram of another embodiment of an image processing apparatus according to the present invention;
fig. 6 is a schematic hardware structure diagram 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.
The image processing method provided by the embodiment of the invention is applied to the mobile terminal, wherein the image processing method can be applied to a photographing application built in the mobile terminal, and can also be applied to a photographing application provided by a third party, such as a photographing application with a beautifying function, so as to add freckles to the face in the image.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of an image processing method according to the present invention is shown, which may specifically include the following steps:
step 101, carrying out face recognition and facial feature detection on the image, and determining the position of facial features.
The mobile terminal has the freckle adding function, can add freckles to the face of a person in an image, and can select an image to which the freckles need to be added from the mobile terminal when the user needs to add the freckles to the face of the person in a certain image; after the mobile terminal determines that freckles need to be added to the image, the mobile terminal can perform face recognition on the image to determine the face position, wherein the face recognition is a biological recognition technology for performing identity recognition based on face feature information of people, and is also called face recognition and face recognition. Because the area where the freckle grows on the face is an area except for the five sense organs, after the face is identified, the five sense organs of the face can be detected, the positions of the five sense organs of the face can be determined, and the five sense organs of the face can be avoided when the freckle is added to the face; wherein the five sense organs include: the eyebrows, the eyes, the ears, the nose and the mouth can be provided according to actual requirements, and freckles can grow on the bridge of the nose of the face, so that the nose in the embodiment of the invention can comprise the bridge of the nose or not.
And 102, adding freckles in other areas except the positions of the five sense organs in the human face.
After the position of the facial features is determined, the mobile terminal can add freckles in other areas except the position of the facial features in the face; for example, freckles are added to the area between the lower part of the eye and the upper part of the cheekbones, and for example, freckles are added to both cheeks.
In the embodiment of the invention, the mobile terminal is used for carrying out face recognition and facial feature detection on the image, determining the position of the facial features of the figure in the image, and then adding freckles in other areas except the position of the facial features in the image; and then the freckle can be added to the face of the image without performing the operation of adding a real freckle to the face of the person, so that the efficiency and convenience of adding the freckle to the face of the image are improved.
In the embodiment of the invention, different users may want to add freckles with different effects, for example, different areas, different colors, different densities, and the like, each effect of freckles may correspond to one type of freckles special effect information, that is, one type of freckles characteristic information may present one type of freckles effect, so that the freckles effect to be added can be determined through selection of the freckles special effect information.
Referring to fig. 2, a flowchart illustrating steps of another embodiment of an image processing method according to the present invention is shown, which may specifically include the following steps:
step 201, performing face recognition and facial feature detection on the image, and determining the position of facial features.
In the embodiment of the invention, when determining the image needing to be added with the freckle, a user can select an image from the images shot in the mobile terminal, and can enter a shooting interface to obtain the image of a person in real time; the image may be a picture taken by a front camera of the mobile terminal, a picture taken by a rear camera, a picture downloaded from a network side, and the like. After determining the image to which the freckle needs to be added, the mobile terminal performs face recognition on the image to recognize the face in the image. If the face of the person in the image is shot clearly, the mobile terminal can recognize the face of the person in the image, but if the face of the person in the image possibly occupies a small area of the image or the face of the person is shot not clearly, the mobile terminal is likely to be unable to recognize the face in the image. After the face is identified, detecting the five sense organs, and determining the positions of the five sense organs of the face; if the face is not recognized, that is, the freckle cannot be added to the face in the image, the mobile terminal may display a prompt message, such as "freckle cannot be added", to remind the user to change the image.
Step 202, freckle special effect information is obtained.
And step 203, adding freckles in other areas except the positions of the five sense organs in the face according to the freckle special effect information.
In the embodiment of the invention, after the position of the facial features in the image is determined, the freckle special effect information can be obtained according to the selection operation of the user, and certainly, the freckle special effect information can also be obtained from preset default freckle special effect information, wherein the default freckle special effect information can be preset by the user or can be set by the default of a system. Then, determining the type of the freckle according to the acquired freckle special effect information and the freckle adding information, wherein the freckle type information at least comprises one of the following information: color information, shape information, size information, density information, luminance information; and determining an area needing to be added with the freckles in the face according to the freckle special effect information and the positions of the five sense organs, and further adding the freckles of corresponding types in the area, so that the freckles are added in other areas except the positions of the five sense organs in the face.
To sum up, the mobile terminal according to the embodiment of the present invention may determine the position of the facial features in the image by performing face recognition and facial feature detection on the image, and obtain the freckle special effect information, and further may add the freckle in the other area except the position of the facial features in the image according to the obtained freckle special effect information, thereby improving the efficiency of adding the freckle in the facial feature of the image.
In another embodiment of the invention, on the one hand, the area where freckles need to be added may be different for different users, and if some users want to add freckles in the area between the lower part of the eyes and the upper part of the cheekbones, some users may want to add freckles in both cheeks; on the other hand, the types of freckles that different users need to add may differ, such as some users who prefer light brown freckles, some users who prefer dark brown freckles, and so on; the mobile terminal may thus provide a plurality of selectable freckle types, and a plurality of selectable additive areas, and determine freckle special effect information by selecting the freckle type and/or the additive area, i.e. the freckle special effect information may include freckle type information and freckle additive area information. The step of adding freckles to the other areas of the face except for the positions of the five sense organs can be specifically as follows:
referring to fig. 3, a flowchart illustrating steps of another embodiment of the image processing method of the present invention is shown, which may specifically include the following steps:
step 301, performing face recognition and facial feature detection on the image, and determining the position of facial features.
Step 301 is similar to step 201 and will not be described herein again.
In the embodiment of the invention, a user can select one freckle type from a plurality of selectable freckle types provided by a mobile terminal and select one adding area from the plurality of selectable adding areas; the mobile terminal determines freckle special effect information according to user selection operation and adds freckles to the face; when the user does not select the freckle type and/or the adding area, the mobile terminal can add the freckles to the face in the image according to default information; the method comprises the following specific steps:
step 302, determining whether a selection operation is received within a preset time.
After determining the image needing to be added with the freckle, the mobile terminal can display a plurality of selectable freckle types and a plurality of selectable adding areas in an interface for a user to select; then judging whether a selection operation is received within a preset time, wherein the selection operation refers to an operation of selecting a freckle type and/or selecting an adding area by a user, and if the selection operation is received within the preset time, executing a step 303; if the selection operation is not received within the predetermined time, step 304 is executed. Wherein the preset time can be set as 10 seconds as required.
Step 303, determining freckle special effect information according to the corresponding selection information.
In the embodiment of the invention, the user can respectively select the freckle type to be added and the area to be added from the displayed freckle type and the added area, if the selection operation is received within the preset time, the freckle type and the added area selected by the user are determined, and the freckle special effect information is determined according to the selected freckle type and the added area. Wherein the freckle type comprises at least one of: color, shape, size, density, brightness, each freckle type may include multiple options, at most one for each freckle type; for example, color this freckle type may include the options: red, orange, yellow, brown, black, one color can be selected by the user; correspondingly, the freckle type information at least comprises one of the following: color information, shape information, size information, density information, brightness information.
And step 304, determining the default information as freckle special effect information.
And if the selection operation is not received within the preset time, determining default information, wherein the default information comprises various default freckle types and default adding areas, and then determining the freckle special effect information by using the default freckle types and the default adding areas. The default information may be system setting, or may be determined by the mobile terminal according to a setting operation preset by the user.
In another embodiment of the invention, if a user does not select one of the freckle types, the type is determined to be a default type; of course, if the user does not select the adding area, the freckle adding area information is determined according to the default adding area.
After the position of the five sense organs and the freckle special effect information are determined, according to the position of the five sense organs and the freckle special effect information, freckles can be added to other areas except the position of the five sense organs in the face, and the method comprises the following specific steps:
and 305, determining a target area needing to be added with freckles in the face according to the positions of the five sense organs and the information of the freckles adding area.
And step 306, determining a freckle image according to the freckle type information and the target area.
In the embodiment of the present invention, in order to not add freckles to facial features, after the positions of facial features are determined, a target area to which freckles need to be added in the facial feature is determined according to the positions of the facial features and the information of the freckles addition area, where the target area is an area excluding the positions of the facial features in the facial feature. Further, different people have different face shapes, namely different outlines of the faces, so that the freckle adding area is more consistent with the outline of the face, before the target area is determined, the freckle adding area information can be preliminarily adjusted by adopting the outline characteristic information of the face, and then the adjusted freckle adding area information is used for determining the target area. After the target area is determined, a freckle image needing to be added to the target area can be generated according to the freckle type information and the target area, so that freckles can be accurately added to the target area; wherein the freckle image has the same size and shape as the target area.
Adding a freckle in the human face by adding the freckle image to the target area, step 307.
After the freckle image is determined, the freckle image can be added to the target area to add freckles to the face in the image. In the embodiment of the invention, the manner of adding the freckle image to the target area in the image includes multiple manners, wherein one manner is to cover the freckle image on the target area, namely, the freckle image layer is used as a top layer to cover the target area; thereby, freckle images are presented in the target areas. In another mode, the freckle image and the target area are synthesized to determine a synthesized image, then the target area is updated to the synthesized image, and the target area in the image presents the synthesized image. Specifically, a weight corresponding to the target area and a weight corresponding to the freckle image may be set in advance, and then the target area and the freckle image are subjected to weighted calculation according to the weights of the target area and the freckle image to determine a composite image; wherein, the weights corresponding to the target area and the freckle image can be set according to requirements. Because the characteristics of the human face, such as the skin color of the human face, and the like are fused in the synthetic image, the freckle added in the target area can be more natural and softer, and the attractiveness is better.
In another embodiment of the invention, after the freckle is added to the face, the mobile terminal may further adjust the color of the freckle according to the color information of the area around the target area, and adjust the brightness of the freckle according to the brightness information of the area around the target area; to improve the beauty of the freckle. In addition, the user may be dissatisfied with the added freckle after adding the freckle to the face of the person in the image, so when the user is dissatisfied with the added freckle, the mobile terminal may adjust the freckle added to the target area according to the adjustment operation of the user; wherein the adjusting operation may comprise at least one of: removing single freckle, adding single freckle, adjusting color of freckle, adjusting size of freckle, adjusting brightness of freckle, and adjusting shape of freckle. Certainly, the user can also perform overall replacement on the added freckles, that is, the mobile terminal can delete the added freckles according to the deletion operation of the user and add new freckles according to the addition operation of the user, thereby meeting the personalized requirements of the user.
In another embodiment of the present invention, the freckle adding function can be used simultaneously with other beautifying functions, for example, the face of a person in an image can be subjected to acne removing, whitening and skin polishing, and then the freckle is added.
In another embodiment of the invention, if the mobile terminal detects that the face has freckles in the image, the original freckles in the face can be removed first, and then the freckles are added; naturally, the original freckles in the face may be directly added without treatment.
According to the embodiment of the invention, the facial recognition and the facial features detection are carried out on the image, the facial features position is determined, then the freckle special effect information is obtained, and then the freckles are added to other areas except the facial features position in the face according to the facial features position and the freckle special effect information, so that the freckle adding efficiency in the facial features of the image is improved, and the operation is simple and convenient; in addition, the freckle special effect information can be information selected by a user, i.e. freckles can be added according to personalized selection of the user, so that the user experience is improved.
Further, by adding the freckle image to a target area in the image, when a freckle is added to a face of the image, the freckle image and the target area in the image are synthesized to determine a synthesized image, and the target area in the image is updated to the synthesized image; due to the fact that the characteristics of the human face are fused in the synthesized image, freckles added in the target area are more natural, and user experience is improved.
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. 4, a block diagram of an embodiment of an image processing apparatus according to the present invention is shown, and may specifically include the following modules: an identification module 41 and an addition module 42, wherein,
the recognition module 41 is configured to perform face recognition and facial feature detection on the image, and determine the position of facial features;
and the adding module 42 is used for adding freckles in other areas except the positions of the five sense organs in the human face.
Referring to fig. 5, there is shown a block diagram of the structure of another embodiment of the image processing apparatus of the present invention; the method comprises the following specific steps:
in another embodiment of the present invention, the adding module 42 includes: an acquisition submodule 421 and a freckle adding submodule 422, wherein
An obtaining submodule 421 configured to obtain freckle special effect information;
and the freckle adding sub-module 422 is used for adding freckles in other areas except the positions of the five sense organs in the human face according to the freckle special effect information.
In another embodiment of the present invention, the freckle special effect information includes freckle type information and freckle adding area information, and the freckle adding sub-module 422 includes: a region determining unit 4221, an image determining unit 4222, and an image adding unit 4223, wherein,
an area determination unit 4221, configured to determine a target area to which a freckle needs to be added in the face according to the position of the five sense organs and the freckle adding area information, where the target area is an area other than the position of the five sense organs;
an image determining unit 4222, configured to determine a freckle image according to the freckle type information and the target area;
an image adding unit 4223 for adding freckles in the face by adding the freckle image to the target area.
In another embodiment of the present invention, the image adding unit 4223 is specifically configured to overlay the freckle image on a target area in the image; the freckle image is specifically used for being synthesized with the target area in the image to determine a synthesized image; and updating the target area in the image into the composite image.
In another embodiment of the present invention, the freckle type information includes at least one of: color information, shape information, size information, density information, brightness information.
In the embodiment of the invention, the mobile terminal is used for carrying out face recognition and facial feature detection on the image, determining the position of the facial features of the figure in the image, and then adding freckles in other areas except the position of the facial features in the image; and then the freckle can be added to the face of the image without performing the operation of adding a real freckle to the face of the person, so that the efficiency and convenience of adding the freckle to the face of the image are improved.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
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. 3, and is not described herein again to avoid repetition.
In the embodiment of the invention, the mobile terminal is used for carrying out face recognition and facial feature detection on the image, determining the position of the facial features of the figure in the image, and then adding freckles in other areas except the position of the facial features in the image; and then the freckle can be added to the face of the image without performing the operation of adding a real freckle to the face of the person, so that the efficiency and convenience of adding the freckle to the face of the image are improved.
Figure 6 is a schematic diagram of a hardware configuration of a mobile terminal implementing various embodiments of the present invention,
the mobile terminal 600 includes, but is not limited to: a radio frequency unit 601, a network module 602, an audio output unit 603, an input unit 604, a sensor 605, a display unit 606, a user input unit 607, an interface unit 608, a memory 609, a processor 610, and a power supply 611. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 6 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 processor 610 is configured to perform face recognition and facial feature detection on the image, and determine the position of facial features; in other areas of the face except the five sense organs, freckles are added.
In the embodiment of the invention, the mobile terminal is used for carrying out face recognition and facial feature detection on the image, determining the position of the facial features of the figure in the image, and then adding freckles in other areas except the position of the facial features in the image; and then the freckle can be added to the face of the image without performing the operation of adding a real freckle to the face of the person, so that the efficiency and convenience of adding the freckle to the face of the image are improved.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 601 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 610; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 601 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 frequency unit 601 may 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 602, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 603 may convert audio data received by the radio frequency unit 601 or the network module 602 or stored in the memory 609 into an audio signal and output as sound. Also, the audio output unit 603 may also provide audio output related to a specific function performed by the mobile terminal 600 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 603 includes a speaker, a buzzer, a receiver, and the like.
The input unit 604 is used to receive audio or video signals. The input Unit 604 may include a Graphics Processing Unit (GPU) 1041 and a microphone 6042, and the Graphics processor 6041 processes image data of a still picture or video obtained by an image capturing apparatus (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 606. The image frames processed by the graphic processor 6041 may be stored in the memory 609 (or other storage medium) or transmitted via the radio frequency unit 601 or the network module 602. The microphone 6042 can receive sound, and can process 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 601 in case of the phone call mode.
The mobile terminal 600 also includes at least one sensor 605, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 6061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 6061 and/or the backlight when the mobile terminal 600 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 605 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 606 is used to display information input by the user or information provided to the user. The Display unit 606 may include a Display panel 6061, and the Display panel 6061 may be configured by a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 607 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 607 includes a touch panel 6071 and other input devices 6072. Touch panel 6071, 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 or near touch panel 6071 using a finger, stylus, or any suitable object or accessory). The touch panel 6071 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 610, receives a command from the processor 610, and executes the command. In addition, the touch panel 6071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The user input unit 607 may include other input devices 6072 in addition to the touch panel 6071. Specifically, the other input devices 6072 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 6071 can be overlaid on the display panel 6061, and when the touch panel 6071 detects a touch operation on or near the touch panel 6071, the touch operation is transmitted to the processor 610 to determine the type of the touch event, and then the processor 610 provides a corresponding visual output on the display panel 6061 according to the type of the touch event. Although the touch panel 6071 and the display panel 6061 are shown in fig. 6 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 6071 and the display panel 6061 may be integrated to implement the input and output functions of the mobile terminal, and is not limited herein.
The interface unit 608 is an interface through which an external device is connected to the mobile terminal 600. 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 608 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 600 or may be used to transmit data between the mobile terminal 600 and external devices.
The memory 609 may be used to store software programs as well as various data. The memory 609 may mainly include a program storage area and a data storage area, wherein the program storage 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 609 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 610 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 609 and calling data stored in the memory 609, thereby integrally monitoring the mobile terminal. Processor 610 may include one or more processing units; preferably, the processor 610 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 610.
The mobile terminal 600 may further include a power supply 611 (e.g., a battery) for supplying power to the various components, and preferably, the power supply 611 is logically connected to the processor 610 via a power management system, so that functions of managing charging, discharging, and power consumption are performed via the power management system.
In addition, the mobile terminal 600 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, which includes a processor 610, a memory 609, and a computer program stored in the memory 609 and capable of running on the processor 610, where the computer program is executed by the processor 610 to implement each process of the above-mentioned image processing method embodiment, and can achieve the same technical effect, 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 embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated 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 (10)

1. An image processing method applied to a mobile terminal is characterized by comprising the following steps:
carrying out face recognition and facial feature detection on the image, and determining the position of facial features;
adding freckles in other areas except the positions of the five sense organs in the human face;
wherein, the step of adding freckles in other areas except the positions of the five sense organs in the human face comprises the following steps:
acquiring freckle special effect information, wherein the freckle special effect information comprises freckle type information and freckle adding area information;
adding freckles in other areas except the positions of the five sense organs in the human face according to the freckle special effect information;
wherein the step of adding freckles to the other areas except the five sense organs in the face according to the freckle special effect information comprises the following steps:
adjusting the freckle adding area information by adopting the contour characteristic information of the human face;
determining a target area needing to be added with freckles in the face according to the positions of the five sense organs and the adjusted freckle adding area information, wherein the target area is an area except the positions of the five sense organs;
determining a freckle image according to the freckle type information and the target area;
adding a freckle in the human face by adding the freckle image to the target area.
2. The method of claim 1, wherein the step of adding the freckle image to the target area comprises:
overlaying the freckle image on the target area.
3. The method of claim 1, wherein the step of adding the freckle image to the target area comprises:
synthesizing the freckle image with the target area to determine a synthesized image;
updating the target area to the composite image.
4. The method according to any one of claims 1 to 3, wherein the freckle type information includes at least one of: color information, shape information, size information, density information, brightness information.
5. An image processing apparatus applied to a mobile terminal, comprising:
the recognition module is used for carrying out face recognition and facial feature detection on the image and determining the position of the facial features;
the adding module is used for adding freckles in other areas except the positions of the five sense organs in the human face;
wherein the adding module comprises:
the acquisition submodule is used for acquiring freckle special effect information, and the freckle special effect information comprises freckle type information and freckle adding area information;
the freckle adding submodule is used for adding freckles in other areas except the positions of the five sense organs in the face according to the freckle special effect information;
wherein the freckle adding submodule comprises:
the region determining unit is used for adjusting the freckle adding region information by adopting the contour feature information of the human face; determining a target area needing to be added with freckles in the face according to the positions of the five sense organs and the adjusted freckle adding area information, wherein the target area is an area except the positions of the five sense organs;
an image determining unit, configured to determine a freckle image according to the freckle type information and the target area;
an image adding unit for adding a freckle in the face by adding the freckle image to the target area.
6. The apparatus of claim 5,
the image adding unit is specifically used for overlaying the freckle image on a target area in the image.
7. The apparatus of claim 5,
the image adding unit is specifically used for synthesizing the freckle image and the target area in the image to determine a synthesized image; and updating the target area in the image into the composite image.
8. The apparatus according to any one of claims 5-7, wherein the freckle type information comprises at least one of: color information, shape information, size information, density information, brightness information.
9. A mobile terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements the steps of the image processing method according to any one of claims 1 to 4.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the image processing method according to any one of claims 1 to 4.
CN201710882929.5A 2017-09-26 2017-09-26 Image processing method and device and mobile terminal Active CN107563353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710882929.5A CN107563353B (en) 2017-09-26 2017-09-26 Image processing method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710882929.5A CN107563353B (en) 2017-09-26 2017-09-26 Image processing method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN107563353A CN107563353A (en) 2018-01-09
CN107563353B true CN107563353B (en) 2020-06-23

Family

ID=60981768

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710882929.5A Active CN107563353B (en) 2017-09-26 2017-09-26 Image processing method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107563353B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108924440B (en) * 2018-08-01 2021-03-26 Oppo广东移动通信有限公司 Sticker display method, device, terminal and computer-readable storage medium
CN109712090A (en) * 2018-12-18 2019-05-03 维沃移动通信有限公司 A kind of image processing method, device and mobile terminal
CN111243049B (en) * 2020-01-06 2021-04-02 北京字节跳动网络技术有限公司 Face image processing method and device, readable medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104599297A (en) * 2013-10-31 2015-05-06 厦门美图网科技有限公司 Image processing method for automatically blushing human face
CN105096241A (en) * 2015-07-28 2015-11-25 努比亚技术有限公司 Face image beautifying device and method
CN106880156A (en) * 2017-01-20 2017-06-23 深圳天珑无线科技有限公司 Method and its system are recommended in a kind of makeups on dressing glass
CN107153805A (en) * 2016-03-02 2017-09-12 北京美到家科技有限公司 Customize makeups servicing unit and method

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9779527B2 (en) * 2013-08-15 2017-10-03 Xiaomi Inc. Method, terminal device and storage medium for processing image

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104599297A (en) * 2013-10-31 2015-05-06 厦门美图网科技有限公司 Image processing method for automatically blushing human face
CN105096241A (en) * 2015-07-28 2015-11-25 努比亚技术有限公司 Face image beautifying device and method
CN107153805A (en) * 2016-03-02 2017-09-12 北京美到家科技有限公司 Customize makeups servicing unit and method
CN106880156A (en) * 2017-01-20 2017-06-23 深圳天珑无线科技有限公司 Method and its system are recommended in a kind of makeups on dressing glass

Also Published As

Publication number Publication date
CN107563353A (en) 2018-01-09

Similar Documents

Publication Publication Date Title
CN107817939B (en) Image processing method and mobile terminal
CN110969981B (en) Screen display parameter adjusting method and electronic equipment
CN108712603B (en) Image processing method and mobile terminal
CN110365907B (en) Photographing method and device and electronic equipment
CN108076290B (en) Image processing method and mobile terminal
CN108062400A (en) Examination cosmetic method, smart mirror and storage medium based on smart mirror
CN110263617B (en) Three-dimensional face model obtaining method and device
CN111047511A (en) Image processing method and electronic equipment
CN109819167B (en) Image processing method and device and mobile terminal
CN108924412B (en) Shooting method and terminal equipment
CN109102555B (en) Image editing method and terminal
CN109671034B (en) Image processing method and terminal equipment
CN107644396B (en) Lip color adjusting method and device
CN110956580B (en) Method, device, computer equipment and storage medium for changing face of image
CN108881782B (en) Video call method and terminal equipment
CN109461124A (en) A kind of image processing method and terminal device
CN108550117A (en) A kind of image processing method, device and terminal device
CN109448069B (en) Template generation method and mobile terminal
CN107563353B (en) Image processing method and device and mobile terminal
CN109167914A (en) A kind of image processing method and mobile terminal
CN111080747B (en) Face image processing method and electronic equipment
CN109639981B (en) Image shooting method and mobile terminal
CN109451235B (en) Image processing method and mobile terminal
CN109903218B (en) Image processing method and terminal
CN111402157A (en) Image processing method and electronic equipment

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