WO2016145830A1 - Image processing method, terminal and computer storage medium - Google Patents
Image processing method, terminal and computer storage medium Download PDFInfo
- Publication number
- WO2016145830A1 WO2016145830A1 PCT/CN2015/091737 CN2015091737W WO2016145830A1 WO 2016145830 A1 WO2016145830 A1 WO 2016145830A1 CN 2015091737 W CN2015091737 W CN 2015091737W WO 2016145830 A1 WO2016145830 A1 WO 2016145830A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- image
- processing
- face
- sub
- terminal
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 27
- 238000003860 storage Methods 0.000 title claims abstract description 17
- 238000000034 method Methods 0.000 claims abstract description 30
- 230000002087 whitening effect Effects 0.000 claims description 11
- 210000000887 face Anatomy 0.000 description 26
- 230000003796 beauty Effects 0.000 description 13
- 238000005516 engineering process Methods 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 238000004590 computer program Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 3
- 238000013528 artificial neural network Methods 0.000 description 2
- 241001396014 Priacanthus arenatus Species 0.000 description 1
- 230000001815 facial effect Effects 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000011148 porous material Substances 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
- 210000000216 zygoma Anatomy 0.000 description 1
Images
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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
Definitions
- the present invention relates to the field of data processing technologies, and in particular, to an image processing method, a terminal, and a computer storage medium.
- the terminal can perform image beautification processing on the collected image, that is, beauty technology.
- the beauty technology basically performs the same degree of beauty treatment on all faces in the image, that is, the beauty effect is the same for each face in the image, and when the user sets the beauty level, it will be in the current image. All faces are treated with the same level of beauty, and they can not be treated separately according to the user's needs; for example, when several people take photos together, the user only wants to treat themselves or several of them separately, but not others.
- the existing beauty technology can not meet the needs of users and reduce the user experience.
- the embodiment of the present invention is to provide an image processing method, a terminal, and a computer storage medium, so as to perform facial treatment on a face that needs to be treated in the image according to the user's needs, and a face that does not require beauty treatment. No beauty treatment is performed to improve the user experience.
- An embodiment of the present invention provides an image processing method, where the method includes:
- At least one sub-image including a human face in the image; wherein the at least one sub-image respectively corresponds to at least one human face in the image;
- the method further includes:
- the obtaining an input instruction includes:
- the image processing of the face in the corresponding sub image according to the input instruction comprises:
- the image beautifying the face in the corresponding sub-image according to the input instruction, the face number, and the preset image processing corresponding rule including:
- the image processing includes at least one of whitening processing, dermabrasion processing, large-eye proportional processing, and face-lift processing.
- An embodiment of the present invention further provides an image processing terminal, where the terminal includes:
- An acquiring module configured to acquire at least one sub-image including a human face in an image; wherein the at least one sub-image respectively corresponds to at least one human face in the image;
- a processing module configured to obtain an input instruction, and perform image processing on the face in the corresponding sub image in the at least one sub image acquired by the acquiring module according to the input instruction.
- the terminal further includes:
- the identification module is configured to identify a face in the at least one sub-image, and number the faces in the at least one sub-image according to a preset rule.
- the processing module is configured to obtain input audio data, and convert the audio data into an input instruction; according to the input instruction, the face number of the at least one sub image by the identification module And the preset image processing corresponding rule performs image beautification processing on the face in the corresponding sub image.
- the processing module is configured to obtain a face number matching the number according to a number included in the input instruction, and determine a face in the sub-image corresponding to the face number as And a first processing rule corresponding to the image beautification processing instruction in the preset image processing corresponding rule, according to the first step, in accordance with the image beautification processing instruction included in the input instruction, A processing rule performs image beautification on the determined face.
- the image processing includes at least one of whitening processing, dermabrasion processing, large-eye proportional processing, and face-lift processing.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the image processing method according to the embodiment of the invention.
- An image processing method, a terminal, and a computer storage medium by acquiring at least one sub-image including a human face in an image; wherein the at least one sub-image respectively corresponds to at least one human face in the image; Obtaining an input instruction, and performing image processing on a face in the corresponding sub image according to the input instruction.
- the technical solution of the embodiment of the present invention is used to perform image beautification processing on a face that needs to be subjected to image beautification processing according to user requirements, thereby improving the operation experience of the user.
- Embodiment 1 is a flowchart of Embodiment 1 of an image processing method according to the present invention.
- Embodiment 2 is a flowchart of Embodiment 2 of an image processing method according to the present invention.
- FIG. 3 is a first schematic diagram showing a face displayed on a screen of a terminal according to Embodiment 2 of the image processing method of the present invention
- FIG. 4 is a second schematic diagram of displaying a human face on a screen of a terminal according to Embodiment 2 of the image processing method of the present invention.
- FIG. 5 is a flowchart of Embodiment 3 of an image processing method according to the present invention.
- FIG. 6 is a schematic structural diagram of an embodiment of an image processing terminal according to the present invention.
- Embodiment 1 is a flowchart of Embodiment 1 of an image processing method according to the present invention. As shown in FIG. 1, the method may include:
- Step 101 Acquire at least one sub-image including a human face in an image; wherein the at least one sub-image respectively corresponds to at least one human face in the image.
- the terminal described in the embodiment of the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, and a digital broadcast receiving.
- PDAs personal digital assistants
- PADs tablet computers
- PMPs portable multimedia players
- navigation devices and the like
- the terminals may also be fixed terminals of digital televisions, desktop computers, and the like.
- the terminal acquires at least one sub-image including a human face in an image
- the image may be directly obtained through a camera framing interface of the terminal, or may be obtained by selecting an image from a picture storage area of the terminal. Or can be obtained in other ways to meet the different needs of users.
- Obtaining at least one sub-image including a human face in the image may be Recognizing a face in the image by a face recognition technology to obtain a sub-image including a human face; wherein the at least one sub-image respectively corresponds to at least one face in the image; it may be understood that the image There are N human faces, and correspondingly, N sub-images are obtained.
- the face recognition technology is to identify and compare the face visual feature information for identity identification, and belongs to the biometric feature technology, which is a biological feature of the living body (generally referring to the person) itself to distinguish the living body individual; Face recognition technology has been applied in many fields, such as digital camera face autofocus and smile shutter technology; enterprise, residential security and management; access control system; camera monitoring system; commonly used face recognition algorithms include: based on face Feature-Based Recognition Algorithms, Appearance-Based Recognition Algorithms, Template-Based Recognition Algorithms, Algorithms for Recognition Using Neural Networks (Recognition Algorithms Using Neural Network) and the like, of course, are not limited to the face recognition algorithm described above.
- the face recognition technology described in this embodiment may employ any face recognition technology in the prior art, which is not described in the embodiment.
- Step 102 Obtain an input instruction, and perform image processing on a face in the corresponding sub image according to the input instruction.
- the terminal after acquiring the at least one sub-image including the human face, the terminal prompts the user to select a face that is currently required to perform image processing.
- the terminal may obtain an input instruction by using various implementation manners:
- the first embodiment the terminal can perform image processing on a face in a corresponding sub-image through the obtained touch operation.
- the prompt box of the at least one sub-image is displayed in the display screen of the terminal; the user may perform the first touch operation.
- the image processing rule may be pre-configured in the terminal, for example, when The second touch operation When the " ⁇ " gesture is operated, the whitening process of the face is performed correspondingly; when the second touch operation is the " ⁇ " gesture operation, the dermabrasion process of the face is performed correspondingly.
- the second embodiment the user can select a face that is currently required to perform image processing through sound input selection, and perform image processing on the determined face through sound input; wherein the sound may include continuous speech, knocking, whistle, etc.
- the image processing may be an image beautification process, and the image processing (ie, image beautification processing) may specifically include at least one of whitening processing, dermabrasion processing, large-eye proportional processing, and face-lift processing.
- the whitening treatment is a whitening treatment on the human skin
- the dermabraing treatment is a treatment for squeezing, wrinkling, and removing pores on the human skin to make the skin smooth and firm
- the proportional processing is a process of scaling up the eyes
- the face-lifting process is a process of scaling down the cheekbones of the face, and the like.
- the image beautification process in this embodiment can refer to any beauty treatment mode in the prior art, and details are not described herein again.
- the terminal includes four faces in the acquired image
- the user wants to perform image beautification on the two faces
- the user may first select one of the faces through the voice input to beautify and save the image.
- the effect is processed, and another face is beautified and the beauty effect is preserved; wherein the image or the degree of image beautification can be the same or different, so that the image can be realized.
- the faces in the image are processed separately.
- the image processing method provided by the embodiment of the present invention determines that at least one sub-image including a human face in the image is input by the user through instruction input (not limited to inputting an instruction through a touch operation or inputting an audio data input instruction).
- the face that needs image processing separately performs image processing on the determined face; realizes image beautification processing on the face that needs image beautification in the image according to user requirements, and faces that do not need image beautification processing
- the image beautification process is not performed, which improves the user's operating experience.
- An embodiment of the present invention further provides a computer storage medium, where the computer storage medium Computer executable instructions are stored, the computer executable instructions being configured to perform the image processing methods described in the embodiments of the present invention.
- Embodiment 2 is a flowchart of Embodiment 2 of an image processing method according to the present invention. As shown in FIG. 2, the method may include:
- Step 201 Acquire at least one sub-image including a human face in an image; wherein the at least one sub-image respectively corresponds to at least one human face in the image.
- the terminal may acquire a sub-image including a human face in the view interface of the terminal camera; or, when editing the picture, the user selects a picture from the picture library stored in the terminal to obtain the picture. Each of them contains a sub-image of a human face.
- Step 202 Identify a face in the at least one sub-image, and number the faces in the at least one sub-image according to a preset rule.
- the terminal identifies the face in each of the sub-images, specifically, the face information in each sub-image is identified; the face information includes but is not limited to face position information, contour feature information, and color feature information.
- the recognized faces are numbered according to preset rules, for example, from left to right, or from front to back, or from large to small.
- the user can be notified in a specific manner (for example, the number corresponding to the face can be displayed through the display screen, or the number corresponding to the face can be output by voice, etc.); wherein the preset numbering rule in this embodiment can be based on the user.
- the requirements are set, here is an example to illustrate.
- FIG. 3 is a first schematic diagram of displaying a human face on a terminal screen according to Embodiment 2 of the image processing method of the present invention
- FIG. 4 is a second schematic diagram of displaying a human face on a terminal screen according to Embodiment 2 of the image processing method of the present invention
- the terminal recognizes five faces in the image displayed on the screen, and numbers five faces according to a preset numbering rule; wherein the preset numbering rule is Faces appearing in the image in order from the user's left hand side to the right hand side when the user faces the screen are numbered starting from 1.
- the terminal screen adopts the vertical screen display mode, as shown in FIG. 3, the five faces are sequentially numbered from the left-hand side to the right-hand side of the user (the direction of the arrow in FIG. 3).
- the number from the left hand side to the right hand side is 1, 2, 3, 4, 5;
- the terminal screen adopts the horizontal screen display mode as shown in Figure 4, the order from the user's left hand side to the right hand side ( Figure 4
- the directions of the arrows are sequentially numbered for five faces, which are numbered 1, 2, 3, 4, and 5 from the left hand side to the right hand side.
- Step 203 Obtain input audio data, convert the audio data into an input instruction, and perform image beautification processing on the face in the corresponding sub-image according to the input instruction, the face number, and the preset image processing corresponding rule.
- the terminal prompts (for example, by voice prompting) the user's current face number after numbering the face in the image. Further, the user inputs voice information through the microphone of the terminal; then the terminal obtains audio data.
- the obtained audio data includes at least first audio data, and the first audio data represents a face number, or a face corresponding to the face number.
- the user inputs the first audio data, and after the terminal acquires the first audio data of the user, the image is processed in the selected image corresponding to the input instruction corresponding to the first audio data according to a preset preset image processing corresponding rule.
- the face is separately processed by the image.
- the image processing correspondence rule may be stored in a terminal in a form of a table, and the user may set the image processing corresponding rule according to his own needs. Take the example shown in the image processing correspondence rule in Table 1. After the terminal numbers the faces in the image, the terminal can prompt the user to “current face number completion” through voice output. At this time, assume that the user wants to perform image beautification on the faces of number 2 and number 3 in the current image. , the voice "Wang Er” can be input to the terminal, and the voice “Li San” is input to the terminal after the first unit time (for example, 1 second); after the terminal determines that the input voice is completed, the audio data "Wang Er" will be obtained.
- Step 204 The user saves the processed image.
- the terminal issues a prompt message indicating that “the current image beautification process has been completed”;
- the user can press the camera button or take a photo control to save the image after the image is beautified;
- the terminal is in the image editing state, the user can beautify the image after the image is processed. The image is saved.
- the image processing method provided by the embodiment of the invention implements image beautification processing on a face that needs to be subjected to image beautification processing according to user requirements, and does not perform image beautification processing on a face that does not require image beautification processing. Users can control the process of image beautification through voice, which enhances the user's operating experience.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the image processing method according to the embodiment of the invention.
- FIG. 5 is a flowchart of Embodiment 3 of an image processing method according to the present invention. As shown in FIG. 5, the method may include:
- Step 301 Acquire at least one sub-image including a human face in the image; wherein the at least one sub-image respectively corresponds to at least one human face in the image.
- the terminal may acquire a sub-image including a human face in the view interface of the terminal camera; or, when editing the picture, the user selects a picture from the picture library stored in the terminal to obtain the picture. Each of them contains a sub-image of a human face.
- Step 302 Identify a face in the at least one sub-image, and number the faces in the at least one sub-image according to a preset rule.
- the terminal identifies the face in each of the sub-images, specifically, the face information in each sub-image is identified; the face information includes but is not limited to face position information, contour feature information, and color feature information.
- the recognized faces are numbered according to preset rules, for example, from left to right, or from front to back, or from large to small.
- the user can be notified in a specific manner (for example, the number corresponding to the face can be displayed through the display screen, or the number corresponding to the face can be output by voice, etc.);
- the preset numbering rule in this embodiment can be set according to the needs of the user. Specifically, the numbering of the face in the at least one sub-image according to the preset rule may be referred to in step 202, and details are not described herein again.
- Step 303 Obtain a face number matching the number according to the number included in the input instruction, and determine a face in the sub-image corresponding to the face number as a face to be subjected to image beautification processing.
- the terminal prompts (for example, by voice prompting) the user's current face number after numbering the face in the image. Further, the user inputs voice information through the microphone of the terminal; then the terminal obtains audio data.
- the obtained audio data includes at least second audio data and third audio data; the second audio data represents a face number, or a face corresponding to a face number; and the third audio data represents a corresponding The way the image is processed.
- the user inputs the second audio data; after acquiring the second audio data of the user, the terminal selects the image corresponding to the input instruction corresponding to the second audio data according to the preset second image processing corresponding rule. face.
- the second image processing correspondence rule may be stored in a terminal in a form of a table, and the user may set the second image processing corresponding rule according to a requirement of the user. Take the example shown in the second image processing correspondence rule in Table 2 as an example. After the number of the face in the image is numbered, the terminal may prompt the user through the voice output that “the current face number is completed, please input a face recognition instruction that requires image beautification processing”; at this time, assume that the user wants to view the current image. If the faces of No. 1, No. 2, and No. 4 are subjected to image beautification, the voice "1" can be input to the terminal, and after the second unit time (for example, 1 second), the voice "2" is input to the terminal, in the second unit.
- the voice "4" is input to the terminal; after determining that the voice input is completed, the terminal obtains the audio data "1", "2", and "4" and the preset second image processing corresponding rule. Perform matching to determine the faces of number 1, number 2, and number 4 that the user needs to beautify the image, and notify the user of the image beautification by voice prompt information (for example, "currently determined faces 1, 2, and 4") completed.
- the second unit time can be set according to the needs of the user, which is not limited herein.
- Second audio data Face number 1 1 2 2 3 3 4 4 5 5 ... ...
- Step 304 Obtain a first processing rule corresponding to the image beautification processing instruction in the preset image processing corresponding rule according to the image beautification processing instruction in the input instruction, and determine the first processing rule according to the first processing rule The face is imaged and treated.
- the terminal after determining the face that needs image beautification processing in the image and notifying the user, the terminal prompts the user to continue inputting the voice instruction, that is, inputting the third audio data; the terminal acquires the third audio data of the user.
- the image beautification processing is performed on the face that has been determined in step 303 in accordance with the preset third image processing correspondence rule.
- the third image processing correspondence rule may be stored in a terminal in a form of a table, and the user may set the third image processing corresponding rule according to a requirement of the user. Take the third image processing correspondence rule in Table 3 as an example. This step is explained with reference to the example in step 303. After determining the face number 1 , number 2 and number 4 of the image that needs to be processed in the image and notifying the user, the terminal may notify the user to continue to input the voice through the voice prompt information (for example, “continue input image beautification processing instruction”).
- the image is beautified, and the number of the face of the number 4 is 20% whitening, the degree of dermabrasion is 20%, the ratio of the big eye is 20%, and the face of the face is 20%, and the message is presented by voice ("already The faces of 1, 2, and 4 are processed separately.)
- the user is notified that the image beautification process has been completed.
- the third unit time can be set according to the needs of the user, and is not limited herein.
- Step 305 The user saves the processed image.
- the terminal issues a prompt message indicating that “the current image beautification process has been completed”; when the terminal is in the photographing state, the user can press the photographing button or take a photo control to perform photographing and save the image after the image beautification processing; When the terminal is in the picture editing state, the user can save the image after the image beautification process.
- the image processing method provided by the embodiment of the invention implements image beautification processing on a face that needs to be subjected to image beautification processing according to user requirements, and does not perform image beautification processing on a face that does not require image beautification processing. Users can control the process of image beautification through voice, which enhances the user's operating experience.
- the embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the image processing method according to the embodiment of the invention.
- FIG. 6 is a schematic structural diagram of an embodiment of an image processing terminal according to the present invention.
- the image processing terminal 06 of the present invention may include: an obtaining module 061 and a processing module 062;
- the acquiring module 061 is configured to acquire at least one sub-image including a human face in an image, where the at least one sub-image respectively corresponds to at least one human face in the image;
- the processing module 062 is configured to obtain an input instruction, and perform image processing on a face in a corresponding sub-image of the at least one sub-image acquired by the acquiring module according to the input instruction.
- the terminal further includes: an identification module 063;
- the identification module 063 is configured to identify a face in the at least one sub-image, and number the faces in the at least one sub-image according to a preset rule.
- the processing module 062 is configured to obtain input audio data, and convert the audio data into an input instruction; according to the input instruction, the face number and pre-preparation performed by the identification module on the at least one sub-image
- the image processing corresponding rule is used to perform image beautification processing on the face in the corresponding sub image.
- the processing module 062 is configured to obtain a face number matching the number according to the number included in the input instruction, and determine a face in the sub-image corresponding to the face number as to be performed And a first processing rule corresponding to the image beautification processing instruction in the preset image processing corresponding rule, according to the first processing, according to the image rendering processing instruction included in the input instruction, The rule performs image beautification on the determined face.
- the image processing includes at least one of whitening processing, dermabrasion processing, large-eye proportional processing, and face-lift processing.
- the obtaining module 061, the processing module 062, and the identifying module 063 may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array located on the terminal. (FPGA) and other device implementations.
- CPU central processing unit
- MPU microprocessor
- DSP digital signal processor
- FPGA field programmable gate array
- embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the present invention may employ computer-usable storage media (including but not limited to disks) in one or more of the computer-usable program code embodied therein. A form of computer program product embodied on a memory and optical storage, etc.).
- the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
- the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
- These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
- the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
- the embodiment of the present invention acquires at least one sub-image including a human face in an image; wherein the at least one sub-image respectively corresponds to at least one human face in the image; obtaining an input instruction, corresponding to the input instruction according to the input instruction
- the face in the sub image is image processed.
- the technical solution of the embodiment of the present invention is used to realize image beautification in an image according to user requirements.
- the processed face is subjected to image beautification processing, which improves the user's operating experience.
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)
- User Interface Of Digital Computer (AREA)
Abstract
Disclosed in embodiments of the present invention are an image processing method, terminal and computer storage medium. The method comprises: obtaining at least one sub-image in an image, the at least one sub-image comprising a human face and respectively corresponding to at least one human face in the image; obtaining an input instruction, and performing image processing on the human face in the corresponding sub-image according to the input instruction.
Description
本发明涉及数据处理技术领域,尤其涉及一种图像处理方法、终端及计算机存储介质。The present invention relates to the field of data processing technologies, and in particular, to an image processing method, a terminal, and a computer storage medium.
随着计算机技术的发展,终端可通对采集到的图像进行图像美化处理,即美颜技术。目前美颜技术基本上是对图像中所有人脸进行同一程度美颜处理,即美颜效果对图像中的每个人脸都是相同的,当用户设置美颜等级后,会对当前图像中的所有人脸进行同一程度的美颜处理,而不可以根据用户需要分别进行美颜处理;例如,当几个人一起拍照时,用户只想给自己或者其中几个人分别进行美颜处理,而不对其他人进行美颜处理,这时现有的美颜技术就不能满足用户的需求,降低了用户体验。With the development of computer technology, the terminal can perform image beautification processing on the collected image, that is, beauty technology. At present, the beauty technology basically performs the same degree of beauty treatment on all faces in the image, that is, the beauty effect is the same for each face in the image, and when the user sets the beauty level, it will be in the current image. All faces are treated with the same level of beauty, and they can not be treated separately according to the user's needs; for example, when several people take photos together, the user only wants to treat themselves or several of them separately, but not others. When people perform beauty treatment, the existing beauty technology can not meet the needs of users and reduce the user experience.
发明内容Summary of the invention
本发明实施例期望提供一种图像处理方法、终端及计算机存储介质,以实现根据用户需求分别对图像中待需要美颜处理的人脸进行美颜处理,而对不需要美颜处理的人脸不进行美颜处理,提高用户体验。The embodiment of the present invention is to provide an image processing method, a terminal, and a computer storage medium, so as to perform facial treatment on a face that needs to be treated in the image according to the user's needs, and a face that does not require beauty treatment. No beauty treatment is performed to improve the user experience.
为达到上述目的,本发明实施例的技术方案是这样实现的:To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
本发明实施例提供一种图像处理方法,所述方法包括:An embodiment of the present invention provides an image processing method, where the method includes:
获取图像中的包含有人脸的至少一个子图像;其中,所述至少一个子图像分别对应所述图像中的至少一个人脸;Acquiring at least one sub-image including a human face in the image; wherein the at least one sub-image respectively corresponds to at least one human face in the image;
获得输入指令,根据所述输入指令对相应的子图像中的人脸进行图像处理。
Obtaining an input instruction, and performing image processing on a face in the corresponding sub image according to the input instruction.
作为一种实施方式,获取图像中的包含有人脸的至少一个子图像之后,所述方法还包括:As an implementation manner, after acquiring at least one sub-image including a human face in an image, the method further includes:
识别出所述至少一个子图像中的人脸,按照预设规则对所述至少一个子图像中人脸进行编号。Recognizing a face in the at least one sub-image, numbering the faces in the at least one sub-image according to a preset rule.
作为一种实施方式,所述获得输入指令,包括:As an implementation manner, the obtaining an input instruction includes:
获得输入的音频数据,转换所述音频数据为输入指令;Obtaining input audio data, converting the audio data into an input instruction;
相应的,所述根据所述输入指令对相应的子图像中的人脸进行图像处理,包括:Correspondingly, the image processing of the face in the corresponding sub image according to the input instruction comprises:
根据所述输入指令、人脸编号及预设的图像处理对应规则对相应的子图像中的人脸进行图像美化处理。And performing image beautification processing on the face in the corresponding sub image according to the input instruction, the face number, and the preset image processing corresponding rule.
作为一种实施方式,所述根据所述输入指令、人脸编号及预设的图像处理对应规则对相应的子图像中的人脸进行图像美化处理,包括:As an implementation manner, the image beautifying the face in the corresponding sub-image according to the input instruction, the face number, and the preset image processing corresponding rule, including:
根据所述输入指令中包括的编号,获得与所述编号匹配的人脸编号,将所述人脸编号对应的子图像中的人脸确定为待进行图像美化处理的人脸;Obtaining, according to the number included in the input instruction, a face number matching the number, and determining a face in the sub-image corresponding to the face number as a face to be subjected to image beautification processing;
根据所述输入指令中包括图像美化处理指令,获得所述预设的图像处理对应规则中与所述图像美化处理指令对应的第一处理规则,按照所述第一处理规则对确定的人脸进行图像美化处理。And obtaining, according to the image instructing processing instruction in the input instruction, a first processing rule corresponding to the image beautification processing instruction in the preset image processing corresponding rule, and performing the determined face according to the first processing rule. Image beautification.
作为一种实施方式,所述图像处理包括:美白处理、磨皮处理、大眼比例处理、瘦脸处理其中的至少一个。As an embodiment, the image processing includes at least one of whitening processing, dermabrasion processing, large-eye proportional processing, and face-lift processing.
本发明实施例还提供一种图像处理终端,所述终端包括:An embodiment of the present invention further provides an image processing terminal, where the terminal includes:
获取模块,配置为获取图像中的包含有人脸的至少一个子图像;其中,所述至少一个子图像分别对应所述图像中的至少一个人脸;An acquiring module, configured to acquire at least one sub-image including a human face in an image; wherein the at least one sub-image respectively corresponds to at least one human face in the image;
处理模块,配置为获得输入指令,根据所述输入指令对所述获取模块获取的所述至少一个子图像中相应的子图像中的人脸进行图像处理。
And a processing module configured to obtain an input instruction, and perform image processing on the face in the corresponding sub image in the at least one sub image acquired by the acquiring module according to the input instruction.
作为一种实施方式,所述终端还包括:As an implementation manner, the terminal further includes:
识别模块,配置为识别出所述至少一个子图像中的人脸,按照预设规则对所述至少一个子图像中人脸进行编号。The identification module is configured to identify a face in the at least one sub-image, and number the faces in the at least one sub-image according to a preset rule.
作为一种实施方式,所述处理模块,配置为获得输入的音频数据,转换所述音频数据为输入指令;根据所述输入指令、所述识别模块对所述至少一个子图像进行的人脸编号及预设的图像处理对应规则对相应的子图像中的人脸进行图像美化处理。In one embodiment, the processing module is configured to obtain input audio data, and convert the audio data into an input instruction; according to the input instruction, the face number of the at least one sub image by the identification module And the preset image processing corresponding rule performs image beautification processing on the face in the corresponding sub image.
作为一种实施方式,所述处理模块,配置为根据所述输入指令中包括的编号,获得与所述编号匹配的人脸编号,将所述人脸编号对应的子图像中的人脸确定为待进行图像美化处理的人脸;根据所述输入指令中包括图像美化处理指令,获得所述预设的图像处理对应规则中与所述图像美化处理指令对应的第一处理规则,按照所述第一处理规则对确定的人脸进行图像美化处理。In an embodiment, the processing module is configured to obtain a face number matching the number according to a number included in the input instruction, and determine a face in the sub-image corresponding to the face number as And a first processing rule corresponding to the image beautification processing instruction in the preset image processing corresponding rule, according to the first step, in accordance with the image beautification processing instruction included in the input instruction, A processing rule performs image beautification on the determined face.
作为一种实施方式,所述图像处理包括:美白处理、磨皮处理、大眼比例处理、瘦脸处理其中的至少一个。As an embodiment, the image processing includes at least one of whitening processing, dermabrasion processing, large-eye proportional processing, and face-lift processing.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例所述的图像处理方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the image processing method according to the embodiment of the invention.
本发明实施例提供的图像处理方法、终端及计算机存储介质,通过获取图像中的包含有人脸的至少一个子图像;其中,所述至少一个子图像分别对应所述图像中的至少一个人脸;获得输入指令,根据所述输入指令对相应的子图像中的人脸进行图像处理。如此,采用本发明实施例的技术方案,实现了根据用户需求对图像中需要进行图像美化处理的人脸进行图像美化处理处理,提升了用户的操作体验。
An image processing method, a terminal, and a computer storage medium according to an embodiment of the present invention, by acquiring at least one sub-image including a human face in an image; wherein the at least one sub-image respectively corresponds to at least one human face in the image; Obtaining an input instruction, and performing image processing on a face in the corresponding sub image according to the input instruction. In this way, the technical solution of the embodiment of the present invention is used to perform image beautification processing on a face that needs to be subjected to image beautification processing according to user requirements, thereby improving the operation experience of the user.
图1为本发明图像处理方法实施例一的流程图;1 is a flowchart of Embodiment 1 of an image processing method according to the present invention;
图2为本发明图像处理方法实施例二的流程图;2 is a flowchart of Embodiment 2 of an image processing method according to the present invention;
图3为本发明图像处理方法实施例二的终端屏幕上显示人脸的第一示意图;3 is a first schematic diagram showing a face displayed on a screen of a terminal according to Embodiment 2 of the image processing method of the present invention;
图4为本发明图像处理方法实施例二的终端屏幕上显示人脸的第二示意图;4 is a second schematic diagram of displaying a human face on a screen of a terminal according to Embodiment 2 of the image processing method of the present invention;
图5为本发明图像处理方法实施例三的流程图;FIG. 5 is a flowchart of Embodiment 3 of an image processing method according to the present invention; FIG.
图6为本发明图像处理终端实施例的结构示意图。FIG. 6 is a schematic structural diagram of an embodiment of an image processing terminal according to the present invention.
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings.
图1为本发明图像处理方法实施例一的流程图,如图1所示,本方法可以包括:1 is a flowchart of Embodiment 1 of an image processing method according to the present invention. As shown in FIG. 1, the method may include:
步骤101、获取图像中的包含有人脸的至少一个子图像;其中,所述至少一个子图像分别对应所述图像中的至少一个人脸。Step 101: Acquire at least one sub-image including a human face in an image; wherein the at least one sub-image respectively corresponds to at least one human face in the image.
本实施例所述的图像处理方法应用于终端中;所述终端可以以各种形式来实施,例如,本发明实施例中描述的终端可以包括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、个人数字助理(PDA)、平板电脑(PAD)、便携式多媒体播放器(PMP)、导航装置等等的移动终端;当然,所述终端也可以为数字电视、台式计算机等等的固定终端。The image processing method described in this embodiment is applied to a terminal; the terminal may be implemented in various forms. For example, the terminal described in the embodiment of the present invention may include, for example, a mobile phone, a smart phone, a notebook computer, and a digital broadcast receiving. Mobile terminals of personal computers, personal digital assistants (PDAs), tablet computers (PADs), portable multimedia players (PMPs), navigation devices, and the like; of course, the terminals may also be fixed terminals of digital televisions, desktop computers, and the like.
这里,所述终端获取图像中的包含有人脸的至少一个子图像中,所述图像可以通过所述终端的摄像头取景界面直接获得,或者也可以是从所述终端的图片存储区中选择图像获得,或者还可以通过其它方式获得,以满足用户不同的需求。所述获取图像中的包含有人脸的至少一个子图像可以
是通过人脸识别技术识别所述图像中的人脸,获得包含有人脸的子图像;其中,所述至少一个子图像分别对应所述图像中的至少一个人脸;可以理解为,所述图像中包含有N个人脸,相应的,获取N个子图像。其中,所述人脸识别技术,是通过分析比较人脸视觉特征信息进行身份鉴别,属于生物特征识别技术,是对生物体(一般特指人)本身的生物特征来区分生物体个体;目前,人脸识别技术已应用在众多领域当中,例如,数码相机人脸自动对焦和笑脸快门技术;企业、住宅安全和管理;门禁系统;摄像监视系统等;常用的人脸识别算法包括:基于人脸特征点的识别算法(Feature-Based Recognition Algorithms)、基于整幅人脸图像的识别算法(Appearance-Based Recognition Algorithms)、基于模板的识别算法(Template-Based Recognition Algorithms)、利用神经网络进行识别的算法(Recognition Algorithms Using Neural Network)等等,当然不限于上述人脸识别算法。本实施例中所述的人脸识别技术可采用现有技术中的任何人脸识别技术,本实施例中不做过多描述。Here, the terminal acquires at least one sub-image including a human face in an image, and the image may be directly obtained through a camera framing interface of the terminal, or may be obtained by selecting an image from a picture storage area of the terminal. Or can be obtained in other ways to meet the different needs of users. Obtaining at least one sub-image including a human face in the image may be
Recognizing a face in the image by a face recognition technology to obtain a sub-image including a human face; wherein the at least one sub-image respectively corresponds to at least one face in the image; it may be understood that the image There are N human faces, and correspondingly, N sub-images are obtained. Wherein, the face recognition technology is to identify and compare the face visual feature information for identity identification, and belongs to the biometric feature technology, which is a biological feature of the living body (generally referring to the person) itself to distinguish the living body individual; Face recognition technology has been applied in many fields, such as digital camera face autofocus and smile shutter technology; enterprise, residential security and management; access control system; camera monitoring system; commonly used face recognition algorithms include: based on face Feature-Based Recognition Algorithms, Appearance-Based Recognition Algorithms, Template-Based Recognition Algorithms, Algorithms for Recognition Using Neural Networks (Recognition Algorithms Using Neural Network) and the like, of course, are not limited to the face recognition algorithm described above. The face recognition technology described in this embodiment may employ any face recognition technology in the prior art, which is not described in the embodiment.
步骤102、获得输入指令,根据所述输入指令对相应的子图像中的人脸进行图像处理。Step 102: Obtain an input instruction, and perform image processing on a face in the corresponding sub image according to the input instruction.
这里,所述终端在获取到包含有人脸的至少一个子图像后,提示用户可以选择当前需要进行图像处理的人脸;本发明实施例中,所述终端可采用多种实施方式获得输入指令:Here, after acquiring the at least one sub-image including the human face, the terminal prompts the user to select a face that is currently required to perform image processing. In the embodiment of the present invention, the terminal may obtain an input instruction by using various implementation manners:
第一种实施方式:所述终端可通过获得的触控操作对相应的子图像中的人脸进行图像处理。作为一种应用方式,当步骤101中获取图像中的包含有人脸的至少一个子图像后,所述终端的显示屏中显示所述至少一个子图像的提示框;用户可通过第一触控操作(如单击操作)确定待进行图像处理的子图像,再通过第二触控操作对相应的子图像中的人脸进行相应的图像处理;所述终端中可预先配置图像处理规则,例如当所述第二触控操
作为“○”手势操作时,对应进行人脸的美白处理;当所述第二触控操作为“△”手势操作时,对应进行人脸的磨皮处理等等。The first embodiment: the terminal can perform image processing on a face in a corresponding sub-image through the obtained touch operation. As an application manner, after the at least one sub-image including the human face in the image is acquired in step 101, the prompt box of the at least one sub-image is displayed in the display screen of the terminal; the user may perform the first touch operation. (such as a click operation) determining a sub-image to be image-processed, and then performing corresponding image processing on a face in the corresponding sub-image through a second touch operation; the image processing rule may be pre-configured in the terminal, for example, when The second touch operation
When the "○" gesture is operated, the whitening process of the face is performed correspondingly; when the second touch operation is the "△" gesture operation, the dermabrasion process of the face is performed correspondingly.
第二种实施方式:用户可以通过声音输入选择确定出当前需要进行图像处理的人脸,以及通过声音输入对确定的人脸进行图像处理;其中,声音可以包括语音、敲击声、口哨等连续声音或者非连续声音;所述图像处理可以为图像美化处理,所述图像处理(即图像美化处理)可以具体包括:美白处理、磨皮处理、大眼比例处理、瘦脸处理其中的至少一个。其中,所述美白处理为对人脸皮肤进行美白处理;所述磨皮处理为对人脸皮肤进行包括祛痘、祛皱、去毛孔等使皮肤呈现光滑紧致效果的处理;所述大眼比例处理为对眼睛进行按比例放大的处理;所述瘦脸处理为对人脸的颧骨进行按比例缩小的处理等等。其中,本实施例中的图像美化处理可参照现有技术中的任何美颜处理方式,这里不再赘述。The second embodiment: the user can select a face that is currently required to perform image processing through sound input selection, and perform image processing on the determined face through sound input; wherein the sound may include continuous speech, knocking, whistle, etc. The image processing may be an image beautification process, and the image processing (ie, image beautification processing) may specifically include at least one of whitening processing, dermabrasion processing, large-eye proportional processing, and face-lift processing. Wherein, the whitening treatment is a whitening treatment on the human skin; the dermabraing treatment is a treatment for squeezing, wrinkling, and removing pores on the human skin to make the skin smooth and firm; the large eye The proportional processing is a process of scaling up the eyes; the face-lifting process is a process of scaling down the cheekbones of the face, and the like. The image beautification process in this embodiment can refer to any beauty treatment mode in the prior art, and details are not described herein again.
例如,终端在获取到一个图像中包括四张人脸,用户想对其中的两张人脸进行图像美化处理,那么用户可以先通过声音输入选择其中的一张人脸对其进行美化处理并保存处理效果,再对其中的另一张人脸对其进行美化处理并保存其美颜效果;其中,前后两次的图像美化处理的方式或程度可以相同也可以不相同,这样就可以实现对图像中的人脸分别进行图像处理。For example, if the terminal includes four faces in the acquired image, and the user wants to perform image beautification on the two faces, the user may first select one of the faces through the voice input to beautify and save the image. The effect is processed, and another face is beautified and the beauty effect is preserved; wherein the image or the degree of image beautification can be the same or different, so that the image can be realized. The faces in the image are processed separately.
本发明实施例提供的图像处理方法,通过获取图像中的包含有人脸的至少一个子图像,用户通过指令的输入(不限于是通过触控操作输入指令或是采集音频数据输入指令的方式)确定需要进行图像处理的人脸再分别对确定的人脸进行图像处理;实现了根据用户需求对图像中需要进行图像美化处理的人脸进行图像美化处理处理,而对不需要图像美化处理的人脸不进行图像美化处理,提升了用户的操作体验。The image processing method provided by the embodiment of the present invention determines that at least one sub-image including a human face in the image is input by the user through instruction input (not limited to inputting an instruction through a touch operation or inputting an audio data input instruction). The face that needs image processing separately performs image processing on the determined face; realizes image beautification processing on the face that needs image beautification in the image according to user requirements, and faces that do not need image beautification processing The image beautification process is not performed, which improves the user's operating experience.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中
存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例所述的图像处理方法。An embodiment of the present invention further provides a computer storage medium, where the computer storage medium
Computer executable instructions are stored, the computer executable instructions being configured to perform the image processing methods described in the embodiments of the present invention.
为了更加体现出本发明的目的,在上述实施例的基础上,进一步的举例说明。In order to further embodies the object of the present invention, further exemplification will be made on the basis of the above embodiments.
图2为本发明图像处理方法实施例二的流程图,如图2所示,所述方法可以包括:2 is a flowchart of Embodiment 2 of an image processing method according to the present invention. As shown in FIG. 2, the method may include:
步骤201、获取图像中的的包含有人脸的至少一个子图像;其中,所述至少一个子图像分别对应所述图像中的至少一个人脸。Step 201: Acquire at least one sub-image including a human face in an image; wherein the at least one sub-image respectively corresponds to at least one human face in the image.
例如,用户在进行拍照时,终端可以获取终端摄像头的取景界面中的每个包含有人脸的子图像;或者,用户在编辑图片时,从终端存储的图片库中选择图片,获取所述图片中的每个包含有人脸的子图像。For example, when the user is taking a photo, the terminal may acquire a sub-image including a human face in the view interface of the terminal camera; or, when editing the picture, the user selects a picture from the picture library stored in the terminal to obtain the picture. Each of them contains a sub-image of a human face.
步骤202、识别出所述至少一个子图像中的人脸,按照预设规则对所述至少一个子图像中人脸进行编号。Step 202: Identify a face in the at least one sub-image, and number the faces in the at least one sub-image according to a preset rule.
这里,终端识别出所述每个子图像中的人脸,具体可以为识别出每个子图像中的人脸信息;所述人脸信息包括但不限于人脸位置信息、轮廓特征信息、色彩特征信息等等;按照预设规则对识别出的人脸进行编号,例如按照从左到有的顺序编号,或者从前到后的顺序编号,或者从大到小的顺序编号等等。在编号完成后可通过特定方式通知用户(例如可通过显示屏显示人脸对应的编号,或者通过语音输出人脸对应的编号等等);其中,本实施例中的预设编号规则可以根据用户的需求进行设置,这里举一例子来说明。Here, the terminal identifies the face in each of the sub-images, specifically, the face information in each sub-image is identified; the face information includes but is not limited to face position information, contour feature information, and color feature information. Etc.; the recognized faces are numbered according to preset rules, for example, from left to right, or from front to back, or from large to small. After the numbering is completed, the user can be notified in a specific manner (for example, the number corresponding to the face can be displayed through the display screen, or the number corresponding to the face can be output by voice, etc.); wherein the preset numbering rule in this embodiment can be based on the user. The requirements are set, here is an example to illustrate.
图3为本发明图像处理方法实施例二的终端屏幕上显示人脸的第一示意图,图4为本发明图像处理方法实施例二的终端屏幕上显示人脸的第二示意图;如图3和图4所示,终端识别出屏幕上显示的图像中的5张人脸,并按照预设编号规则对5张人脸进行编号;其中,所述预设编号规则为按
照用户面对屏幕时从用户的左手边到右手边的顺序依次在图像中出现的人脸从1开始进行编号。3 is a first schematic diagram of displaying a human face on a terminal screen according to Embodiment 2 of the image processing method of the present invention, and FIG. 4 is a second schematic diagram of displaying a human face on a terminal screen according to Embodiment 2 of the image processing method of the present invention; As shown in FIG. 4, the terminal recognizes five faces in the image displayed on the screen, and numbers five faces according to a preset numbering rule; wherein the preset numbering rule is
Faces appearing in the image in order from the user's left hand side to the right hand side when the user faces the screen are numbered starting from 1.
具体的,当终端屏幕采用竖屏显示模式时,如图3所示,从用户的左手边到右手边的顺序(图3中箭头的方向)依次对5张人脸进行编号,这5张人脸从左手边到右手边编号依次为1、2、3、4、5;当终端屏幕采用横屏显示模式时,如图4所示,从用户的左手边到右手边的顺序(图4中箭头的方向)依次对5张人脸进行编号,这5张人脸从左手边到右手边编号依次为1、2、3、4、5。Specifically, when the terminal screen adopts the vertical screen display mode, as shown in FIG. 3, the five faces are sequentially numbered from the left-hand side to the right-hand side of the user (the direction of the arrow in FIG. 3). The number from the left hand side to the right hand side is 1, 2, 3, 4, 5; when the terminal screen adopts the horizontal screen display mode, as shown in Figure 4, the order from the user's left hand side to the right hand side (Figure 4 The directions of the arrows are sequentially numbered for five faces, which are numbered 1, 2, 3, 4, and 5 from the left hand side to the right hand side.
步骤203、获得输入的音频数据,转换所述音频数据为输入指令;根据所述输入指令、人脸编号及预设的图像处理对应规则对相应的子图像中的人脸进行图像美化处理。Step 203: Obtain input audio data, convert the audio data into an input instruction, and perform image beautification processing on the face in the corresponding sub-image according to the input instruction, the face number, and the preset image processing corresponding rule.
这里,所述终端对图像中的人脸进行编号后提示(例如通过语音提示)用户当前人脸编号完成。进一步地,用户通过终端的麦克风输入语音信息;则所述终端获得音频数据。本实施例中,获得的音频数据至少包括第一音频数据,所述第一音频数据表征人脸编号,或者与人脸编号对应的人脸。则用户输入第一音频数据,终端获取到用户的第一音频数据后会按照预先设置好的预设的图像处理对应规则对所述第一音频数据对应的输入指令选定图像中需要图像处理的人脸分别进行图像处理。Here, the terminal prompts (for example, by voice prompting) the user's current face number after numbering the face in the image. Further, the user inputs voice information through the microphone of the terminal; then the terminal obtains audio data. In this embodiment, the obtained audio data includes at least first audio data, and the first audio data represents a face number, or a face corresponding to the face number. The user inputs the first audio data, and after the terminal acquires the first audio data of the user, the image is processed in the selected image corresponding to the input instruction corresponding to the first audio data according to a preset preset image processing corresponding rule. The face is separately processed by the image.
其中,所述图像处理对应规则可以为表格形式存储在终端中,用户可以按照自己的需求对所述图像处理对应规则进行设置。以表1中的图像处理对应规则所示为例。终端在对图像中的人脸进行编号完成后,可通过语音输出提示用户“当前人脸编号完成”,这时,假设用户想要对当前图像中编号2和编号3的人脸进行图像美化处理,则可以对终端输入语音“王二”,在第一单位时间(例如1秒)后再对终端输入语音“李三”;终端在确定输入语音完毕后,将获得的音频数据“王二”和“李三”与表1所示的图像
处理对应规则进行匹配,将“王二”对应的2号人脸进行美白程度10%、大眼比例20%、瘦脸程度13%的图像美化处理;将“李三”对应的3号人脸进行磨皮程度31%、大眼比例40%的图像美化处理。进一步地,终端对图像中的待需要图像美化处理的人脸处理完成后,通过语音提示用户“当前图像美化处理已经完成”。其中,所述第一单位时间可以按照用户的需求进行设置,这里不加以限定。The image processing correspondence rule may be stored in a terminal in a form of a table, and the user may set the image processing corresponding rule according to his own needs. Take the example shown in the image processing correspondence rule in Table 1. After the terminal numbers the faces in the image, the terminal can prompt the user to “current face number completion” through voice output. At this time, assume that the user wants to perform image beautification on the faces of number 2 and number 3 in the current image. , the voice "Wang Er" can be input to the terminal, and the voice "Li San" is input to the terminal after the first unit time (for example, 1 second); after the terminal determines that the input voice is completed, the audio data "Wang Er" will be obtained. And "Li San" and the images shown in Table 1
The corresponding rules are processed to match, and the face No. 2 corresponding to "Wang Er" is subjected to beautifying the image with a whitening degree of 10%, a large eye ratio of 20%, and a face-lifting degree of 13%; the No. 3 face corresponding to "Li San" is performed. Image landscaping with a degree of dermabrasion of 31% and a large eye ratio of 40%. Further, after the terminal finishes processing the face to be in need of the image beautification process in the image, the user prompts the user to “current image beautification processing has been completed”. The first unit time can be set according to the needs of the user, which is not limited herein.
表1Table 1
步骤204、用户保存处理后的图像。Step 204: The user saves the processed image.
这里,在终端发出表征“当前图像美化处理已经完成”提示信息后;
在所述终端处于拍照状态时,用户可以按下拍照键或者通过语音控制进行拍照并对图像美化处理后的图像进行保存;在所述终端处于图片编辑状态时,用户可以对图像美化处理后的图像进行保存。Here, after the terminal issues a prompt message indicating that “the current image beautification process has been completed”;
When the terminal is in the photographing state, the user can press the camera button or take a photo control to save the image after the image is beautified; when the terminal is in the image editing state, the user can beautify the image after the image is processed. The image is saved.
本发明实施例提供的图像处理方法,实现了根据用户需求对图像中需要进行图像美化处理的人脸进行图像美化处理处理,而对不需要图像美化处理的人脸不进行图像美化处理,另外,用户可通过语音控制图像美化处理的过程,提升了用户的操作体验。The image processing method provided by the embodiment of the invention implements image beautification processing on a face that needs to be subjected to image beautification processing according to user requirements, and does not perform image beautification processing on a face that does not require image beautification processing. Users can control the process of image beautification through voice, which enhances the user's operating experience.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例所述的图像处理方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the image processing method according to the embodiment of the invention.
图5为本发明图像处理方法实施例三的流程图,如图5所示,所述方法可以包括:FIG. 5 is a flowchart of Embodiment 3 of an image processing method according to the present invention. As shown in FIG. 5, the method may include:
步骤301、获取图像中的包含有人脸的至少一个子图像;其中,所述至少一个子图像分别对应所述图像中的至少一个人脸。Step 301: Acquire at least one sub-image including a human face in the image; wherein the at least one sub-image respectively corresponds to at least one human face in the image.
例如,用户在进行拍照时,终端可以获取终端摄像头的取景界面中的每个包含有人脸的子图像;或者,用户在编辑图片时,从终端存储的图片库中选择图片,获取所述图片中的每个包含有人脸的子图像。For example, when the user is taking a photo, the terminal may acquire a sub-image including a human face in the view interface of the terminal camera; or, when editing the picture, the user selects a picture from the picture library stored in the terminal to obtain the picture. Each of them contains a sub-image of a human face.
步骤302、识别出所述至少一个子图像中的人脸,按照预设规则对所述至少一个子图像中人脸进行编号。Step 302: Identify a face in the at least one sub-image, and number the faces in the at least one sub-image according to a preset rule.
这里,终端识别出所述每个子图像中的人脸,具体可以为识别出每个子图像中的人脸信息;所述人脸信息包括但不限于人脸位置信息、轮廓特征信息、色彩特征信息等等;按照预设规则对识别出的人脸进行编号,例如按照从左到有的顺序编号,或者从前到后的顺序编号,或者从大到小的顺序编号等等。在编号完成后可通过特定方式通知用户(例如可通过显示屏显示人脸对应的编号,或者通过语音输出人脸对应的编号等等);其中,
本实施例中的预设编号规则可以根据用户的需求进行设置。具体的,本步骤中所述按照预设规则对所述至少一个子图像中人脸进行编号可参照步骤202中所述,这里不再赘述。Here, the terminal identifies the face in each of the sub-images, specifically, the face information in each sub-image is identified; the face information includes but is not limited to face position information, contour feature information, and color feature information. Etc.; the recognized faces are numbered according to preset rules, for example, from left to right, or from front to back, or from large to small. After the numbering is completed, the user can be notified in a specific manner (for example, the number corresponding to the face can be displayed through the display screen, or the number corresponding to the face can be output by voice, etc.);
The preset numbering rule in this embodiment can be set according to the needs of the user. Specifically, the numbering of the face in the at least one sub-image according to the preset rule may be referred to in step 202, and details are not described herein again.
步骤303、根据所述输入指令中包括的编号,获得与所述编号匹配的人脸编号,将所述人脸编号对应的子图像中的人脸确定为待进行图像美化处理的人脸。Step 303: Obtain a face number matching the number according to the number included in the input instruction, and determine a face in the sub-image corresponding to the face number as a face to be subjected to image beautification processing.
这里,所述终端对图像中的人脸进行编号后提示(例如通过语音提示)用户当前人脸编号完成。进一步地,用户通过终端的麦克风输入语音信息;则所述终端获得音频数据。本实施例中,获得的音频数据至少包括第二音频数据和第三音频数据;所述第二音频数据表征人脸编号,或者与人脸编号对应的人脸;所述第三音频数据表征相应的图像处理方式。则用户输入第二音频数据;终端获取到用户的第二音频数据后会按照预先设置好的第二图像处理对应规则对所述第二音频数据对应的输入指令选定图像中需要图像处理的人脸。Here, the terminal prompts (for example, by voice prompting) the user's current face number after numbering the face in the image. Further, the user inputs voice information through the microphone of the terminal; then the terminal obtains audio data. In this embodiment, the obtained audio data includes at least second audio data and third audio data; the second audio data represents a face number, or a face corresponding to a face number; and the third audio data represents a corresponding The way the image is processed. The user inputs the second audio data; after acquiring the second audio data of the user, the terminal selects the image corresponding to the input instruction corresponding to the second audio data according to the preset second image processing corresponding rule. face.
其中,所述第二图像处理对应规则可以为表格形式存储在终端中,用户可以按照自己的需求对所述第二图像处理对应规则进行设置。以表2中的第二图像处理对应规则所示为例。所述终端在对图像中的人脸进行编号后,可通过语音输出提示用户“当前人脸编号完成,请输入需要图像美化处理的人脸标识指令”;这时,假设用户想要对当前图像中编号1、编号2和编号4的人脸进行图像美化处理,则可以对终端输入语音“1”,在第二单位时间(例如1秒)后对终端输入语音“2”,在第二单位时间(例如1秒)后再对终端输入语音“4”;终端在确定语音输入完毕后,将获得的音频数据“1”、“2”和“4”与预先设置的第二图像处理对应规则进行匹配,确定出用户需要图像美化处理的编号1、编号2和编号4的人脸,并通过语音提示信息(例如“当前已确定1、2、4号人脸”)通知用户图像美化处理
已完成。其中,所述第二单位时间可以按照用户的需求进行设置,这里不加以限定。The second image processing correspondence rule may be stored in a terminal in a form of a table, and the user may set the second image processing corresponding rule according to a requirement of the user. Take the example shown in the second image processing correspondence rule in Table 2 as an example. After the number of the face in the image is numbered, the terminal may prompt the user through the voice output that “the current face number is completed, please input a face recognition instruction that requires image beautification processing”; at this time, assume that the user wants to view the current image. If the faces of No. 1, No. 2, and No. 4 are subjected to image beautification, the voice "1" can be input to the terminal, and after the second unit time (for example, 1 second), the voice "2" is input to the terminal, in the second unit. After the time (for example, 1 second), the voice "4" is input to the terminal; after determining that the voice input is completed, the terminal obtains the audio data "1", "2", and "4" and the preset second image processing corresponding rule. Perform matching to determine the faces of number 1, number 2, and number 4 that the user needs to beautify the image, and notify the user of the image beautification by voice prompt information (for example, "currently determined faces 1, 2, and 4")
completed. The second unit time can be set according to the needs of the user, which is not limited herein.
第二音频数据Second audio data |
人脸编号Face |
11 | 11 |
22 | 22 |
33 | 33 |
44 | 44 |
55 | 55 |
…... | …... |
表2Table 2
步骤304、根据所述输入指令中包括图像美化处理指令,获得所述预设的图像处理对应规则中与所述图像美化处理指令对应的第一处理规则,按照所述第一处理规则对确定的人脸进行图像美化处理。Step 304: Obtain a first processing rule corresponding to the image beautification processing instruction in the preset image processing corresponding rule according to the image beautification processing instruction in the input instruction, and determine the first processing rule according to the first processing rule The face is imaged and treated.
本实施例中,所述终端在确定出图像中需要图像美化处理的人脸并通知用户后,提示用户继续输入语音指令,即输入第三音频数据;终端获取到用户的第三音频数据后会按照预先设置好的第三图像处理对应规则对步骤303中已经确定的人脸进行图像美化处理。In this embodiment, after determining the face that needs image beautification processing in the image and notifying the user, the terminal prompts the user to continue inputting the voice instruction, that is, inputting the third audio data; the terminal acquires the third audio data of the user. The image beautification processing is performed on the face that has been determined in step 303 in accordance with the preset third image processing correspondence rule.
其中,所述第三图像处理对应规则可以为表格形式存储在终端中,用户可以按照自己的需求对所述第三图像处理对应规则进行设置。以表3中的第三图像处理对应规则所述为例。本步骤参照步骤303中的示例进行说明。所述终端在确定出图像中需要美颜处理的编号1、编号2和编号4的人脸并通知用户后,可通过语音提示信息(例如“继续输入图像美化处理指令”)通知用户继续输入语音指令;这时,假设用户要对所述图像中编号1和编号2的人脸进行同一程度A的美颜处理,编号4的人脸进行程度B的图像美化处理,即先对所述终端输入语音“A”,在第三单位时间(例如1
秒)后接着对终端输入语音“A”,在第三单位时间(例如1秒)后再对终端输入语音“B”;所述终端在确定语音输入完毕后,将获得的音频数据“A”、“A”和“B”与预先设置的第三图像处理对应规则进行匹配,确定对编号1和编号2的人脸进行磨皮程度为10%、大眼比例为10%、瘦脸程度10%的图像美化处理,对编号4的人脸进行美白程度为20%、磨皮程度为20%、大眼比例为20%、瘦脸程度20%的图像美化处理,并通过语音提示信息(“已对1、2、4号人脸分别美颜处理完成”)通知用户图像美化处理已完成。其中,所述第三单位时间可以按照用户的需求进行设置,在此不加以限定。The third image processing correspondence rule may be stored in a terminal in a form of a table, and the user may set the third image processing corresponding rule according to a requirement of the user. Take the third image processing correspondence rule in Table 3 as an example. This step is explained with reference to the example in step 303. After determining the face number 1 , number 2 and number 4 of the image that needs to be processed in the image and notifying the user, the terminal may notify the user to continue to input the voice through the voice prompt information (for example, “continue input image beautification processing instruction”). In this case, it is assumed that the user wants to perform the same degree of beauty processing on the face numbered 1 and number 2 in the image, and the face of the number 4 performs the image beautification processing of the degree B, that is, input to the terminal first. Voice "A" in the third unit time (for example 1
Secondly, the voice "A" is input to the terminal, and after the third unit time (for example, 1 second), the voice "B" is input to the terminal; after determining that the voice input is completed, the terminal obtains the audio data "A". , "A" and "B" are matched with the preset third image processing corresponding rule, and it is determined that the face number of the number 1 and the number 2 is 10%, the large eye ratio is 10%, and the face length is 10%. The image is beautified, and the number of the face of the number 4 is 20% whitening, the degree of dermabrasion is 20%, the ratio of the big eye is 20%, and the face of the face is 20%, and the message is presented by voice ("already The faces of 1, 2, and 4 are processed separately.) The user is notified that the image beautification process has been completed. The third unit time can be set according to the needs of the user, and is not limited herein.
表3table 3
步骤305、用户保存处理后的图像。Step 305: The user saves the processed image.
这里,在终端发出表征“当前图像美化处理已经完成”提示信息后;在所述终端处于拍照状态时,用户可以按下拍照键或者通过语音控制进行拍照并对图像美化处理后的图像进行保存;在所述终端处于图片编辑状态时,用户可以对图像美化处理后的图像进行保存。Here, after the terminal issues a prompt message indicating that “the current image beautification process has been completed”; when the terminal is in the photographing state, the user can press the photographing button or take a photo control to perform photographing and save the image after the image beautification processing; When the terminal is in the picture editing state, the user can save the image after the image beautification process.
本发明实施例提供的图像处理方法,实现了根据用户需求对图像中需要进行图像美化处理的人脸进行图像美化处理处理,而对不需要图像美化处理的人脸不进行图像美化处理,另外,用户可通过语音控制图像美化处理的过程,提升了用户的操作体验。The image processing method provided by the embodiment of the invention implements image beautification processing on a face that needs to be subjected to image beautification processing according to user requirements, and does not perform image beautification processing on a face that does not require image beautification processing. Users can control the process of image beautification through voice, which enhances the user's operating experience.
本发明实施例还提供了一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行本发明实施例所述的图像处理方法。The embodiment of the invention further provides a computer storage medium, wherein the computer storage medium stores computer executable instructions, and the computer executable instructions are configured to execute the image processing method according to the embodiment of the invention.
图6为本发明图像处理终端实施例的结构示意图,如图6所示,本发明的图像处理终端06可以包括:获取模块061及处理模块062;其中,FIG. 6 is a schematic structural diagram of an embodiment of an image processing terminal according to the present invention. As shown in FIG. 6, the image processing terminal 06 of the present invention may include: an obtaining module 061 and a processing module 062;
所述获取模块061,配置为获取图像中的包含有人脸的至少一个子图像;其中,所述至少一个子图像分别对应所述图像中的至少一个人脸;The acquiring module 061 is configured to acquire at least one sub-image including a human face in an image, where the at least one sub-image respectively corresponds to at least one human face in the image;
所述处理模块062,配置为获得输入指令,根据所述输入指令对所述获取模块获取的所述至少一个子图像中相应的子图像中的人脸进行图像处理。The processing module 062 is configured to obtain an input instruction, and perform image processing on a face in a corresponding sub-image of the at least one sub-image acquired by the acquiring module according to the input instruction.
作为一种实施方式,所述终端还包括:识别模块063;其中,
As an implementation manner, the terminal further includes: an identification module 063;
所述识别模块063,配置为识别出所述至少一个子图像中的人脸,按照预设规则对所述至少一个子图像中人脸进行编号。The identification module 063 is configured to identify a face in the at least one sub-image, and number the faces in the at least one sub-image according to a preset rule.
进一步地,所述处理模块062,配置为获得输入的音频数据,转换所述音频数据为输入指令;根据所述输入指令、所述识别模块对所述至少一个子图像进行的人脸编号及预设的图像处理对应规则对相应的子图像中的人脸进行图像美化处理。Further, the processing module 062 is configured to obtain input audio data, and convert the audio data into an input instruction; according to the input instruction, the face number and pre-preparation performed by the identification module on the at least one sub-image The image processing corresponding rule is used to perform image beautification processing on the face in the corresponding sub image.
进一步地,所述处理模块062,配置为根据所述输入指令中包括的编号,获得与所述编号匹配的人脸编号,将所述人脸编号对应的子图像中的人脸确定为待进行图像美化处理的人脸;根据所述输入指令中包括图像美化处理指令,获得所述预设的图像处理对应规则中与所述图像美化处理指令对应的第一处理规则,按照所述第一处理规则对确定的人脸进行图像美化处理。Further, the processing module 062 is configured to obtain a face number matching the number according to the number included in the input instruction, and determine a face in the sub-image corresponding to the face number as to be performed And a first processing rule corresponding to the image beautification processing instruction in the preset image processing corresponding rule, according to the first processing, according to the image rendering processing instruction included in the input instruction, The rule performs image beautification on the determined face.
本实施例中,所述图像处理包括:美白处理、磨皮处理、大眼比例处理、瘦脸处理其中的至少一个。In this embodiment, the image processing includes at least one of whitening processing, dermabrasion processing, large-eye proportional processing, and face-lift processing.
本领域技术人员应当理解,本发明实施例的终端中各处理模块的功能,可参照前述图像处理方法的相关描述而理解,本发明实施例的终端中各处理模块,可通过实现本发明实施例所述的功能的模拟电路而实现,也可以通过执行本发明实施例所述的功能的软件在智能终端上的运行而实现。A person skilled in the art should understand that the functions of the processing modules in the terminal of the embodiment of the present invention can be understood by referring to the related description of the foregoing image processing method, and the processing modules in the terminal of the embodiment of the present invention can implement the embodiments of the present invention. The function of the analog circuit is implemented, and can also be implemented by running the software of the function described in the embodiment of the present invention on the smart terminal.
在实际应用中,所述获取模块061、处理模块062及识别模块063可由位于终端上的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等器件实现。In an actual application, the obtaining module 061, the processing module 062, and the identifying module 063 may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP), or a field programmable gate array located on the terminal. (FPGA) and other device implementations.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘
存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the present invention may employ computer-usable storage media (including but not limited to disks) in one or more of the computer-usable program code embodied therein.
A form of computer program product embodied on a memory and optical storage, etc.).
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
本发明实施例通过获取图像中的包含有人脸的至少一个子图像;其中,所述至少一个子图像分别对应所述图像中的至少一个人脸;获得输入指令,根据所述输入指令对相应的子图像中的人脸进行图像处理。如此,采用本发明实施例的技术方案,实现了根据用户需求对图像中需要进行图像美化
处理的人脸进行图像美化处理处理,提升了用户的操作体验。
The embodiment of the present invention acquires at least one sub-image including a human face in an image; wherein the at least one sub-image respectively corresponds to at least one human face in the image; obtaining an input instruction, corresponding to the input instruction according to the input instruction The face in the sub image is image processed. In this way, the technical solution of the embodiment of the present invention is used to realize image beautification in an image according to user requirements.
The processed face is subjected to image beautification processing, which improves the user's operating experience.
Claims (11)
- 一种图像处理方法,所述方法包括:An image processing method, the method comprising:获取图像中的包含有人脸的至少一个子图像;其中,所述至少一个子图像分别对应所述图像中的至少一个人脸;Acquiring at least one sub-image including a human face in the image; wherein the at least one sub-image respectively corresponds to at least one human face in the image;获得输入指令,根据所述输入指令对相应的子图像中的人脸进行图像处理。Obtaining an input instruction, and performing image processing on a face in the corresponding sub image according to the input instruction.
- 根据权利要求1所述的方法,其中,获取图像中的包含有人脸的至少一个子图像之后,所述方法还包括:The method according to claim 1, wherein after acquiring at least one sub-image including a human face in the image, the method further comprises:识别出所述至少一个子图像中的人脸,按照预设规则对所述至少一个子图像中人脸进行编号。Recognizing a face in the at least one sub-image, numbering the faces in the at least one sub-image according to a preset rule.
- 根据权利要求2所述的方法,其中,所述获得输入指令,包括:The method of claim 2 wherein said obtaining an input instruction comprises:获得输入的音频数据,转换所述音频数据为输入指令;Obtaining input audio data, converting the audio data into an input instruction;相应的,所述根据所述输入指令对相应的子图像中的人脸进行图像处理,包括:Correspondingly, the image processing of the face in the corresponding sub image according to the input instruction comprises:根据所述输入指令、人脸编号及预设的图像处理对应规则对相应的子图像中的人脸进行图像美化处理。And performing image beautification processing on the face in the corresponding sub image according to the input instruction, the face number, and the preset image processing corresponding rule.
- 根据权利要求3所述的方法,其中,所述根据所述输入指令、人脸编号及预设的图像处理对应规则对相应的子图像中的人脸进行图像美化处理,包括:The method according to claim 3, wherein the image beautifying the face in the corresponding sub-image according to the input instruction, the face number and the preset image processing corresponding rule comprises:根据所述输入指令中包括的编号,获得与所述编号匹配的人脸编号,将所述人脸编号对应的子图像中的人脸确定为待进行图像美化处理的人脸;Obtaining, according to the number included in the input instruction, a face number matching the number, and determining a face in the sub-image corresponding to the face number as a face to be subjected to image beautification processing;根据所述输入指令中包括图像美化处理指令,获得所述预设的图像处理对应规则中与所述图像美化处理指令对应的第一处理规则,按照所述第一处理规则对确定的人脸进行图像美化处理。 And obtaining, according to the image instructing processing instruction in the input instruction, a first processing rule corresponding to the image beautification processing instruction in the preset image processing corresponding rule, and performing the determined face according to the first processing rule. Image beautification.
- 根据权利要求1所述的方法,其中,所述图像处理包括:美白处理、磨皮处理、大眼比例处理、瘦脸处理其中的至少一个。The method according to claim 1, wherein the image processing comprises at least one of whitening processing, dermabrasion processing, large-eye proportional processing, and face-lift processing.
- 一种图像处理终端,所述终端包括:An image processing terminal, the terminal comprising:获取模块,配置为获取图像中的包含有人脸的至少一个子图像;其中,所述至少一个子图像分别对应所述图像中的至少一个人脸;An acquiring module, configured to acquire at least one sub-image including a human face in an image; wherein the at least one sub-image respectively corresponds to at least one human face in the image;处理模块,配置为获得输入指令,根据所述输入指令对所述获取模块获取的所述至少一个子图像中相应的子图像中的人脸进行图像处理。And a processing module configured to obtain an input instruction, and perform image processing on the face in the corresponding sub image in the at least one sub image acquired by the acquiring module according to the input instruction.
- 根据权利要求6所述的终端,其中,所述终端还包括:The terminal of claim 6, wherein the terminal further comprises:识别模块,配置为识别出所述至少一个子图像中的人脸,按照预设规则对所述至少一个子图像中人脸进行编号。The identification module is configured to identify a face in the at least one sub-image, and number the faces in the at least one sub-image according to a preset rule.
- 根据权利要求7所述的终端,其中,所述处理模块,配置为获得输入的音频数据,转换所述音频数据为输入指令;根据所述输入指令、所述识别模块对所述至少一个子图像进行的人脸编号及预设的图像处理对应规则对相应的子图像中的人脸进行图像美化处理。The terminal according to claim 7, wherein the processing module is configured to obtain input audio data, convert the audio data into an input instruction, and according to the input instruction, the identification module pairs the at least one sub-image The performed face number and the preset image processing correspondence rule perform image beautification processing on the face in the corresponding sub image.
- 根据权利要求8所述的终端,其中,所述处理模块,配置为根据所述输入指令中包括的编号,获得与所述编号匹配的人脸编号,将所述人脸编号对应的子图像中的人脸确定为待进行图像美化处理的人脸;根据所述输入指令中包括图像美化处理指令,获得所述预设的图像处理对应规则中与所述图像美化处理指令对应的第一处理规则,按照所述第一处理规则对确定的人脸进行图像美化处理。The terminal according to claim 8, wherein the processing module is configured to obtain a face number matching the number according to a number included in the input instruction, and to use the face number corresponding to the face number The face is determined as a face to be subjected to image beautification processing; and the first processing rule corresponding to the image beautification processing instruction in the preset image processing correspondence rule is obtained according to the image instructing processing instruction included in the input instruction And performing image beautification processing on the determined face according to the first processing rule.
- 根据权利要求6所述的终端,其中,所述图像处理包括:美白处理、磨皮处理、大眼比例处理、瘦脸处理其中的至少一个。The terminal according to claim 6, wherein the image processing comprises at least one of whitening processing, dermabrasion processing, large-eye proportional processing, and face-lift processing.
- 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,所述计算机可执行指令配置为执行权利要求1至5任一项所述的图像处理方法。 A computer storage medium having computer executable instructions stored thereon, the computer executable instructions being configured to perform the image processing method of any one of claims 1 to 5.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510511578.8A CN106469291A (en) | 2015-08-19 | 2015-08-19 | Image processing method and terminal |
CN201510511578.8 | 2015-08-19 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2016145830A1 true WO2016145830A1 (en) | 2016-09-22 |
Family
ID=56920373
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2015/091737 WO2016145830A1 (en) | 2015-08-19 | 2015-10-12 | Image processing method, terminal and computer storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106469291A (en) |
WO (1) | WO2016145830A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107231470A (en) * | 2017-05-15 | 2017-10-03 | 努比亚技术有限公司 | Image processing method, mobile terminal and computer-readable recording medium |
CN108961156A (en) * | 2018-07-26 | 2018-12-07 | 北京小米移动软件有限公司 | The method and device of face image processing |
Families Citing this family (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11437032B2 (en) | 2017-09-29 | 2022-09-06 | Shanghai Cambricon Information Technology Co., Ltd | Image processing apparatus and method |
CN107820017B (en) * | 2017-11-30 | 2020-03-27 | Oppo广东移动通信有限公司 | Image shooting method and device, computer readable storage medium and electronic equipment |
US11630666B2 (en) | 2018-02-13 | 2023-04-18 | Shanghai Cambricon Information Technology Co., Ltd | Computing device and method |
US11397579B2 (en) | 2018-02-13 | 2022-07-26 | Shanghai Cambricon Information Technology Co., Ltd | Computing device and method |
EP3651077B1 (en) | 2018-02-13 | 2021-10-27 | Shanghai Cambricon Information Technology Co., Ltd | Computation device and method |
CN116991226A (en) | 2018-02-14 | 2023-11-03 | 上海寒武纪信息科技有限公司 | Control device, method and equipment of processor |
EP3624020A4 (en) | 2018-05-18 | 2021-05-05 | Shanghai Cambricon Information Technology Co., Ltd | Computing method and related product |
KR102470893B1 (en) | 2018-06-27 | 2022-11-25 | 상하이 캠브리콘 인포메이션 테크놀로지 컴퍼니 리미티드 | Debug method by breakpoint of on-chip code, chip debug system by on-chip processor and breakpoint |
US11966583B2 (en) | 2018-08-28 | 2024-04-23 | Cambricon Technologies Corporation Limited | Data pre-processing method and device, and related computer device and storage medium |
CN110968235B (en) * | 2018-09-28 | 2022-02-22 | 上海寒武纪信息科技有限公司 | Signal processing device and related product |
US11703939B2 (en) | 2018-09-28 | 2023-07-18 | Shanghai Cambricon Information Technology Co., Ltd | Signal processing device and related products |
CN110968285A (en) * | 2018-09-28 | 2020-04-07 | 上海寒武纪信息科技有限公司 | Signal processing device and related product |
CN111383638A (en) | 2018-12-28 | 2020-07-07 | 上海寒武纪信息科技有限公司 | Signal processing device, signal processing method and related product |
CN109978757B (en) * | 2019-03-20 | 2023-08-22 | 维沃移动通信有限公司 | Image processing method and terminal equipment |
US20200334522A1 (en) | 2019-04-18 | 2020-10-22 | Cambricon Technologies Corporation Limited | Data processing method and related products |
CN111832738B (en) | 2019-04-18 | 2024-01-09 | 中科寒武纪科技股份有限公司 | Data processing method and related product |
US11676028B2 (en) | 2019-06-12 | 2023-06-13 | Shanghai Cambricon Information Technology Co., Ltd | Neural network quantization parameter determination method and related products |
CN112085191B (en) | 2019-06-12 | 2024-04-02 | 上海寒武纪信息科技有限公司 | Method for determining quantization parameter of neural network and related product |
US12001955B2 (en) | 2019-08-23 | 2024-06-04 | Anhui Cambricon Information Technology Co., Ltd. | Data processing method, device, computer equipment and storage medium |
WO2021036905A1 (en) | 2019-08-27 | 2021-03-04 | 安徽寒武纪信息科技有限公司 | Data processing method and apparatus, computer equipment, and storage medium |
CN111681179A (en) * | 2020-05-22 | 2020-09-18 | 浙江大华技术股份有限公司 | Screen-side display method and device, computer equipment and computer-readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100067798A1 (en) * | 2008-09-16 | 2010-03-18 | Hao-Ping Hung | Method of facial image reproduction and related device |
CN103413270A (en) * | 2013-08-15 | 2013-11-27 | 北京小米科技有限责任公司 | Method and device for image processing and terminal device |
CN103605975A (en) * | 2013-11-28 | 2014-02-26 | 小米科技有限责任公司 | Image processing method and device and terminal device |
CN103885706A (en) * | 2014-02-10 | 2014-06-25 | 广东欧珀移动通信有限公司 | Method and device for beautifying face images |
CN104537630A (en) * | 2015-01-22 | 2015-04-22 | 厦门美图之家科技有限公司 | Method and device for image beautifying based on age estimation |
-
2015
- 2015-08-19 CN CN201510511578.8A patent/CN106469291A/en active Pending
- 2015-10-12 WO PCT/CN2015/091737 patent/WO2016145830A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100067798A1 (en) * | 2008-09-16 | 2010-03-18 | Hao-Ping Hung | Method of facial image reproduction and related device |
CN103413270A (en) * | 2013-08-15 | 2013-11-27 | 北京小米科技有限责任公司 | Method and device for image processing and terminal device |
CN103605975A (en) * | 2013-11-28 | 2014-02-26 | 小米科技有限责任公司 | Image processing method and device and terminal device |
CN103885706A (en) * | 2014-02-10 | 2014-06-25 | 广东欧珀移动通信有限公司 | Method and device for beautifying face images |
CN104537630A (en) * | 2015-01-22 | 2015-04-22 | 厦门美图之家科技有限公司 | Method and device for image beautifying based on age estimation |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107231470A (en) * | 2017-05-15 | 2017-10-03 | 努比亚技术有限公司 | Image processing method, mobile terminal and computer-readable recording medium |
CN108961156A (en) * | 2018-07-26 | 2018-12-07 | 北京小米移动软件有限公司 | The method and device of face image processing |
CN108961156B (en) * | 2018-07-26 | 2023-03-14 | 北京小米移动软件有限公司 | Method and device for processing face image |
Also Published As
Publication number | Publication date |
---|---|
CN106469291A (en) | 2017-03-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016145830A1 (en) | Image processing method, terminal and computer storage medium | |
US10565763B2 (en) | Method and camera device for processing image | |
KR20210110533A (en) | Method and apparatus for providing virtual plastic surgery sns service | |
WO2016110199A1 (en) | Expression migration method, electronic device and system | |
WO2018076622A1 (en) | Image processing method and device, and terminal | |
WO2018153294A1 (en) | Face tracking method, storage medium, and terminal device | |
US10552593B2 (en) | Face verification method and electronic device | |
GB2523891A (en) | Interactive user gesture inputs | |
WO2020119665A1 (en) | Facial muscle training method and apparatus, and electronic device | |
WO2019000908A1 (en) | Skin checking device, product information determination method, device and system | |
WO2022143387A1 (en) | Display control method and apparatus, electronic device, and medium | |
CN108021905A (en) | image processing method, device, terminal device and storage medium | |
WO2020125217A1 (en) | Expression recognition method and apparatus and recommendation method and apparatus | |
CN108363939A (en) | The acquisition methods and acquisition device of characteristic image, user authen method | |
JP2021534497A (en) | Personal identification methods, computer-readable storage media, terminal devices and devices | |
WO2018068623A1 (en) | Machine learning method and system | |
CN105931204B (en) | Picture restoring method and system | |
CN114861241A (en) | Anti-peeping screen method based on intelligent detection and related equipment thereof | |
CN106548117A (en) | A kind of face image processing process and device | |
CN109087240B (en) | Image processing method, image processing apparatus, and storage medium | |
CN112381064B (en) | Face detection method and device based on space-time diagram convolutional network | |
CN111373409B (en) | Method and terminal for obtaining color value change | |
CN110162372B (en) | Virtual key creation method and related equipment | |
WO2017201999A1 (en) | File encryption method, device, terminal and storage medium | |
KR102495889B1 (en) | Method for detecting facial wrinkles using deep learning-based wrinkle detection model trained according to semi-automatic labeling and apparatus for the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15885202 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 15885202 Country of ref document: EP Kind code of ref document: A1 |