CN106412458A - Image processing method and apparatus - Google Patents
Image processing method and apparatus Download PDFInfo
- Publication number
- CN106412458A CN106412458A CN201510466359.2A CN201510466359A CN106412458A CN 106412458 A CN106412458 A CN 106412458A CN 201510466359 A CN201510466359 A CN 201510466359A CN 106412458 A CN106412458 A CN 106412458A
- Authority
- CN
- China
- Prior art keywords
- image
- face
- processing
- beautifying
- faces
- 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.)
- Withdrawn
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 38
- 230000003796 beauty Effects 0.000 claims description 63
- 238000000034 method Methods 0.000 claims description 21
- 230000001815 facial effect Effects 0.000 claims description 12
- 210000000887 face Anatomy 0.000 description 51
- 230000000694 effects Effects 0.000 description 17
- 238000005516 engineering process Methods 0.000 description 10
- 238000010586 diagram Methods 0.000 description 9
- 238000001514 detection method Methods 0.000 description 1
- 238000004377 microelectronic Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 231100000289 photo-effect Toxicity 0.000 description 1
- 238000005498 polishing Methods 0.000 description 1
- 230000011514 reflex Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06V—IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06V40/00—Recognition of biometric, human-related or animal-related patterns in image or video data
- G06V40/10—Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
- G06V40/16—Human faces, e.g. facial parts, sketches or expressions
- G06V40/172—Classification, e.g. identification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20172—Image enhancement details
- G06T2207/20201—Motion blur correction
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- General Health & Medical Sciences (AREA)
- Oral & Maxillofacial Surgery (AREA)
- Human Computer Interaction (AREA)
- Multimedia (AREA)
- Image Processing (AREA)
Abstract
The invention discloses an image processing method and apparatus. The image processing method includes performing face recognition on an image in a display interface of a terminal device to generate numbers corresponding to respective faces in the image, and beautifying, based on the number selected by a user, the face corresponding to the selected number in the image, wherein the beautified face is a part or all of the face in the image. The image processing method and apparatus solve a problem that an APP beautifying treatment mode is simple in function and poor in flexibility.
Description
Technical Field
The present invention relates to the field of image processing technologies, and in particular, to an image processing method and apparatus.
Background
With the development of computer technology, the application range of the intelligent terminal is widely improved, for example, the intelligent terminal can listen to music, play games, chat on internet, take pictures and the like. For the photographing technology of the intelligent terminal, the photographing pixels of the intelligent terminal reach more than ten million pixels, and the intelligent terminal has higher definition and the photographing effect comparable to that of a professional camera.
At present, when an intelligent terminal is used for photographing, not only can photographing effects of traditional functions be realized by using photographing software built in when the intelligent terminal leaves a factory, but also photographing effects with additional functions can be realized by downloading an Application program (APP for short) from a network end, for example, the APP with functions of dark light detection, a beauty camera, super pixels and the like can be realized. Specifically, the beauty function of the intelligent terminal generally includes real-time beauty and later-stage beauty, the real-time beauty is to perform beauty treatment on the face in the photographing view-finding interface in the photographing preview process, the later-stage beauty is to perform beauty treatment on the face in the generated photo after the photographing is finished, the beauty treatment items generally include beauty treatment effects of skin color adjustment, skin grinding, large eyes, face slimming and the like, the two beauty functions can only perform beauty treatment of the same degree on all faces recognized in the image, namely, if one face in the photographing view-finding interface or the photo needs to be subjected to beauty treatment, and in actual operation, the beauty treatment of the same degree is performed on all faces in the photographing view-finding interface or the photo.
However, in the prior art, in the way of performing beauty processing through APP, since the beauty processing can be performed only to the same extent on all faces recognized in an image, the beauty processing function is single, and the flexibility is poor.
Disclosure of Invention
In order to solve the technical problem, the invention provides an image processing method and an image processing device, which are used for solving the problems that in a mode of performing beauty processing through an APP, the beauty processing function is single and the flexibility is poor.
In a first aspect, the present invention provides an image processing method, including:
carrying out face recognition on an image in a display interface of terminal equipment to generate a number corresponding to each face in the image;
and performing face beautifying processing on the face corresponding to the selected number in the image according to the number selected by the user, wherein the face subjected to face beautifying processing is part or all of the faces in the image.
In a first possible implementation manner of the first aspect, a processing mode option is set on a display interface of the terminal device, and performing a face beautifying process on a face in the image corresponding to a selected number according to the number selected by the user includes:
determining the number of the faces subjected to the beautifying processing according to the processing mode selected by the user;
and selecting a corresponding number according to the determined number of the faces, and performing face beautifying processing on the faces corresponding to the selected number in the image.
In a second possible implementation manner of the first aspect, the performing a face beautifying process on a face in the image corresponding to the selected number includes:
performing the same degree of beautifying processing on the face corresponding to the selected number in the image; or,
and performing different degrees of facial beautification processing on the faces corresponding to the selected numbers in the images respectively.
According to the first aspect, or any one of the first and second possible implementation manners of the first aspect, in a third possible implementation manner, the processing method further includes, after performing face beautification processing on a face corresponding to the selected number in the image, that an image in the display interface is a live view image in a shooting view interface of the terminal device:
displaying the preview image after the beautifying processing in a display interface of the terminal equipment;
and executing shooting operation, and storing the shot picture, wherein the stored picture comprises the preview image after the beauty treatment, or comprises the preview image after the beauty treatment and the live view image in the shooting and viewing interface.
According to the first aspect, or any one of the first and second possible implementation manners of the first aspect, in a fourth possible implementation manner, the displaying an image in the display interface is a photo selected from a photo library of the terminal device, and after performing a face beautifying process on a face corresponding to the selected number in the image, the displaying further includes:
and saving the photo after the face treatment, or saving the photo after the face treatment and the selected photo.
In a second aspect, the present invention provides an image processing apparatus comprising:
the face recognition module is used for carrying out face recognition on the image in the display interface of the terminal equipment and generating a number corresponding to each face in the image;
and the face beautifying processing module is used for carrying out face beautifying processing on the face corresponding to the selected number in the image according to the number selected by the user, wherein the face beautifying processing face is part or all of the faces in the image.
In a first possible implementation manner of the second aspect, a processing mode option is set on a display interface of the terminal device, and the beauty processing module includes: the mode selection unit is used for determining the number of the faces subjected to the beautifying processing according to the processing mode selected by the user; and the face beautifying processing unit is used for selecting the corresponding number according to the number of the faces determined by the mode selection unit and carrying out face beautifying processing on the faces corresponding to the selected number in the image.
In a second possible implementation manner of the second aspect, the beautifying processing module is configured to perform beautifying processing on a face corresponding to the selected number in the image, and the beautifying processing means: performing the same degree of beautifying processing on the face corresponding to the selected number in the image; or performing different degrees of facial beautification processing on the faces corresponding to the selected numbers in the images respectively.
According to the second aspect, and any one of the first and second possible implementation manners of the second aspect, in a third possible implementation manner, the image in the display interface is a live view image in a shooting view interface of the terminal device, and the image processing apparatus further includes: the display module is used for displaying the preview image after the face treatment in a display interface of the terminal equipment after the face treatment module performs the face treatment on the face corresponding to the selected number in the image;
and the shooting module is used for executing shooting operation and storing the shot photos, wherein the stored photos comprise the preview images after the beautifying processing or comprise the preview images after the beautifying processing and the real-time view-finding images in the shooting view-finding interface.
According to the second aspect, or any one of the first and second possible implementation manners of the second aspect, in a fourth possible implementation manner, the image in the display interface is a photo selected from a photo library of the terminal device, and the image processing apparatus further includes: and the storage module is used for storing the photo after the face treatment, or storing the photo after the face treatment and the selected photo after the face treatment is performed on the face corresponding to the selected number in the image by the face treatment module.
According to the image processing method and the image processing device, the number corresponding to each face in the image is generated by carrying out face recognition on the image in the display interface of the terminal equipment, and the face corresponding to the selected number in the image is subjected to face beautifying processing according to the number selected by the user; the method provided by the invention solves the problems of single beautifying processing function and poor flexibility in a beautifying processing mode through APP, thereby improving the intelligence of the beautifying processing function.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the example serve to explain the principles of the invention and not to limit the invention.
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a display interface of the image processing method provided in the embodiment shown in FIG. 1;
FIG. 3 is a flow chart of another image processing method according to an embodiment of the present invention;
FIG. 4 is a flowchart of another image processing method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a display interface of the image processing method provided in the embodiment shown in FIG. 4;
FIG. 6 is a flowchart of another image processing method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of another image processing apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments and features of the embodiments in the present application may be arbitrarily combined with each other without conflict.
The steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
With the development of microelectronic technology and optical technology, terminal equipment manufacturers have integrated camera functions into terminal equipment, taking a mobile phone as an example, the mobile phone can only take pictures with 130 ten thousand (w) pixels ten years ago, and the current value of the pixels taken by the mobile phone has been increased to over ten million pixels. The mobile phone camera has higher and higher pixels, and can often take pictures which are not inferior to the effect of a professional digital camera, and due to the portability, the mobile phone photographing has gradually replaced the digital camera to become a common mode for users to take pictures, and the difference between the mobile phone photographing effect and the single lens reflex photographing effect is continuously reduced. In addition, the mobile phone can realize the photographing effect of some additional functions by downloading the APP at the network end, and has more variable photographing effect.
The technical solution of the present invention is described in detail below with specific embodiments, where a terminal device in the following embodiments of the present invention is an intelligent terminal with a camera, such as a smart phone, a tablet computer, or a Personal Digital Assistant (PDA), and the terminal device in the following embodiments of the present invention generally further has a display screen capable of displaying real-time captured images or displaying photos. The following specific embodiments of the present invention may be combined, and the same or similar concepts or processes may not be described in detail in some embodiments.
Fig. 1 is a flowchart of an image processing method according to an embodiment of the present invention. The image processing method provided by the embodiment is suitable for the case of performing beauty processing on the image of the display interface of the terminal device, and the method can be executed by an image processing device, the image processing device is realized by combining hardware and software, and the device can be integrated in a processor of the terminal device and used by the processor. As shown in fig. 1, the method provided by this embodiment may include:
and S110, carrying out face recognition on the image in the display interface of the terminal equipment, and generating a number corresponding to each face in the image.
As shown in fig. 2, a schematic diagram of a display interface of the image processing method provided in the embodiment shown in fig. 1 is shown. In this embodiment, a terminal device is taken as an example to describe the smart phone, and a beauty object of the method provided in each embodiment of the present invention is usually a face in an image, so in a specific implementation, the face recognition technology can be used to perform face recognition on a displayed image. The images in the display interface may include one face or multiple faces, and after the smart phone is configured with a face recognition technology, the number of faces and the specific position of each face in the display interface can be quickly located and recognized, so as to number the recognized faces, as shown in fig. 2, each face in the display interface has one number for distinguishing different faces.
It should be noted that, the embodiment of the present invention does not limit a specific manner in which the terminal device numbers the faces, and the faces in the display interface may be numbered according to a preset sequence, where fig. 2 illustrates a sequence from left to right, the numbers may be displayed around the corresponding faces or inside the corresponding faces, and fig. 2 illustrates the numbers directly above the faces.
And S120, performing face beautifying processing on the face corresponding to the selected number in the image according to the number selected by the user, wherein the face subjected to face beautifying processing is part or all of the faces in the image.
In this embodiment, all faces and the number corresponding to each face are already displayed in the image of the display interface through the face recognition technology, and the number is usually a selectable mode.
For example, the number may be a box, i.e., "□", and when a certain number is selected, the box assumes a selected state, e.g., shown as "■", as shown in fig. 2, the faces corresponding to numbers 1 and 3 are selected faces, and the face corresponding to number 2 is not selected; for another example, when a certain number is selected, the corresponding face is an actual effect, and other faces not selected are display effects with transparency.
It should be noted that, in this embodiment, since any face corresponding to an existing number can be selected, the object of the beauty processing is the face selected by the user, that is, the face corresponding to the selected number, compared with the beauty processing method in the prior art, this embodiment is not limited to performing the beauty processing only on all faces in the image, and can be selected by the user who shoots at will, so that the beauty processing function is more complete, and the flexibility and intelligence of the beauty processing function are improved.
In the image processing method provided by this embodiment, a number corresponding to each face in an image is generated by performing face recognition on the image in a display interface of a terminal device, and a face corresponding to a selected number in the image is subjected to face beautifying processing according to the number selected by a user, and in this embodiment, by numbering the faces and performing the face beautifying processing by selecting the number by the user, face beautifying processing on part or all of the faces in the display interface can be realized; the method provided by the embodiment solves the problems of single beautifying processing function and poor flexibility in a beautifying processing mode through APP, so that the intelligence of the beautifying processing function is improved.
Further, the user may be instructed to select different processing modes by setting a processing mode in the beauty function of the terminal device, the processing mode in this embodiment may be an option related to the number of faces performing beauty processing, and specifically, the processing mode option may be displayed on a display interface of the terminal device, as shown in fig. 3, which is a flowchart of another image processing method provided in this embodiment of the present invention, on the basis of the embodiment shown in fig. 1, S120 in this embodiment may include:
and S121, determining the number of the faces subjected to the beautifying processing according to the processing mode selected by the user.
And S122, selecting the corresponding number according to the determined number of the faces, and performing face beautifying processing on the faces corresponding to the selected number in the image.
In this embodiment, the processing modes include, for example: the method comprises the following steps of performing face beautifying processing on one face in an image in a mode I, performing face beautifying processing on a plurality of faces in the image in a mode II, and performing face beautifying processing on all the faces in the image in a mode III. Accordingly, when different processing modes are selected, the number corresponding to the face may be selected differently, for example, when the mode one is selected, only the number corresponding to one face may be selected, the number selected last may be overlaid with the number selected last, when the mode two is selected, the number may be selected in any number, or only one number or all numbers may be selected, and when the mode three is selected, all generated numbers may be selected. The present embodiment provides an alternative to performing beauty processing by predetermining the number of faces that need to be subjected to beauty processing through selection of a processing mode.
In a specific implementation, in the image processing method provided by each of the above embodiments of the present invention, the facial beautification processing performed on the face recognized in the image may include different forms, and specifically, S120 in the embodiment shown in fig. 1 may include: performing the same degree of facial beautification processing on the face corresponding to the selected number in the image; or, the face corresponding to the selected number in the image is subjected to different degrees of face beautifying processing.
When the face beautifying processing is performed, the face beautifying processing of the same degree can be performed on the faces corresponding to the selected numbers, and the face beautifying processing can be performed on each face respectively to adjust the face beautifying processing degrees of different faces. As shown in fig. 2, the content of the beauty treatment may include one or more items of skin color, skin polishing, large eyes and face thinning, for example, number 1 may be selected first, a face corresponding to number 1 may be subjected to beauty treatment by dragging an adjustment progress bar in a display interface, and then other numbers may be selected, and the beauty treatment may be performed in sequence, which is generally used to perform different degrees of beauty treatment on a plurality of faces; by the method provided by the embodiment, different faces can be subjected to different degrees of facial beautification processing according to the characteristics of each face in the image, and the intelligence of the image processing method is further improved.
Optionally, the beauty processing method provided by each embodiment of the present invention may be used to perform real-time beauty processing during shooting, fig. 4 is a flowchart of another image processing method provided by an embodiment of the present invention, an image in a display interface in this embodiment is a real-time viewfinder image in a shooting viewfinder interface of a terminal device, which is shown by way of example on the basis of the embodiment shown in fig. 1, and this embodiment further includes, after S120:
and S130, displaying the preview image after the beautifying processing in a display interface of the terminal equipment.
And S140, executing shooting operation and storing the shot picture, wherein the stored picture comprises the preview image after the beauty treatment or comprises the preview image after the beauty treatment and the live view image in the shooting and viewing interface.
Fig. 5 is a schematic diagram of a display interface of the image processing method according to the embodiment shown in fig. 4. The embodiment is used for performing the beauty treatment on the identified face in the shooting process, so that shooting needs to be performed after the beauty treatment, and the shooting key may be set on a display interface of the terminal device, as shown in fig. 5, or may be set as an entity key of the terminal device.
It should be noted that, this embodiment is used to perform the beauty treatment on the image in the viewfinder interface during the real-time shooting, and in another optional implementation manner, the user may preset various parameters for performing the beauty treatment in the terminal device, for example, before the shooting, the beauty treatment on the face of a specific position in the viewfinder interface and the degree of the beauty treatment are set, so that the desired photo effect can be obtained according to the preset content during the shooting of the photo.
In another possible implementation manner of the present invention, post-beauty processing may also be performed on a shot photo, fig. 6 is a flowchart of another image processing method provided in an embodiment of the present invention, where an image in a display interface in the embodiment is a photo selected from a photo library of a terminal device, and is also shown by way of example on the basis of the embodiment shown in fig. 1, and this embodiment further includes, after S120: and S130, storing the photo after the face beautifying treatment, or storing the photo after the face beautifying treatment and the selected photo. The display interface of the present embodiment may refer to the display interface shown in fig. 2.
The image processing method provided by the embodiments of the present invention can selectively perform the face beautifying processing on part or all of the faces in the display interface of the terminal device, and can perform the face beautifying processing of different degrees on different faces, instead of a single way of performing the face beautifying processing on all the faces in the image in the same degree, and the processing way can make a certain person or a plurality of persons in the image more beautiful than other persons, thereby increasing the intelligence, flexibility and operability of the face beautifying camera APP.
It should be noted that in the above embodiments of the present invention, in a specific implementation, the algorithm efficiency and the processor processing speed of the face recognition technology configured in the terminal device determine the speed and accuracy of face recognition, because the processor of the terminal device usually needs to process requests and services of a large number of APPs, the work task is very heavy, if a large amount of Digital image data is processed, the processing capability becomes very complicated, which not only affects the response speed of the APPs, but also has low face recognition efficiency, and an additional processing unit may be usually added in the terminal device to assist in processing the Digital image data, for example, a processing unit specially used for processing the Digital image data, such as a Digital Signal Processing (DSP) unit, is added in the terminal device, so that the work load of the main processor of the terminal device can be reduced, meanwhile, the efficiency of face recognition is improved.
It should be further noted that the face area identified by the face identification technology cannot be too large or too small, and if the face identification area is much larger than the actual face area, the face will be beautified, and the amount of data processed increases, which affects the efficiency of the beautifying algorithm; on the contrary, if the face recognition area is smaller than the actual face area, the effect of the face beautifying algorithm is poor when face thinning and skin beautifying are carried out; the best effect of the face recognition region can be obtained by adjusting the coordinate parameters or according to the face area.
Fig. 7 is a schematic structural diagram of an image processing apparatus according to an embodiment of the present invention. The image processing apparatus provided in this embodiment is suitable for performing a beautifying process on an image of a display interface of a terminal device, and is implemented by combining hardware and software, and the apparatus may be integrated in a processor of the terminal device for being invoked by the processor. As shown in fig. 7, the image processing apparatus of the present embodiment specifically includes: a face recognition module 11 and a beauty processing module 12.
The face recognition module 11 is configured to perform face recognition on an image in a display interface of the terminal device, and generate a number corresponding to each face in the image.
The embodiment may also refer to the display interface shown in fig. 2, and the embodiment does not limit the specific manner in which the image processing apparatus numbers the faces, and the faces in the display interface may be numbered according to a preset sequence.
And the face beautifying processing module 12 is configured to perform face beautifying processing on a face corresponding to the selected number in the image according to the number selected by the user, where the face subjected to face beautifying processing is a part or all of the faces in the image.
The image processing apparatus provided in the embodiment of the present invention is used for executing the image processing method provided in the embodiment of fig. 1 of the present invention, and has corresponding functional modules, which have similar implementation principles and technical effects, and are not described herein again.
Further, the user may be instructed to select different processing modes by setting a processing mode in the beauty function of the terminal device, the processing mode in this embodiment is also an option related to the number of faces performing beauty processing, and specifically, the processing mode option may be displayed on a display interface of the terminal device, as shown in fig. 8, which is a schematic structural diagram of another image processing apparatus provided in the embodiment of the present invention, and on the basis of the embodiment shown in fig. 7, the beauty processing module 12 in this embodiment may include: a mode selection unit 13, configured to determine the number of faces to be subjected to the beauty processing according to the processing mode selected by the user; and a beautifying processing unit 14, configured to select a corresponding number of numbers according to the number of faces determined by the mode selection unit 13, and perform beautifying processing on the faces corresponding to the selected number in the image.
In a specific implementation, in the image processing apparatus provided in each of the above embodiments of the present invention, the facial beautification processing performed on the face recognized in the image may include different forms, and specifically, the facial beautification processing module 12 is configured to perform facial beautification processing on the face corresponding to the selected number in the image, where the facial beautification processing is performed on the face corresponding to the selected number, and is to: performing the same degree of facial beautification processing on the face corresponding to the selected number in the image; or, the face corresponding to the selected number in the image is subjected to different degrees of face beautifying processing.
The image processing apparatus provided in the embodiment of the present invention is configured to execute the image processing method provided in the embodiment of fig. 3 of the present invention, and has corresponding functional modules, which have similar implementation principles and technical effects, and are not described herein again.
Optionally, the beauty processing apparatus provided in each embodiment of the present invention may be configured to perform real-time beauty processing during a shooting process, where an image in the display interface in this embodiment is a live view image in a shooting view interface of the terminal device, and is shown by way of example on the basis of the beauty processing apparatus shown in fig. 8, and the beauty processing apparatus provided in this embodiment further includes: the display module 15 is configured to display the preview image after the face treatment in the display interface of the terminal device after the face treatment module 12 performs the face treatment on the face corresponding to the selected number in the image; and the shooting module 16 is used for executing shooting operation and storing the shot photos, wherein the stored photos comprise the preview images after the beauty treatment or comprise the preview images after the beauty treatment and the live view images in the shooting and viewing interface. The display interface of the terminal device of the present embodiment may refer to the display interface shown in fig. 5.
The image processing apparatus provided in the embodiment of the present invention is configured to execute the image processing method provided in the embodiment of fig. 4 of the present invention, and has corresponding functional modules, which have similar implementation principles and technical effects, and are not described herein again.
In another possible implementation manner of the present invention, post-beauty processing may also be performed on a shot photo, where an image in the display interface in this embodiment is a photo selected from a photo library of a terminal device, and is also shown by way of example on the basis of the beauty processing apparatus shown in fig. 8, and the beauty processing apparatus provided in this embodiment further includes: and a storage module 17, configured to store the photo after the face treatment, or store the photo after the face treatment and the selected photo after the face treatment module 12 performs the face treatment on the face corresponding to the selected number in the image.
The image processing apparatus according to the embodiment of the present invention is configured to execute the image processing method according to the embodiment of fig. 6 of the present invention, and has corresponding functional modules, which have similar implementation principles and technical effects, and are not described herein again.
Although the embodiments of the present invention have been described above, the above description is only for the convenience of understanding the present invention, and is not intended to limit the present invention. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. An image processing method, comprising:
carrying out face recognition on an image in a display interface of terminal equipment to generate a number corresponding to each face in the image;
and performing face beautifying processing on the face corresponding to the selected number in the image according to the number selected by the user, wherein the face subjected to face beautifying processing is part or all of the faces in the image.
2. The image processing method according to claim 1, wherein a processing mode option is provided on a display interface of the terminal device, and performing a face beautifying process on a face in the image corresponding to the selected number according to the number selected by the user comprises:
determining the number of the faces subjected to the beautifying processing according to the processing mode selected by the user;
and selecting a corresponding number according to the determined number of the faces, and performing face beautifying processing on the faces corresponding to the selected number in the image.
3. The image processing method according to claim 1, wherein the performing of the face beautification processing on the face corresponding to the selected number in the image comprises:
performing the same degree of beautifying processing on the face corresponding to the selected number in the image; or,
and performing different degrees of facial beautification processing on the faces corresponding to the selected numbers in the images respectively.
4. The image processing method according to any one of claims 1 to 3, wherein the image in the display interface is a live view image in a shooting view interface of the terminal device, and after performing a face beautifying process on a face corresponding to the selected number in the image, the method further comprises:
displaying the preview image after the beautifying processing in a display interface of the terminal equipment;
and executing shooting operation, and storing the shot picture, wherein the stored picture comprises the preview image after the beauty treatment, or comprises the preview image after the beauty treatment and the live view image in the shooting and viewing interface.
5. The image processing method according to any one of claims 1 to 3, wherein the image in the display interface is a photo selected from a photo library of the terminal device, and after performing a face beautifying process on the face corresponding to the selected number in the image, the method further comprises:
and saving the photo after the face treatment, or saving the photo after the face treatment and the selected photo.
6. An image processing apparatus characterized by comprising:
the face recognition module is used for carrying out face recognition on the image in the display interface of the terminal equipment and generating a number corresponding to each face in the image;
and the face beautifying processing module is used for carrying out face beautifying processing on the face corresponding to the selected number in the image according to the number selected by the user, wherein the face beautifying processing face is part or all of the faces in the image.
7. The image processing apparatus according to claim 6, wherein a processing mode option is provided on a display interface of the terminal device, and the beauty processing module comprises: the mode selection unit is used for determining the number of the faces subjected to the beautifying processing according to the processing mode selected by the user; and the face beautifying processing unit is used for selecting the corresponding number according to the number of the faces determined by the mode selection unit and carrying out face beautifying processing on the faces corresponding to the selected number in the image.
8. The image processing apparatus according to claim 6, wherein the face beautifying processing module is configured to perform face beautifying processing on the face corresponding to the selected number in the image, and is configured to: performing the same degree of beautifying processing on the face corresponding to the selected number in the image; or performing different degrees of facial beautification processing on the faces corresponding to the selected numbers in the images respectively.
9. The image processing apparatus according to any one of claims 6 to 8, wherein the image in the display interface is a live view image in a shooting view interface of the terminal device, the image processing apparatus further comprising: the display module is used for displaying the preview image after the face treatment in a display interface of the terminal equipment after the face treatment module performs the face treatment on the face corresponding to the selected number in the image;
and the shooting module is used for executing shooting operation and storing the shot photos, wherein the stored photos comprise the preview images after the beautifying processing or comprise the preview images after the beautifying processing and the real-time view-finding images in the shooting view-finding interface.
10. The image processing apparatus according to any one of claims 6 to 8, wherein the image in the display interface is a photo selected from a photo library of the terminal device, the image processing apparatus further comprising: and the storage module is used for storing the photo after the face treatment, or storing the photo after the face treatment and the selected photo after the face treatment is performed on the face corresponding to the selected number in the image by the face treatment module.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510466359.2A CN106412458A (en) | 2015-07-31 | 2015-07-31 | Image processing method and apparatus |
PCT/CN2016/078891 WO2016180126A1 (en) | 2015-07-31 | 2016-04-08 | Image processing method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510466359.2A CN106412458A (en) | 2015-07-31 | 2015-07-31 | Image processing method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106412458A true CN106412458A (en) | 2017-02-15 |
Family
ID=57248815
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510466359.2A Withdrawn CN106412458A (en) | 2015-07-31 | 2015-07-31 | Image processing method and apparatus |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106412458A (en) |
WO (1) | WO2016180126A1 (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107123081A (en) * | 2017-04-01 | 2017-09-01 | 北京小米移动软件有限公司 | image processing method, device and terminal |
CN107222675A (en) * | 2017-05-23 | 2017-09-29 | 维沃移动通信有限公司 | The photographic method and mobile terminal of a kind of mobile terminal |
CN107369126A (en) * | 2017-06-07 | 2017-11-21 | 维沃移动通信有限公司 | A kind of face image processing process and device |
CN107371057A (en) * | 2017-06-16 | 2017-11-21 | 武汉斗鱼网络科技有限公司 | A kind of method and apparatus that U.S. face effect is set |
CN107483833A (en) * | 2017-09-22 | 2017-12-15 | 维沃移动通信有限公司 | Method for displaying camera function and mobile terminal |
CN107948506A (en) * | 2017-11-22 | 2018-04-20 | 珠海格力电器股份有限公司 | Image processing method and device and electronic equipment |
CN108182714A (en) * | 2018-01-02 | 2018-06-19 | 腾讯科技(深圳)有限公司 | Image processing method and device, storage medium |
CN108833779A (en) * | 2018-06-15 | 2018-11-16 | Oppo广东移动通信有限公司 | shooting control method and related product |
CN108924410A (en) * | 2018-06-15 | 2018-11-30 | Oppo广东移动通信有限公司 | Camera control method and related device |
CN108924411A (en) * | 2018-06-15 | 2018-11-30 | Oppo广东移动通信有限公司 | Camera control method and device |
CN108933891A (en) * | 2017-05-26 | 2018-12-04 | 腾讯科技(深圳)有限公司 | Photographic method, terminal and system |
WO2018227349A1 (en) * | 2017-06-12 | 2018-12-20 | 美的集团股份有限公司 | Control method, controller, intelligent mirror and computer readable storage medium |
WO2019071550A1 (en) * | 2017-10-13 | 2019-04-18 | 深圳传音通讯有限公司 | Image processing method, mobile terminal, and computer-readable storage medium |
CN111314620A (en) * | 2020-03-26 | 2020-06-19 | 上海盛付通电子支付服务有限公司 | Photographing method and apparatus |
CN111932442A (en) * | 2020-07-15 | 2020-11-13 | 厦门真景科技有限公司 | Video beautifying method, device and equipment based on face recognition technology and computer readable storage medium |
CN113077397A (en) * | 2021-03-29 | 2021-07-06 | Oppo广东移动通信有限公司 | Image beautifying processing method and device, storage medium and electronic equipment |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106791394A (en) * | 2016-12-20 | 2017-05-31 | 北京小米移动软件有限公司 | Image processing method and device |
CN109685741B (en) * | 2018-12-28 | 2020-12-11 | 北京旷视科技有限公司 | An image processing method, device and computer storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103413270A (en) * | 2013-08-15 | 2013-11-27 | 北京小米科技有限责任公司 | Method and device for image processing and terminal device |
CN104537630A (en) * | 2015-01-22 | 2015-04-22 | 厦门美图之家科技有限公司 | Method and device for image beautifying based on age estimation |
CN104777910A (en) * | 2015-04-23 | 2015-07-15 | 福州大学 | Method and system for applying expression recognition to display device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103632165B (en) * | 2013-11-28 | 2017-07-04 | 小米科技有限责任公司 | A kind of method of image procossing, device and terminal device |
-
2015
- 2015-07-31 CN CN201510466359.2A patent/CN106412458A/en not_active Withdrawn
-
2016
- 2016-04-08 WO PCT/CN2016/078891 patent/WO2016180126A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103413270A (en) * | 2013-08-15 | 2013-11-27 | 北京小米科技有限责任公司 | Method and device for image processing and terminal device |
CN104537630A (en) * | 2015-01-22 | 2015-04-22 | 厦门美图之家科技有限公司 | Method and device for image beautifying based on age estimation |
CN104777910A (en) * | 2015-04-23 | 2015-07-15 | 福州大学 | Method and system for applying expression recognition to display device |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107123081A (en) * | 2017-04-01 | 2017-09-01 | 北京小米移动软件有限公司 | image processing method, device and terminal |
CN107222675A (en) * | 2017-05-23 | 2017-09-29 | 维沃移动通信有限公司 | The photographic method and mobile terminal of a kind of mobile terminal |
CN108933891A (en) * | 2017-05-26 | 2018-12-04 | 腾讯科技(深圳)有限公司 | Photographic method, terminal and system |
CN108933891B (en) * | 2017-05-26 | 2021-08-10 | 腾讯科技(深圳)有限公司 | Photographing method, terminal and system |
CN107369126A (en) * | 2017-06-07 | 2017-11-21 | 维沃移动通信有限公司 | A kind of face image processing process and device |
WO2018227349A1 (en) * | 2017-06-12 | 2018-12-20 | 美的集团股份有限公司 | Control method, controller, intelligent mirror and computer readable storage medium |
CN107371057B (en) * | 2017-06-16 | 2020-09-08 | 武汉斗鱼网络科技有限公司 | Method and device for setting beautifying effect |
CN107371057A (en) * | 2017-06-16 | 2017-11-21 | 武汉斗鱼网络科技有限公司 | A kind of method and apparatus that U.S. face effect is set |
CN107483833A (en) * | 2017-09-22 | 2017-12-15 | 维沃移动通信有限公司 | Method for displaying camera function and mobile terminal |
WO2019071550A1 (en) * | 2017-10-13 | 2019-04-18 | 深圳传音通讯有限公司 | Image processing method, mobile terminal, and computer-readable storage medium |
WO2019100766A1 (en) * | 2017-11-22 | 2019-05-31 | 格力电器(武汉)有限公司 | Image processing method and apparatus, electronic device and storage medium |
CN107948506A (en) * | 2017-11-22 | 2018-04-20 | 珠海格力电器股份有限公司 | Image processing method and device and electronic equipment |
CN108182714A (en) * | 2018-01-02 | 2018-06-19 | 腾讯科技(深圳)有限公司 | Image processing method and device, storage medium |
CN108182714B (en) * | 2018-01-02 | 2023-09-15 | 腾讯科技(深圳)有限公司 | Image processing method and device and storage medium |
CN108833779A (en) * | 2018-06-15 | 2018-11-16 | Oppo广东移动通信有限公司 | shooting control method and related product |
CN108924411A (en) * | 2018-06-15 | 2018-11-30 | Oppo广东移动通信有限公司 | Camera control method and device |
CN108924410A (en) * | 2018-06-15 | 2018-11-30 | Oppo广东移动通信有限公司 | Camera control method and related device |
CN111314620A (en) * | 2020-03-26 | 2020-06-19 | 上海盛付通电子支付服务有限公司 | Photographing method and apparatus |
CN111314620B (en) * | 2020-03-26 | 2022-03-04 | 上海盛付通电子支付服务有限公司 | Photographing method and apparatus |
CN111932442A (en) * | 2020-07-15 | 2020-11-13 | 厦门真景科技有限公司 | Video beautifying method, device and equipment based on face recognition technology and computer readable storage medium |
CN113077397A (en) * | 2021-03-29 | 2021-07-06 | Oppo广东移动通信有限公司 | Image beautifying processing method and device, storage medium and electronic equipment |
CN113077397B (en) * | 2021-03-29 | 2024-05-17 | Oppo广东移动通信有限公司 | Image beautifying processing method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
WO2016180126A1 (en) | 2016-11-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106412458A (en) | Image processing method and apparatus | |
CN104333700B (en) | Image blurring method and image blurring device | |
CN106161939B (en) | Photo shooting method and terminal | |
CN107580178B (en) | Image processing method and device | |
CN109672830B (en) | Image processing method, device, electronic device and storage medium | |
JP2018023158A (en) | Preview image display method and device, and terminal | |
WO2019237745A1 (en) | Facial image processing method and apparatus, electronic device and computer readable storage medium | |
CN105100615A (en) | Image preview method, device and terminal | |
TWI777098B (en) | Method, apparatus and electronic device for image processing and storage medium thereof | |
CN104503749A (en) | Photo processing method and electronic equipment | |
CN104580922A (en) | Control method and device for supplemental lighting during shooting | |
CN106815803B (en) | Picture processing method and device | |
CN104754221B (en) | A kind of photographic method and mobile terminal | |
CN106803920B (en) | An image processing method, device and intelligent conference terminal | |
CN109218609A (en) | Image composition method and device | |
CN105430269A (en) | A photographing method and device applied to a mobile terminal | |
US20160292842A1 (en) | Method and Apparatus for Enhanced Digital Imaging | |
CN106231200A (en) | A kind of photographic method and device | |
CN107180417B (en) | Photo processing method and device, computer readable storage medium and electronic equipment | |
CN105556957B (en) | A kind of image processing method, computer storage media, device and terminal | |
WO2018133305A1 (en) | Method and device for image processing | |
CN108156366A (en) | A kind of image capturing method and mobile device based on dual camera | |
CN105933613A (en) | Image processing method, device and mobile terminal | |
CN105516609A (en) | Method and device for taking pictures | |
CN108683847A (en) | photographing method, device, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20170215 |
|
WW01 | Invention patent application withdrawn after publication |