WO2016180224A1 - Method and device for processing image of person - Google Patents

Method and device for processing image of person Download PDF

Info

Publication number
WO2016180224A1
WO2016180224A1 PCT/CN2016/080220 CN2016080220W WO2016180224A1 WO 2016180224 A1 WO2016180224 A1 WO 2016180224A1 CN 2016080220 W CN2016080220 W CN 2016080220W WO 2016180224 A1 WO2016180224 A1 WO 2016180224A1
Authority
WO
WIPO (PCT)
Prior art keywords
face
face region
area
region
foreground
Prior art date
Application number
PCT/CN2016/080220
Other languages
French (fr)
Chinese (zh)
Inventor
耿达维
王威
王亮
Original Assignee
北京锤子数码科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京锤子数码科技有限公司 filed Critical 北京锤子数码科技有限公司
Publication of WO2016180224A1 publication Critical patent/WO2016180224A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/172Classification, e.g. identification

Definitions

  • the present application relates to the field of image processing technologies, and in particular, to a method and device for processing a person image.
  • the user In daily life, people usually take photos through terminals such as mobile phones, tablets, and cameras.
  • the user In the prior art, in order to obtain a character image with better visual effect, the user generally sets a shooting mode of the relevant application, for example, “beauty mode”, so that the terminal is set according to the user after the shooting is performed.
  • the shooting mode processes the captured image of the person and presents the processed person image to the user.
  • the embodiment of the present application discloses an image processing method and apparatus, so as to be able to effectively distinguish individual characters in the captured image.
  • the embodiment of the present application discloses a method for processing a character image, and the method includes:
  • the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm and/or according to a user's selection operation.
  • the differentiated background face region is processed, so that the visual effect of the differentiated background face region is deteriorated.
  • the target image is obtained by:
  • a target image is obtained from the stored image set in accordance with a user's selection operation for the stored image set.
  • the character image processing method further includes:
  • the image processed as described above for the background face area is stored and presented to the user.
  • the preset first image processing algorithm includes at least one of the following image processing modes:
  • the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm, including:
  • the first N1 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
  • the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm, including:
  • the face credibility is: a probability for indicating that the region is a face region;
  • the first N2 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
  • the character image processing method further includes:
  • the differentiated foreground face region is processed, so that the visual effect of the differentiated foreground face region is improved.
  • an embodiment of the present application discloses a character image processing apparatus, and the device Set includes:
  • a face area obtaining module configured to obtain a face area in the target image according to a preset face recognition algorithm
  • a face area distinguishing module configured to divide the obtained face area into a foreground according to a preset classification algorithm and/or according to a user's selection operation, if the obtained number of face regions is not less than two Face area and background face area;
  • the first face area processing module is configured to process the differentiated background face area according to the preset first image processing algorithm, so that the visual effect of the differentiated background face area is deteriorated.
  • the character image processing apparatus further includes:
  • a target image obtaining module configured to determine image data acquired by the image capturing device in real time as a target image
  • a target image is obtained from the stored image set according to a user's selection operation for the stored image set.
  • the character image processing apparatus further includes:
  • the image display module is configured to store the image processed by the background face region and display the image to the user.
  • the preset first image processing algorithm includes at least one of the following image processing modes:
  • the face area distinguishing module includes: a first face area area molecular module and/or a second face area area molecular module;
  • the first face region area molecular module is configured to divide the obtained face region into a foreground person according to a preset classification algorithm if the obtained number of face regions is not less than two. Face area and background face area;
  • the second human face region molecular module is used for the number of face regions obtained by not less than two In the case of the user's selection operation, the obtained face area is divided into a foreground face area and a background face area;
  • the first face region region molecular module includes: a region area calculation unit, a first sorting unit, and a first face region determining unit;
  • the area calculation unit is configured to separately calculate the area of each of the obtained face regions
  • the first sorting unit is configured to sort the obtained face regions in descending order of area of the area
  • the first face region determining unit is configured to determine a front N1 personal face region in the sorting result as a foreground face region according to the sorting result and the preset first number N1, and determine the remaining face region as a background. Face area.
  • the face area distinguishing module includes: a first face area area molecular module and/or a second face area area molecular module;
  • the first face region area molecular module is configured to divide the obtained face region into a foreground person according to a preset classification algorithm if the obtained number of face regions is not less than two. Face area and background face area;
  • the second face region region molecular module is configured to divide the obtained face region into a foreground face region according to a user's selection operation in a case where the obtained number of face regions is not less than two. Background face area;
  • the first face region region molecular module includes: a face credibility obtaining unit, a second sorting unit, and a second face region determining unit;
  • the face credibility obtaining unit is configured to obtain the obtained credibility of the face corresponding to each face region, where the credibility of the face is: used to indicate that the region is a face region. Probability
  • the second sorting unit is configured to sort the obtained face regions in descending order of face trustworthiness
  • the second face region determining unit is configured to determine a front N2 personal face region in the sorting result as a foreground face region according to the sorting result and a preset second number N2, and determine the remaining face region as a background person Face area.
  • the character image processing apparatus further includes: a second face area processing module;
  • the second face area processing module is configured to process the differentiated foreground face area according to the preset second image processing algorithm, so that the visual effect of the differentiated foreground face area is improved. .
  • the embodiment of the present application discloses a terminal, where the terminal includes:
  • processor a memory, a communication interface, and a bus
  • the processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
  • the memory stores executable program code
  • the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory for:
  • the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm and/or according to a user's selection operation.
  • the differentiated background face region is processed, so that the visual effect of the differentiated background face region is deteriorated.
  • the embodiment of the present application further provides an application program for executing the character image processing method described in the embodiment of the present application at runtime.
  • the embodiment of the present application further provides a storage medium for storing an application, and the application is used to execute the character image processing method described in the embodiment of the present application.
  • the solution provided by the embodiment of the present application after obtaining the face region in the target image, if the number of the obtained face regions is not less than two, the obtained face region is divided into The foreground face area and the background face area process the differentiated background face area, so that the visual effect of the background face area is deteriorated. Since the visual effect of the background face area after processing is deteriorated, it is possible to provide a better visual effect from the reverse side to the foreground face area. Therefore, the solution provided in the embodiment of the present application can effectively distinguish the characters in the foreground face region in the target image, and can display the characters in the foreground face region with a relatively better visual effect.
  • FIG. 1 is a schematic flowchart diagram of a method for processing a character image according to an embodiment of the present application
  • Figure 2 is an original person image
  • Figure 3a is an image after identifying a face region in the image shown in Figure 2;
  • Figure 3b is an image after the face region in the image shown in Figure 3a is divided into a foreground face region and a background face region;
  • Figure 3c is an image of the background face area in the image shown in Figure 3b;
  • Figure 3d is another image of the background face region in the image shown in Figure 3b;
  • FIG. 4 is a schematic flowchart diagram of another method for processing a character image according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a character image processing apparatus according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another character image processing apparatus according to an embodiment of the present application.
  • FIG. 1 is a schematic flowchart of a method for processing a character image according to an embodiment of the present disclosure, where the method includes:
  • S101 Obtain a face region in the target image according to a preset face recognition algorithm.
  • the image data collected by the image acquisition device in real time may be determined as a target image
  • the image acquisition device may be a mobile phone with a camera, a tablet computer with a camera, a digital camera, a digital video camera, and the like.
  • the image captured by the mobile phone can be directly determined as the target image
  • the target image can also be obtained from the stored image set according to the user's selection operation for the stored image set.
  • the obtained face region is divided into the foreground face region and the background person according to a preset classification algorithm and/or according to a user's selection operation. Face area.
  • the position of the main character is generally higher, so that the face area of the main character in the captured image is generally larger than the face area of other characters in the image.
  • the obtained face region when the obtained face region is divided into a foreground face region and a background face region, the obtained face region may be The area is divided.
  • the area of each obtained face area is separately calculated, and the obtained face areas are sorted according to the area of the area from large to small, and then according to the sorting result and the preset first quantity N1,
  • the first N1 personal face area in the sort result is determined as the foreground face area, and the remaining face area is determined as the background face area.
  • the face region in the target image is obtained, it is not guaranteed to be completely accurate.
  • the face area in the target image is recognized.
  • the region can be calculated according to the feature information of the recognized face region. For the probability of a face region, this probability can be called face confidence.
  • the obtained face region when the obtained face region is divided into a foreground face region and a background face region, the obtained face may also be obtained according to the obtained face.
  • the face credibility of the area is differentiated.
  • the obtained face credibility corresponding to each face region is obtained, and the obtained face regions are sorted according to the order of the face credibility from large to small, and then according to the sorting result and the preset
  • the second number N2 determines the front N2 personal face region in the ranking result as the foreground face region, and determines the remaining face region as the background face region.
  • the face region when the obtained face region is divided into the foreground face region and the background face region, in addition to the above-mentioned region area and face credibility, the face region may also be considered.
  • the facial features such as the eyes, the nose, and the mouth in the obtained face region can be identified by the image feature extraction algorithm, the image edge extraction algorithm, and the like, and further based on the identified facial features.
  • the facial expression of the person can be determined. Specifically, the facial expression of the person can be determined by the shape of the eye, the shape of the mouth, and the like.
  • the obtained facial regions are sorted according to the order of the facial expressions of the characters from high to low, according to the sorting result and the preset third number N3,
  • the former N3 face area in the sort result is determined as the foreground face area, and the remaining face area is determined as the background face area.
  • the degree of facial expression of the character is used to indicate the degree of facial deformation of the person. For example, if the character's mouth is in a normally closed state, the facial expression of the character is less active, and if the character's mouth is in a large state, smiling Status, etc., the character's facial expression is more active and so on.
  • the preset first number, the preset second number, and the preset third number are integers not less than one.
  • the face region selected by the user may be determined as the foreground face region, and the obtained face region is obtained.
  • the face area that is not selected by the user is determined as the background face area.
  • the face area selected by the user may be determined as the background face area, and the obtained face area is not selected by the user. Determined as the foreground face area.
  • the face area selected by the user may include a face area, and may also include multiple face areas, which is not limited in this application.
  • the preset classification algorithm when the obtained face region is divided into the foreground face region and the background face region, the distinction of the face region can be completed without a user operation.
  • any classification algorithm may not be consistent with the ideal face region classification algorithm of all users. Therefore, in order to provide a better experience to the user in practical applications, it may be considered when distinguishing the face region.
  • the preset classification algorithm is combined with the user's selection operation, that is, after the foreground face region and the background face region are distinguished according to the preset classification algorithm, the user may perform a selection operation based on the above-mentioned discrimination result to further The foreground face area and the background face area obtained by the above distinction are adjusted to meet the real requirements of the user.
  • S103 Process the differentiated background face region according to the preset first image processing algorithm, so that the visual effect of the differentiated background face region is deteriorated.
  • the preset first image processing algorithm may include at least one of the following image processing modes:
  • the above deformation processing may include stretching processing, twist processing, enlargement processing, reduction processing, and the like.
  • the partial enlargement processing may be to enlarge the eyes, the mouth, the nose, and the like of the person.
  • the local reduction processing may be to reduce the eyes, mouth, nose, and the like of the person.
  • the processing performed on each face region may be the same process or a different process.
  • one or more image processing modes included in the preset first image processing algorithm may be selected to process the face region in the differentiated background face region.
  • the image processing mode When the image processing mode is selected for the face region in the background face region, the image processing mode may be randomly selected from the preset first image processing algorithm, or may be selected from the preset according to a preset processing mode.
  • the selected one of the first image processing algorithms may also be manually selected by the user, which is not limited in this application.
  • the image processed by the background face region may also be stored.
  • the image processed by the background face region may be stored, and the image may be displayed to the user.
  • the solution provided by the embodiment after obtaining the face region in the target image, if the number of the obtained face regions is not less than two, the obtained face region is divided into the foreground.
  • the face area and the background face area process the differentiated background face area, so that the visual effect of the background face area is deteriorated. Since the visual effect of the background face area after processing is deteriorated, it is possible to provide a better visual effect from the reverse side to the foreground face area. Therefore, by applying the solution provided by the embodiment, the person in the foreground face region in the target image can be effectively distinguished, and the person in the foreground face region can be displayed with a relatively better visual effect.
  • S101 face recognition is performed on the original person image shown in FIG. 2 according to a preset face recognition algorithm, and a face region in the image is obtained.
  • the face region in the original image shown in FIG. 2 obtained by the face recognition process is identified in the form of a rectangular frame.
  • the number of face regions obtained is seven, not less than two.
  • the face area identified in the figure is distinguished, and is divided into a foreground face area and a background face area.
  • the differentiated foreground face and background face regions are identified.
  • the identifier of the foreground face area is “F”, and the identifier of the background face area is “B”.
  • FIG. 3c the figure is an image obtained by obfuscating the background face region obtained in FIG. 3b;
  • FIG. 3d the figure is an image obtained by deforming the differentiated background face region in FIG. 3b.
  • FIG. 4 another character image processing party is provided.
  • the flow chart of the method is compared with the foregoing embodiments.
  • the method further includes:
  • S104 Process the differentiated foreground face region according to the preset second image processing algorithm, so that the visual effect of the differentiated foreground face region becomes better.
  • the preset second image processing algorithm may include: dermabrasion treatment, face skin area brightening processing, lip processing, and the like.
  • the foreground human face region is subjected to the process of making the background face region visually deteriorated, and the foreground face region obtained by the discrimination is made to make the foreground person
  • the processing of the visual effect of the face region is improved, so that not only the characters in the foreground face region in the target image can be effectively distinguished, but also the characters in the foreground face region can be displayed with better visual effects.
  • the embodiment of the present application further provides a character image processing apparatus.
  • FIG. 5 is a schematic structural diagram of a person image processing apparatus according to an embodiment of the present disclosure.
  • the device includes: a face area obtaining module 501, a face area distinguishing module 502, and a first face area processing module 503.
  • the face area obtaining module 501 is configured to obtain a face area in the target image according to a preset face recognition algorithm
  • the face region distinguishing module 502 is configured to: when the obtained number of face regions is not less than two, according to a preset classification algorithm and/or according to a user's selection operation, the obtained face region is divided into The foreground face area and the background face area;
  • the first face area processing module 503 is configured to process the differentiated background face area according to the preset first image processing algorithm, so that the visual effect of the differentiated background face area is deteriorated.
  • the character image processing apparatus may further include: a target image obtaining module (not shown).
  • the target image obtaining module is configured to determine image data collected by the image capturing device in real time as a target image
  • a target image is obtained from the stored image set according to a user's selection operation for the stored image set.
  • the character image processing apparatus may further include: an image display module (not shown).
  • the image display module is configured to store the image processed by the background face region and display the image to the user.
  • the preset first image processing algorithm may include at least one of the following image processing modes:
  • the face region distinguishing module 502 may include: a first face region region molecular module and/or a second face region region molecular module;
  • the first face region area molecular module is configured to divide the obtained face region into a foreground person according to a preset classification algorithm if the obtained number of face regions is not less than two. Face area and background face area;
  • the second face region region molecular module is configured to divide the obtained face region into a foreground face region according to a user's selection operation in a case where the obtained number of face regions is not less than two. Background face area;
  • the first face region region molecular module may include: a region area calculation unit, a first sorting unit, and a first face region determining unit;
  • the area calculation unit is configured to separately calculate the area of each of the obtained face regions
  • the first sorting unit is configured to sort the obtained face regions in descending order of area of the area
  • the first face region determining unit is configured to determine a front N1 personal face region in the sorting result as a foreground face region according to the sorting result and the preset first number N1, and determine the remaining face region as a background. Face area.
  • the face region distinguishing module 502 may include: a first face region region molecular model Block and/or second face region zone molecular module;
  • the first face region area molecular module is configured to divide the obtained face region into a foreground person according to a preset classification algorithm if the obtained number of face regions is not less than two. Face area and background face area;
  • the second face region region molecular module is configured to divide the obtained face region into a foreground face region according to a user's selection operation in a case where the obtained number of face regions is not less than two. Background face area;
  • the first face region region molecular module may include: a face credibility obtaining unit, a second sorting unit, and a second face region determining unit;
  • the face credibility obtaining unit is configured to obtain the obtained credibility of the face corresponding to each face region, where the credibility of the face is: obtained according to a preset face recognition algorithm. The probability obtained when the face region is used to indicate that the region is a face region;
  • the second sorting unit is configured to sort the obtained face regions in descending order of face trustworthiness
  • the second face region determining unit is configured to determine a front N2 personal face region in the sorting result as a foreground face region according to the sorting result and a preset second number N2, and determine the remaining face region as a background. Face area.
  • the solution provided by the embodiment after obtaining the face region in the target image, if the number of the obtained face regions is not less than two, the obtained face region is divided into the foreground.
  • the face area and the background face area process the differentiated background face area, so that the visual effect of the background face area is deteriorated. Since the visual effect of the background face area after processing is deteriorated, it is possible to provide a better visual effect from the reverse side to the foreground face area. Therefore, by applying the solution provided by the embodiment, the person in the foreground face region in the target image can be effectively distinguished, and the person in the foreground face region can be displayed with a relatively better visual effect.
  • FIG. 6 a schematic structural diagram of another character image processing apparatus is provided. Compared with the foregoing embodiments, the embodiment further includes: second face area processing. Module 504.
  • the second face area processing module 504 is configured to calculate according to a preset second image processing. The method processes the differentiated foreground face region, so that the visual effect of the differentiated foreground face region becomes better.
  • the foreground human face region is subjected to the process of making the background face region visually deteriorated, and the foreground face region obtained by the discrimination is made to make the foreground person
  • the processing of the visual effect of the face region is improved, so that not only the characters in the foreground face region in the target image can be effectively distinguished, but also the characters in the foreground face region can be displayed with better visual effects.
  • the embodiment of the present application further provides a terminal, where the terminal includes:
  • processor a memory, a communication interface, and a bus
  • the processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
  • the memory stores executable program code
  • the processor runs a program corresponding to the executable program code by reading executable program code stored in the memory for:
  • the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm and/or according to a user's selection operation.
  • the differentiated background face region is processed, so that the visual effect of the differentiated background face region is deteriorated.
  • the terminal obtains a target image by:
  • a target image is obtained from the stored image set in accordance with a user's selection operation for the stored image set.
  • the terminal is further configured to store the image processed by the background face region and display the image to the user.
  • the preset first image processing algorithm includes the following image processing methods. One less:
  • the obtained face region is divided into a foreground face region and a background face region, including:
  • the first N1 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
  • the obtained face region is divided into a foreground face region and a background face region, including:
  • the face credibility is: a probability for indicating that the region is a face region;
  • the first N2 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
  • the terminal is further configured to process the differentiated foreground face region according to the preset second image processing algorithm, so that the visual effect of the differentiated foreground face region becomes better.
  • the embodiment of the present application further provides an application program for executing the character image processing method provided by the embodiment of the present application at runtime.
  • the character image processing method includes:
  • the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm and/or according to a user's selection operation.
  • the differentiated background face region is processed, so that the visual effect of the differentiated background face region is deteriorated.
  • the target image is obtained by:
  • a target image is obtained from the stored image set in accordance with a user's selection operation for the stored image set.
  • the character image processing method further includes:
  • the image processed as described above for the background face area is stored and presented to the user.
  • the preset first image processing algorithm includes at least one of the following image processing methods:
  • the obtained face region is divided into a foreground face region and a background face region, including:
  • the first N1 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
  • the obtained face region is divided into a foreground face region and a background face region, including:
  • the face credibility is: a probability for indicating that the region is a face region;
  • the first N2 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
  • the character image processing method further includes:
  • the differentiated foreground face region is processed, so that the visual effect of the differentiated foreground face region is improved.
  • the embodiment of the present application further provides a storage medium for storing an application, the application It is used to perform the character image processing method provided by the embodiment of the present application.
  • the character image processing method includes:
  • the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm and/or according to a user's selection operation.
  • the differentiated background face region is processed, so that the visual effect of the differentiated background face region is deteriorated.
  • the target image is obtained by:
  • a target image is obtained from the stored image set in accordance with a user's selection operation for the stored image set.
  • the character image processing method further includes:
  • the image processed as described above for the background face area is stored and presented to the user.
  • the preset first image processing algorithm includes at least one of the following image processing methods:
  • the obtained face region is divided into a foreground face region and a background face region, including:
  • the first N1 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
  • the obtained face region is divided into a foreground face region and a background face region, including:
  • the face credibility Is: the probability of indicating that the area is a face area
  • the first N2 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
  • the character image processing method further includes:
  • the differentiated foreground face region is processed, so that the visual effect of the differentiated foreground face region is improved.
  • the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The present invention relates to the technical field of image processing. Disclosed are a method and device for processing an image of a person. The method comprises: acquiring a face region in a target image according to a preset face recognition algorithm; when the number of the acquired face regions is two or more, differentiating, according to a preset classification algorithm and/or a selection operation of a user, the acquired face regions into a foreground face region and a background face region; and processing, according to a preset first image processing algorithm, the background face region obtained by the differentiation, such that a visual effect of the background face region obtained by the differentiation worsens. The solution of the present invention effectively distinguishes an individual person in an image obtained via photographing.

Description

一种人物图像处理方法及装置Character image processing method and device
本申请要求于2015年5月11日提交中国专利局、申请号为201510235866.5发明名称为“一种人物图像处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201510235866.5, entitled "A Person Image Processing Method and Apparatus", filed on May 11, 2015, the entire contents of which is incorporated herein by reference. .
技术领域Technical field
本申请涉及图像处理技术领域,特别涉及一种人物图像处理方法及装置。The present application relates to the field of image processing technologies, and in particular, to a method and device for processing a person image.
背景技术Background technique
日常生活中,人们通常会通过手机、平板电脑、相机等终端拍摄照片。现有技术中,在拍摄人物之前,用户为了得到视觉效果较佳的人物图像,一般会通过设置相关应用的拍摄模式,例如,“美颜模式”,使得终端在进行拍摄之后,根据用户设置的拍摄模式对拍摄得到的人物图像进行处理,进而向用户呈现处理后的人物图像。In daily life, people usually take photos through terminals such as mobile phones, tablets, and cameras. In the prior art, in order to obtain a character image with better visual effect, the user generally sets a shooting mode of the relevant application, for example, “beauty mode”, so that the terminal is set according to the user after the shooting is performed. The shooting mode processes the captured image of the person and presents the processed person image to the user.
具体的,用户选定拍摄模式后,会对拍摄得到的人物图像中所有的人脸区域进行美化处理,然而在实际应用中,用户可能需要仅对其中的几个人脸区域进行美化处理,以突出这几个经过美化处理的人脸区域,所以,应用上述方式对拍摄得到的人物图像进行处理后,无法有效地区分出人物图像中的个别人物。Specifically, after the user selects the shooting mode, all the face regions in the captured person image are beautified, but in practical applications, the user may need to beautify only a few of the face regions to highlight These face areas that have been beautified are processed. Therefore, after the captured image of the person is processed in the above manner, the individual characters in the person image cannot be effectively distinguished.
发明内容Summary of the invention
本申请实施例公开了一种图像处理方法及装置,以能够有效地区分出拍摄得到的图像中的个别人物。The embodiment of the present application discloses an image processing method and apparatus, so as to be able to effectively distinguish individual characters in the captured image.
为达到上述目的,本申请实施例公开了一种人物图像处理方法,所述方法包括:To achieve the above objective, the embodiment of the present application discloses a method for processing a character image, and the method includes:
根据预设的人脸识别算法,获得目标图像中的人脸区域;Obtaining a face region in the target image according to a preset face recognition algorithm;
在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法和/或根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;In the case that the obtained number of face regions is not less than two, the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm and/or according to a user's selection operation. ;
根据预设的第一图像处理算法,对经区分得到的背景人脸区域进行处理,使得经区分得到的背景人脸区域的视觉效果变差。 According to the preset first image processing algorithm, the differentiated background face region is processed, so that the visual effect of the differentiated background face region is deteriorated.
在本申请的一种具体实现方式中,通过以下方式获得目标图像:In a specific implementation of the present application, the target image is obtained by:
将图像采集设备实时采集的图像数据确定为目标图像;Determining image data acquired by the image acquisition device in real time as a target image;
or
根据用户针对已存储图像集的选择操作,从所述已存储图像集中获得目标图像。A target image is obtained from the stored image set in accordance with a user's selection operation for the stored image set.
在本申请的一种具体实现方式中,所述人物图像处理方法还包括:In a specific implementation manner of the application, the character image processing method further includes:
存储上述对背景人脸区域进行处理后的图像,并向用户展示该图像。The image processed as described above for the background face area is stored and presented to the user.
在本申请的一种具体实现方式中,所述预设的第一图像处理算法中包含以下图像处理方式中的至少一种:In a specific implementation manner of the present application, the preset first image processing algorithm includes at least one of the following image processing modes:
对人脸区域进行模糊处理;Blurring the face area;
对人脸区域的局部或者全部进行形变处理;Deformation of part or all of the face area;
对人脸区域进行添加噪声处理。Add noise processing to the face area.
在本申请的一种具体实现方式中,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,包括:In a specific implementation manner of the present application, the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm, including:
分别计算所获得的各个人脸区域的区域面积;Calculating the area of each face area obtained separately;
对所获得的人脸区域按照区域面积由大到小的顺序进行排序;Sorting the obtained face regions in descending order of area;
根据排序结果和预设的第一数量N1,将排序结果中前N1个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。According to the sorting result and the preset first number N1, the first N1 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
在本申请的一种具体实现方式中,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,包括:In a specific implementation manner of the present application, the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm, including:
获得所获得的各个人脸区域对应的人脸可信度,其中,所述人脸可信度为:用于表示该区域为人脸区域的概率;Obtaining a face credibility corresponding to each of the obtained face regions, wherein the face credibility is: a probability for indicating that the region is a face region;
对所获得的人脸区域按照人脸可信度由大到小的顺序进行排序;Sorting the obtained face regions in descending order of face credibility;
根据排序结果和预设的第二数量N2,将排序结果中前N2个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。According to the sorting result and the preset second number N2, the first N2 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
在本申请的一种具体实现方式中,所述人物图像处理方法还包括:In a specific implementation manner of the application, the character image processing method further includes:
根据预设的第二图像处理算法,对经区分得到的前景人脸区域进行处理,使得经区分得到的前景人脸区域的视觉效果变好。According to the preset second image processing algorithm, the differentiated foreground face region is processed, so that the visual effect of the differentiated foreground face region is improved.
为达到上述目的,本申请实施例公开了一种人物图像处理装置,所述装 置包括:In order to achieve the above object, an embodiment of the present application discloses a character image processing apparatus, and the device Set includes:
人脸区域获得模块,用于根据预设的人脸识别算法,获得目标图像中的人脸区域;a face area obtaining module, configured to obtain a face area in the target image according to a preset face recognition algorithm;
人脸区域区分模块,用于在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法和/或根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;a face area distinguishing module, configured to divide the obtained face area into a foreground according to a preset classification algorithm and/or according to a user's selection operation, if the obtained number of face regions is not less than two Face area and background face area;
第一人脸区域处理模块,用于根据预设的第一图像处理算法,对经区分得到的背景人脸区域进行处理,使得经区分得到的背景人脸区域的视觉效果变差。The first face area processing module is configured to process the differentiated background face area according to the preset first image processing algorithm, so that the visual effect of the differentiated background face area is deteriorated.
在本申请的一种具体实现方式中,所述人物图像处理装置还包括:In a specific implementation of the present application, the character image processing apparatus further includes:
目标图像获得模块,用于将图像采集设备实时采集的图像数据确定为目标图像;a target image obtaining module, configured to determine image data acquired by the image capturing device in real time as a target image;
or
用于根据用户针对已存储图像集的选择操作,从所述已存储图像集中获得目标图像。A target image is obtained from the stored image set according to a user's selection operation for the stored image set.
在本申请的一种具体实现方式中,所述人物图像处理装置还包括:In a specific implementation of the present application, the character image processing apparatus further includes:
图像展示模块,用于存储上述对背景人脸区域进行处理后的图像,并向用户展示该图像。The image display module is configured to store the image processed by the background face region and display the image to the user.
在本申请的一种具体实现方式中,所述预设的第一图像处理算法中包含以下图像处理方式中的至少一种:In a specific implementation manner of the present application, the preset first image processing algorithm includes at least one of the following image processing modes:
对人脸区域进行模糊处理;Blurring the face area;
对人脸区域的局部或者全部进行形变处理;Deformation of part or all of the face area;
对人脸区域进行添加噪声处理。Add noise processing to the face area.
在本申请的一种具体实现方式中,所述人脸区域区分模块,包括:第一人脸区域区分子模块和/或第二人脸区域区分子模块;In a specific implementation manner of the present application, the face area distinguishing module includes: a first face area area molecular module and/or a second face area area molecular module;
其中,所述第一人脸区域区分子模块,用于在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The first face region area molecular module is configured to divide the obtained face region into a foreground person according to a preset classification algorithm if the obtained number of face regions is not less than two. Face area and background face area;
所述第二人脸区域区分子模块,用于在所获得的人脸区域数量不少于两 个的情况下,根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The second human face region molecular module is used for the number of face regions obtained by not less than two In the case of the user's selection operation, the obtained face area is divided into a foreground face area and a background face area;
具体的,所述第一人脸区域区分子模块,包括:区域面积计算单元、第一排序单元和第一人脸区域确定单元;Specifically, the first face region region molecular module includes: a region area calculation unit, a first sorting unit, and a first face region determining unit;
其中,所述区域面积计算单元,用于分别计算所获得的各个人脸区域的区域面积;The area calculation unit is configured to separately calculate the area of each of the obtained face regions;
所述第一排序单元,用于对所获得的人脸区域按照区域面积由大到小的顺序进行排序;The first sorting unit is configured to sort the obtained face regions in descending order of area of the area;
所述第一人脸区域确定单元,用于根据排序结果和预设的第一数量N1,将排序结果中前N1个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。The first face region determining unit is configured to determine a front N1 personal face region in the sorting result as a foreground face region according to the sorting result and the preset first number N1, and determine the remaining face region as a background. Face area.
在本申请的一种具体实现方式中,所述人脸区域区分模块,包括:第一人脸区域区分子模块和/或第二人脸区域区分子模块;In a specific implementation manner of the present application, the face area distinguishing module includes: a first face area area molecular module and/or a second face area area molecular module;
其中,所述第一人脸区域区分子模块,用于在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The first face region area molecular module is configured to divide the obtained face region into a foreground person according to a preset classification algorithm if the obtained number of face regions is not less than two. Face area and background face area;
所述第二人脸区域区分子模块,用于在所获得的人脸区域数量不少于两个的情况下,根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The second face region region molecular module is configured to divide the obtained face region into a foreground face region according to a user's selection operation in a case where the obtained number of face regions is not less than two. Background face area;
具体的,所述第一人脸区域区分子模块,包括:人脸可信度获得单元、第二排序单元和第二人脸区域确定单元;Specifically, the first face region region molecular module includes: a face credibility obtaining unit, a second sorting unit, and a second face region determining unit;
其中,所述人脸可信度获得单元,用于获得所获得的各个人脸区域对应的人脸可信度,其中,所述人脸可信度为:用于表示该区域为人脸区域的概率;The face credibility obtaining unit is configured to obtain the obtained credibility of the face corresponding to each face region, where the credibility of the face is: used to indicate that the region is a face region. Probability
所述第二排序单元,用于对所获得的人脸区域按照人脸可信度由大到小的顺序进行排序;The second sorting unit is configured to sort the obtained face regions in descending order of face trustworthiness;
所述第二人脸区域确定单元,用于根据排序结果和预设的第二数量N2,将排序结果中前N2个人脸区域确定为前景人脸区域,并将剩余人脸区域确定为背景人脸区域。 The second face region determining unit is configured to determine a front N2 personal face region in the sorting result as a foreground face region according to the sorting result and a preset second number N2, and determine the remaining face region as a background person Face area.
在本申请的一种具体实现方式中,所述人物图像处理装置还包括:第二人脸区域处理模块;In a specific implementation manner of the present application, the character image processing apparatus further includes: a second face area processing module;
其中,所述第二人脸区域处理模块,用于根据预设的第二图像处理算法,对经区分得到的前景人脸区域进行处理,使得经区分得到的前景人脸区域的视觉效果变好。The second face area processing module is configured to process the differentiated foreground face area according to the preset second image processing algorithm, so that the visual effect of the differentiated foreground face area is improved. .
为达到上述目的,本申请实施例公开了一种终端,所述终端包括:To achieve the above objective, the embodiment of the present application discloses a terminal, where the terminal includes:
处理器、存储器、通信接口和总线;a processor, a memory, a communication interface, and a bus;
所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;The processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
所述存储器存储可执行程序代码;The memory stores executable program code;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于:The processor runs a program corresponding to the executable program code by reading executable program code stored in the memory for:
根据预设的人脸识别算法,获得目标图像中的人脸区域;Obtaining a face region in the target image according to a preset face recognition algorithm;
在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法和/或根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;In the case that the obtained number of face regions is not less than two, the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm and/or according to a user's selection operation. ;
根据预设的第一图像处理算法,对经区分得到的背景人脸区域进行处理,使得经区分得到的背景人脸区域的视觉效果变差。According to the preset first image processing algorithm, the differentiated background face region is processed, so that the visual effect of the differentiated background face region is deteriorated.
相应地,本申请实施例还提供了一种应用程序,该应用程序用于在运行时执行本申请实施例所述的人物图像处理方法。Correspondingly, the embodiment of the present application further provides an application program for executing the character image processing method described in the embodiment of the present application at runtime.
相应地,本申请实施例还提供了一种存储介质,用于存储应用程序,所述应用程序用于执行本申请实施例所述的人物图像处理方法。Correspondingly, the embodiment of the present application further provides a storage medium for storing an application, and the application is used to execute the character image processing method described in the embodiment of the present application.
由以上可见,本申请实施例提供的方案中,获得目标图像中的人脸区域后,在所获得的人脸区域的数量不少于两个的情况下,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,对经区分得到的背景人脸区域进行处理,使得背景人脸区域的视觉效果变差。由于经过处理后背景人脸区域的视觉效果变差,这样能够从反面衬托出前景人脸区域具有较佳的视觉效果。因此,应用本申请实施例提供的方案,能够有效地区分出目标图像中前景人脸区域中的人物,且能够以相对较佳的视觉效果显示前景人脸区域中的人物。 It can be seen from the above that, in the solution provided by the embodiment of the present application, after obtaining the face region in the target image, if the number of the obtained face regions is not less than two, the obtained face region is divided into The foreground face area and the background face area process the differentiated background face area, so that the visual effect of the background face area is deteriorated. Since the visual effect of the background face area after processing is deteriorated, it is possible to provide a better visual effect from the reverse side to the foreground face area. Therefore, the solution provided in the embodiment of the present application can effectively distinguish the characters in the foreground face region in the target image, and can display the characters in the foreground face region with a relatively better visual effect.
附图说明DRAWINGS
为了更清楚地说明本申请实施例和现有技术的技术方案,下面对实施例和现有技术中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application and the technical solutions of the prior art, the following description of the embodiments and the drawings used in the prior art will be briefly introduced. Obviously, the drawings in the following description are only Some embodiments of the application may also be used to obtain other figures from those of ordinary skill in the art without departing from the scope of the invention.
图1为本申请实施例提供的一种人物图像处理方法的流程示意图;FIG. 1 is a schematic flowchart diagram of a method for processing a character image according to an embodiment of the present application;
图2为一张原始人物图像;Figure 2 is an original person image;
图3a为识别出图2所示图像中人脸区域后的图像;Figure 3a is an image after identifying a face region in the image shown in Figure 2;
图3b为将图3a所示图像中人脸区域区分为前景人脸区域和背景人脸区域后的图像;Figure 3b is an image after the face region in the image shown in Figure 3a is divided into a foreground face region and a background face region;
图3c为一张对图3b所示图像中背景人脸区域进行处理后的图像;Figure 3c is an image of the background face area in the image shown in Figure 3b;
图3d为另一张对图3b所示图像中背景人脸区域进行处理后的图像;Figure 3d is another image of the background face region in the image shown in Figure 3b;
图4为本申请实施例提供的另一种人物图像处理方法的流程示意图;FIG. 4 is a schematic flowchart diagram of another method for processing a character image according to an embodiment of the present disclosure;
图5为本申请实施例提供的一种人物图像处理装置的结构示意图;FIG. 5 is a schematic structural diagram of a character image processing apparatus according to an embodiment of the present disclosure;
图6为本申请实施例提供的另一种人物图像处理装置的结构示意图。FIG. 6 is a schematic structural diagram of another character image processing apparatus according to an embodiment of the present application.
具体实施方式detailed description
为使本申请的目的、技术方案、及优点更加清楚明白,以下参照附图并举实施例,对本申请进一步详细说明。显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings. It is apparent that the described embodiments are only a part of the embodiments of the present application, and not all of them. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present application without departing from the inventive scope are the scope of the present application.
图1为本申请实施例提供的一种人物图像处理方法的流程示意图,该方法包括:FIG. 1 is a schematic flowchart of a method for processing a character image according to an embodiment of the present disclosure, where the method includes:
S101:根据预设的人脸识别算法,获得目标图像中的人脸区域。S101: Obtain a face region in the target image according to a preset face recognition algorithm.
实际应用中,可以将图像采集设备实时采集的图像数据确定为目标图像,其中,图像采集设备可以是带有摄像头的手机、带有摄像头的平板电脑、数码相机、数码摄像机等等。In practical applications, the image data collected by the image acquisition device in real time may be determined as a target image, wherein the image acquisition device may be a mobile phone with a camera, a tablet computer with a camera, a digital camera, a digital video camera, and the like.
例如,使用带有摄像头的手机拍摄图像时,可以直接将该手机所拍摄到的图像确定为目标图像; For example, when an image is taken using a mobile phone with a camera, the image captured by the mobile phone can be directly determined as the target image;
使用带有摄像头的手机拍摄视频时,可以直接将该手机所拍摄到的每一视频帧作为目标图像等等。When shooting a video with a camera-equipped mobile phone, you can directly use each video frame captured by the mobile phone as the target image.
另外,还可以根据用户针对已存储图像集的选择操作,从已存储图像集中获得目标图像。In addition, the target image can also be obtained from the stored image set according to the user's selection operation for the stored image set.
S102:在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法和/或根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域。S102: In the case that the obtained number of face regions is not less than two, the obtained face region is divided into the foreground face region and the background person according to a preset classification algorithm and/or according to a user's selection operation. Face area.
在拍摄人物图像时,一般主要人物所在的位置比较靠前,这样拍摄得到的图像中主要人物的脸部区域一般相较于图像中其他人物的脸部区域大。When photographing a person's image, the position of the main character is generally higher, so that the face area of the main character in the captured image is generally larger than the face area of other characters in the image.
鉴于此,在本申请的一种具体实现方式中,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域时,可以根据所获得的人脸区域的区域面积进行区分。In view of this, in a specific implementation manner of the present application, according to a preset classification algorithm, when the obtained face region is divided into a foreground face region and a background face region, the obtained face region may be The area is divided.
具体的,先分别计算所获得的各个人脸区域的区域面积,对所获得的人脸区域按照区域面积由大到小的顺序进行排序,再根据排序结果和预设的第一数量N1,将排序结果中前N1个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。Specifically, the area of each obtained face area is separately calculated, and the obtained face areas are sorted according to the area of the area from large to small, and then according to the sorting result and the preset first quantity N1, The first N1 personal face area in the sort result is determined as the foreground face area, and the remaining face area is determined as the background face area.
另外,实际应用中,受周围拍摄物、场景光线、拍摄角度、预设的人脸识别算法鲁棒性等因素的影响,在获得目标图像中的人脸区域时,并不能保证能够完全准确无误的识别出目标图像中的人脸区域。通常情况下,采用各种人脸识别算法进行人脸识别后,除了能够得到根据该人脸识别算法识别出的人脸区域外,还可以根据识别得到的人脸区域的特征信息计算得到该区域为人脸区域的概率,这一概率可以称为人脸可信度。In addition, in practical applications, due to factors such as surrounding objects, scene light, shooting angle, and the robustness of the preset face recognition algorithm, when the face region in the target image is obtained, it is not guaranteed to be completely accurate. The face area in the target image is recognized. Generally, after the face recognition algorithm is used for face recognition, in addition to the face region recognized by the face recognition algorithm, the region can be calculated according to the feature information of the recognized face region. For the probability of a face region, this probability can be called face confidence.
鉴于此,在本申请的另一种具体实现方式中,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域时,还可以根据所获得的人脸区域的人脸可信度进行区分。In view of this, in another specific implementation manner of the present application, according to a preset classification algorithm, when the obtained face region is divided into a foreground face region and a background face region, the obtained face may also be obtained according to the obtained face. The face credibility of the area is differentiated.
具体的,先获得所获得的各个人脸区域对应的人脸可信度,对所获得的人脸区域按照人脸可信度由大到小的顺序进行排序,再根据排序结果和预设的第二数量N2,将排序结果中前N2个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。 Specifically, firstly, the obtained face credibility corresponding to each face region is obtained, and the obtained face regions are sorted according to the order of the face credibility from large to small, and then according to the sorting result and the preset The second number N2 determines the front N2 personal face region in the ranking result as the foreground face region, and determines the remaining face region as the background face region.
根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域时,除了可以考虑上述的区域面积和人脸可信度之外,还可以考虑人脸区域中的五官特征等因素。According to the preset classification algorithm, when the obtained face region is divided into the foreground face region and the background face region, in addition to the above-mentioned region area and face credibility, the face region may also be considered. The characteristics of the facial features and other factors.
例如,获得目标图像中的人脸区域之后,可以通过图像特征提取算法、图像边缘提取算法等识别出所获得的人脸区域中眼睛、鼻子、嘴巴等五官特征,进一步的根据所识别出的五官特征可以确定人物的面部表情,具体的,可以通过眼睛的形状、嘴巴的形状等确定人物的面部表情。For example, after obtaining the face region in the target image, the facial features such as the eyes, the nose, and the mouth in the obtained face region can be identified by the image feature extraction algorithm, the image edge extraction algorithm, and the like, and further based on the identified facial features. The facial expression of the person can be determined. Specifically, the facial expression of the person can be determined by the shape of the eye, the shape of the mouth, and the like.
确定所获得的人脸区域对应的人物的面部表情后,对所获得的人脸区域按照人物的面部表情活跃程度由高到低的顺序进行排序,根据排序结果和预设的第三数量N3,将排序结果中前N3个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。After determining the facial expressions of the characters corresponding to the obtained face regions, the obtained facial regions are sorted according to the order of the facial expressions of the characters from high to low, according to the sorting result and the preset third number N3, The former N3 face area in the sort result is determined as the foreground face area, and the remaining face area is determined as the background face area.
其中,人物的面部表情活跃程度用于表示人的五官形变程度,例如,若人物的嘴巴处于通常的紧闭状态,则人物的面部表情活跃程度较低,而若人物的嘴巴处于张大状态、微笑状态等等,则人物的面部表情活跃程度较高等等。The degree of facial expression of the character is used to indicate the degree of facial deformation of the person. For example, if the character's mouth is in a normally closed state, the facial expression of the character is less active, and if the character's mouth is in a large state, smiling Status, etc., the character's facial expression is more active and so on.
需要说明的是,本申请只是以上述为例,说明如何将所获得的人脸区域区分为前景人脸区域和背景人脸区域,实际应用中,区分方式并不仅限于以上几种情况。It should be noted that the present application only takes the above as an example to explain how to obtain the obtained face region into the foreground face region and the background face region. In practical applications, the distinguishing manner is not limited to the above cases.
上述预设的第一数量、预设的第二数量和预设的第三数量为不小于1的整数。The preset first number, the preset second number, and the preset third number are integers not less than one.
根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域时,可以将用户所选择的人脸区域确定为前景人脸区域,将所获得的人脸区域中,用户未选择的人脸区域确定为背景人脸区域,另外,还可以将用户所选择的人脸区域确定为背景人脸区域,将所获得的人脸区域中,用户未选择的人脸区域确定为前景人脸区域。According to the user's selection operation, when the obtained face region is divided into the foreground face region and the background face region, the face region selected by the user may be determined as the foreground face region, and the obtained face region is obtained. The face area that is not selected by the user is determined as the background face area. In addition, the face area selected by the user may be determined as the background face area, and the obtained face area is not selected by the user. Determined as the foreground face area.
其中,用户所选择的人脸区域可以包括一个人脸区域,也可以包括多个人脸区域,本申请并不对此进行限定。The face area selected by the user may include a face area, and may also include multiple face areas, which is not limited in this application.
可以理解的是,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域时,无需用户操作即可完成人脸区域的区分。然而, 通常情况下,任何一种分类算法都不一定能够与所有用户理想的人脸区域分类算法一致,所以,实际应用中为了向用户提供较佳的体验效果,在区分人脸区域时,可以考虑将预设的分类算法与用户的选择操作相结合,即:根据预设的分类算法经区分得到前景人脸区域和背景人脸区域后,用户可在上述区分结果的基础上进行选择操作,以进一步调整上述经区分得到的前景人脸区域和背景人脸区域,满足用户的真实要求。It can be understood that, according to the preset classification algorithm, when the obtained face region is divided into the foreground face region and the background face region, the distinction of the face region can be completed without a user operation. However, Generally, any classification algorithm may not be consistent with the ideal face region classification algorithm of all users. Therefore, in order to provide a better experience to the user in practical applications, it may be considered when distinguishing the face region. The preset classification algorithm is combined with the user's selection operation, that is, after the foreground face region and the background face region are distinguished according to the preset classification algorithm, the user may perform a selection operation based on the above-mentioned discrimination result to further The foreground face area and the background face area obtained by the above distinction are adjusted to meet the real requirements of the user.
S103:根据预设的第一图像处理算法,对经区分得到的背景人脸区域进行处理,使得经区分得到的背景人脸区域的视觉效果变差。S103: Process the differentiated background face region according to the preset first image processing algorithm, so that the visual effect of the differentiated background face region is deteriorated.
可选的,预设的第一图像处理算法中可以包含以下图像处理方式中的至少一种:Optionally, the preset first image processing algorithm may include at least one of the following image processing modes:
对人脸区域进行模糊处理;Blurring the face area;
对人脸区域的局部或者全部进行形变处理;Deformation of part or all of the face area;
对人脸区域进行添加噪声处理。Add noise processing to the face area.
其中,上述形变处理,可以包括拉伸处理、扭曲处理、放大处理、缩小处理等等。Wherein, the above deformation processing may include stretching processing, twist processing, enlargement processing, reduction processing, and the like.
例如,局部放大处理可以是对人物的眼睛、嘴巴、鼻子等进行放大处理,同理,局部缩小处理可以是对人物的眼睛、嘴巴、鼻子等进行缩小处理。For example, the partial enlargement processing may be to enlarge the eyes, the mouth, the nose, and the like of the person. Similarly, the local reduction processing may be to reduce the eyes, mouth, nose, and the like of the person.
另外,区分得到的背景人脸区域包含多个人脸区域时,对各个人脸区域所进行的处理可以是相同的处理,也可以是不同的处理。Further, when the divided background face region includes a plurality of face regions, the processing performed on each face region may be the same process or a different process.
进一步的,可以选择预设的第一图像处理算法中包含的一种或者多种图像处理方式,对经区分得到的背景人脸区域中的人脸区域进行处理。Further, one or more image processing modes included in the preset first image processing algorithm may be selected to process the face region in the differentiated background face region.
为经区分得到的背景人脸区域中的人脸区域选择图像处理方式时,可以是随机的从预设的第一图像处理算法中选择的,可以是根据预设的处理方式选择算法从预设的第一图像处理算法中选择的,还可以是用户手动选择的,本申请并不对此进行限定。When the image processing mode is selected for the face region in the background face region, the image processing mode may be randomly selected from the preset first image processing algorithm, or may be selected from the preset according to a preset processing mode. The selected one of the first image processing algorithms may also be manually selected by the user, which is not limited in this application.
在本申请的一个可选实施例中,在S103对经区分得到的背景人脸区域进行处理后,还可以存储上述对背景人脸区域进行处理后的图像。In an optional embodiment of the present application, after the processed background face region is processed in S103, the image processed by the background face region may also be stored.
进一步的,为便于用户查看经上述处理后的图像,不仅可以存储上述对背景人脸区域进行处理后的图像,还可以向用户展示该图像。 Further, in order to facilitate the user to view the processed image, the image processed by the background face region may be stored, and the image may be displayed to the user.
由以上可见,本实施例提供的方案中,获得目标图像中的人脸区域后,在所获得的人脸区域的数量不少于两个的情况下,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,对经区分得到的背景人脸区域进行处理,使得背景人脸区域的视觉效果变差。由于经过处理后背景人脸区域的视觉效果变差,这样能够从反面衬托出前景人脸区域具有较佳的视觉效果。因此,应用本实施例提供的方案,能够有效地区分出目标图像中前景人脸区域中的人物,且能够以相对较佳的视觉效果显示前景人脸区域中的人物。It can be seen from the above that, in the solution provided by the embodiment, after obtaining the face region in the target image, if the number of the obtained face regions is not less than two, the obtained face region is divided into the foreground. The face area and the background face area process the differentiated background face area, so that the visual effect of the background face area is deteriorated. Since the visual effect of the background face area after processing is deteriorated, it is possible to provide a better visual effect from the reverse side to the foreground face area. Therefore, by applying the solution provided by the embodiment, the person in the foreground face region in the target image can be effectively distinguished, and the person in the foreground face region can be displayed with a relatively better visual effect.
下面通过具体实例再对上述人物图像处理方法进行说明。The above-described character image processing method will be described below by way of a specific example.
根据S101:根据预设的人脸识别算法,对图2所示的原始人物图像进行人脸识别,获得该图像中的人脸区域。According to S101: face recognition is performed on the original person image shown in FIG. 2 according to a preset face recognition algorithm, and a face region in the image is obtained.
参见图3a,该图中以矩形框的形式标识出了经人脸识别处理得到的图2所示原始图像中的人脸区域。Referring to FIG. 3a, the face region in the original image shown in FIG. 2 obtained by the face recognition process is identified in the form of a rectangular frame.
由图3a可见,所获得的人脸区域数量为七个,不少于两个。As can be seen from Fig. 3a, the number of face regions obtained is seven, not less than two.
根据S102:根据图3a中标识出的人脸区域的区域面积,对该图中标识出的人脸区域进行区分,区分为前景人脸区域和背景人脸区域。According to S102: according to the area of the area of the face area identified in FIG. 3a, the face area identified in the figure is distinguished, and is divided into a foreground face area and a background face area.
参见图3b,该图中标识出了经区分得到的前景人脸区域和背景人脸区域。Referring to Figure 3b, the differentiated foreground face and background face regions are identified.
其中,前景人脸区域的标识为“F”,背景人脸区域的标识为“B”。The identifier of the foreground face area is “F”, and the identifier of the background face area is “B”.
根据S103:对图3b中经区分得到的背景人脸区域进行处理,使得经区分得到的背景人脸区域的视觉效果变差。According to S103: the background face region obtained by the discrimination in FIG. 3b is processed, so that the visual effect of the differentiated background face region is deteriorated.
具体的,参见图3c,该图为对图3b中经区分得到的背景人脸区域进行模糊处理后的图像;Specifically, referring to FIG. 3c, the figure is an image obtained by obfuscating the background face region obtained in FIG. 3b;
参见图3d,该图为对图3b中经区分得到的背景人脸区域进行形变处理后的图像。Referring to FIG. 3d, the figure is an image obtained by deforming the differentiated background face region in FIG. 3b.
从上述的图3c和图3d两张图像可以看出,对背景人脸区域进行处理后,明显能够将前景人脸区域与背景人脸区域区分开,且能够以相对较佳的视觉效果显示前景人脸区域中的人物。It can be seen from the above two images of Fig. 3c and Fig. 3d that after processing the background face region, it is obvious that the foreground face region can be distinguished from the background face region, and the foreground can be displayed with a relatively better visual effect. People in the face area.
在本申请的一个具体实施例中,参见图4,提供了另一种人物图像处理方 法的流程示意图,与前述各个实施例相比,本实施例中,还包括:In a specific embodiment of the present application, referring to FIG. 4, another character image processing party is provided. The flow chart of the method is compared with the foregoing embodiments. In this embodiment, the method further includes:
S104:根据预设的第二图像处理算法,对经区分得到的前景人脸区域进行处理,使得经区分得到的前景人脸区域的视觉效果变好。S104: Process the differentiated foreground face region according to the preset second image processing algorithm, so that the visual effect of the differentiated foreground face region becomes better.
其中,预设的第二图像处理算法中可以包括:磨皮处理、人脸皮肤区域提亮处理、润唇处理等等。The preset second image processing algorithm may include: dermabrasion treatment, face skin area brightening processing, lip processing, and the like.
由以上可见,本实施例提供的方案中,在对经区分得到的背景人脸区域进行使得背景人脸区域视觉效果变差的处理的同时,对经区分得到的前景人脸区域进行使得前景人脸区域视觉效果变好的处理,这样不仅能够有效区分出目标图像中前景人脸区域中的人物,还能够以更佳的视觉效果显示前景人脸区域中的人物。It can be seen from the above that in the solution provided by the embodiment, the foreground human face region is subjected to the process of making the background face region visually deteriorated, and the foreground face region obtained by the discrimination is made to make the foreground person The processing of the visual effect of the face region is improved, so that not only the characters in the foreground face region in the target image can be effectively distinguished, but also the characters in the foreground face region can be displayed with better visual effects.
与上述的人物图像处理方法相对应,本申请实施例还提供了一种人物图像处理装置。Corresponding to the character image processing method described above, the embodiment of the present application further provides a character image processing apparatus.
图5为本申请实施例提供的一种人物图像处理装置的结构示意图,该装置包括:人脸区域获得模块501、人脸区域区分模块502和第一人脸区域处理模块503。FIG. 5 is a schematic structural diagram of a person image processing apparatus according to an embodiment of the present disclosure. The device includes: a face area obtaining module 501, a face area distinguishing module 502, and a first face area processing module 503.
其中,人脸区域获得模块501,用于根据预设的人脸识别算法,获得目标图像中的人脸区域;The face area obtaining module 501 is configured to obtain a face area in the target image according to a preset face recognition algorithm;
人脸区域区分模块502,用于在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法和/或根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The face region distinguishing module 502 is configured to: when the obtained number of face regions is not less than two, according to a preset classification algorithm and/or according to a user's selection operation, the obtained face region is divided into The foreground face area and the background face area;
第一人脸区域处理模块503,用于根据预设的第一图像处理算法,对经区分得到的背景人脸区域进行处理,使得经区分得到的背景人脸区域的视觉效果变差。The first face area processing module 503 is configured to process the differentiated background face area according to the preset first image processing algorithm, so that the visual effect of the differentiated background face area is deteriorated.
具体的,所述人物图像处理装置还可以包括:目标图像获得模块(图中未示出)。Specifically, the character image processing apparatus may further include: a target image obtaining module (not shown).
其中,目标图像获得模块,用于将图像采集设备实时采集的图像数据确定为目标图像;The target image obtaining module is configured to determine image data collected by the image capturing device in real time as a target image;
Or
用于根据用户针对已存储图像集的选择操作,从所述已存储图像集中获得目标图像。A target image is obtained from the stored image set according to a user's selection operation for the stored image set.
具体的,所述人物图像处理装置还可以包括:图像展示模块(图中未示出)。Specifically, the character image processing apparatus may further include: an image display module (not shown).
其中,图像展示模块,用于存储上述对背景人脸区域进行处理后的图像,并向用户展示该图像。The image display module is configured to store the image processed by the background face region and display the image to the user.
具体的,所述预设的第一图像处理算法中可以包含以下图像处理方式中的至少一种:Specifically, the preset first image processing algorithm may include at least one of the following image processing modes:
对人脸区域进行模糊处理;Blurring the face area;
对人脸区域的局部或者全部进行形变处理;Deformation of part or all of the face area;
对人脸区域进行添加噪声处理。Add noise processing to the face area.
可选的,所述人脸区域区分模块502可以包括:第一人脸区域区分子模块和/或第二人脸区域区分子模块;Optionally, the face region distinguishing module 502 may include: a first face region region molecular module and/or a second face region region molecular module;
其中,所述第一人脸区域区分子模块,用于在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The first face region area molecular module is configured to divide the obtained face region into a foreground person according to a preset classification algorithm if the obtained number of face regions is not less than two. Face area and background face area;
所述第二人脸区域区分子模块,用于在所获得的人脸区域数量不少于两个的情况下,根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The second face region region molecular module is configured to divide the obtained face region into a foreground face region according to a user's selection operation in a case where the obtained number of face regions is not less than two. Background face area;
具体的,所述第一人脸区域区分子模块可以包括:区域面积计算单元、第一排序单元和第一人脸区域确定单元;Specifically, the first face region region molecular module may include: a region area calculation unit, a first sorting unit, and a first face region determining unit;
其中,所述区域面积计算单元,用于分别计算所获得的各个人脸区域的区域面积;The area calculation unit is configured to separately calculate the area of each of the obtained face regions;
所述第一排序单元,用于对所获得的人脸区域按照区域面积由大到小的顺序进行排序;The first sorting unit is configured to sort the obtained face regions in descending order of area of the area;
所述第一人脸区域确定单元,用于根据排序结果和预设的第一数量N1,将排序结果中前N1个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。The first face region determining unit is configured to determine a front N1 personal face region in the sorting result as a foreground face region according to the sorting result and the preset first number N1, and determine the remaining face region as a background. Face area.
可选的,所述人脸区域区分模块502可以包括:第一人脸区域区分子模 块和/或第二人脸区域区分子模块;Optionally, the face region distinguishing module 502 may include: a first face region region molecular model Block and/or second face region zone molecular module;
其中,所述第一人脸区域区分子模块,用于在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The first face region area molecular module is configured to divide the obtained face region into a foreground person according to a preset classification algorithm if the obtained number of face regions is not less than two. Face area and background face area;
所述第二人脸区域区分子模块,用于在所获得的人脸区域数量不少于两个的情况下,根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The second face region region molecular module is configured to divide the obtained face region into a foreground face region according to a user's selection operation in a case where the obtained number of face regions is not less than two. Background face area;
具体的,所述第一人脸区域区分子模块可以包括:人脸可信度获得单元、第二排序单元和第二人脸区域确定单元;Specifically, the first face region region molecular module may include: a face credibility obtaining unit, a second sorting unit, and a second face region determining unit;
其中,所述人脸可信度获得单元,用于获得所获得的各个人脸区域对应的人脸可信度,其中,所述人脸可信度为:根据预设的人脸识别算法获得人脸区域时得到的、用于表示该区域为人脸区域的概率;The face credibility obtaining unit is configured to obtain the obtained credibility of the face corresponding to each face region, where the credibility of the face is: obtained according to a preset face recognition algorithm. The probability obtained when the face region is used to indicate that the region is a face region;
所述第二排序单元,用于对所获得的人脸区域按照人脸可信度由大到小的顺序进行排序;The second sorting unit is configured to sort the obtained face regions in descending order of face trustworthiness;
所述第二人脸区域确定单元,用于根据排序结果和预设的第二数量N2,将排序结果中前N2个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。The second face region determining unit is configured to determine a front N2 personal face region in the sorting result as a foreground face region according to the sorting result and a preset second number N2, and determine the remaining face region as a background. Face area.
由以上可见,本实施例提供的方案中,获得目标图像中的人脸区域后,在所获得的人脸区域的数量不少于两个的情况下,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,对经区分得到的背景人脸区域进行处理,使得背景人脸区域的视觉效果变差。由于经过处理后背景人脸区域的视觉效果变差,这样能够从反面衬托出前景人脸区域具有较佳的视觉效果。因此,应用本实施例提供的方案,能够有效地区分出目标图像中前景人脸区域中的人物,且能够以相对较佳的视觉效果显示前景人脸区域中的人物。It can be seen from the above that, in the solution provided by the embodiment, after obtaining the face region in the target image, if the number of the obtained face regions is not less than two, the obtained face region is divided into the foreground. The face area and the background face area process the differentiated background face area, so that the visual effect of the background face area is deteriorated. Since the visual effect of the background face area after processing is deteriorated, it is possible to provide a better visual effect from the reverse side to the foreground face area. Therefore, by applying the solution provided by the embodiment, the person in the foreground face region in the target image can be effectively distinguished, and the person in the foreground face region can be displayed with a relatively better visual effect.
在本申请的一种具体实现方式中,参见图6,提供了另一种人物图像处理装置的结构示意图,与前述各个实施例相比,本实施例中,还包括:第二人脸区域处理模块504。In a specific implementation manner of the present application, referring to FIG. 6, a schematic structural diagram of another character image processing apparatus is provided. Compared with the foregoing embodiments, the embodiment further includes: second face area processing. Module 504.
其中,所述第二人脸区域处理模块504,用于根据预设的第二图像处理算 法,对经区分得到的前景人脸区域进行处理,使得经区分得到的前景人脸区域的视觉效果变好。The second face area processing module 504 is configured to calculate according to a preset second image processing. The method processes the differentiated foreground face region, so that the visual effect of the differentiated foreground face region becomes better.
由以上可见,本实施例提供的方案中,在对经区分得到的背景人脸区域进行使得背景人脸区域视觉效果变差的处理的同时,对经区分得到的前景人脸区域进行使得前景人脸区域视觉效果变好的处理,这样不仅能够有效区分出目标图像中前景人脸区域中的人物,还能够以更佳的视觉效果显示前景人脸区域中的人物。It can be seen from the above that in the solution provided by the embodiment, the foreground human face region is subjected to the process of making the background face region visually deteriorated, and the foreground face region obtained by the discrimination is made to make the foreground person The processing of the visual effect of the face region is improved, so that not only the characters in the foreground face region in the target image can be effectively distinguished, but also the characters in the foreground face region can be displayed with better visual effects.
另外,本申请实施例还提供了一种终端,该终端包括:In addition, the embodiment of the present application further provides a terminal, where the terminal includes:
处理器、存储器、通信接口和总线;a processor, a memory, a communication interface, and a bus;
所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;The processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
所述存储器存储可执行程序代码;The memory stores executable program code;
所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于:The processor runs a program corresponding to the executable program code by reading executable program code stored in the memory for:
根据预设的人脸识别算法,获得目标图像中的人脸区域;Obtaining a face region in the target image according to a preset face recognition algorithm;
在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法和/或根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;In the case that the obtained number of face regions is not less than two, the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm and/or according to a user's selection operation. ;
根据预设的第一图像处理算法,对经区分得到的背景人脸区域进行处理,使得经区分得到的背景人脸区域的视觉效果变差。According to the preset first image processing algorithm, the differentiated background face region is processed, so that the visual effect of the differentiated background face region is deteriorated.
具体的,该终端通过以下方式获得目标图像:Specifically, the terminal obtains a target image by:
将图像采集设备实时采集的图像数据确定为目标图像;Determining image data acquired by the image acquisition device in real time as a target image;
or
根据用户针对已存储图像集的选择操作,从所述已存储图像集中获得目标图像。A target image is obtained from the stored image set in accordance with a user's selection operation for the stored image set.
具体的,该终端还用于存储上述对背景人脸区域进行处理后的图像,并向用户展示该图像。Specifically, the terminal is further configured to store the image processed by the background face region and display the image to the user.
具体的,所述预设的第一图像处理算法中包含以下图像处理方式中的至 少一种:Specifically, the preset first image processing algorithm includes the following image processing methods. One less:
对人脸区域进行模糊处理;Blurring the face area;
对人脸区域的局部或者全部进行形变处理;Deformation of part or all of the face area;
对人脸区域进行添加噪声处理。Add noise processing to the face area.
具体的,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,包括:Specifically, according to the preset classification algorithm, the obtained face region is divided into a foreground face region and a background face region, including:
分别计算所获得的各个人脸区域的区域面积;Calculating the area of each face area obtained separately;
对所获得的人脸区域按照区域面积由大到小的顺序进行排序;Sorting the obtained face regions in descending order of area;
根据排序结果和预设的第一数量N1,将排序结果中前N1个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。According to the sorting result and the preset first number N1, the first N1 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
具体的,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,包括:Specifically, according to the preset classification algorithm, the obtained face region is divided into a foreground face region and a background face region, including:
获得所获得的各个人脸区域对应的人脸可信度,其中,所述人脸可信度为:用于表示该区域为人脸区域的概率;Obtaining a face credibility corresponding to each of the obtained face regions, wherein the face credibility is: a probability for indicating that the region is a face region;
对所获得的人脸区域按照人脸可信度由大到小的顺序进行排序;Sorting the obtained face regions in descending order of face credibility;
根据排序结果和预设的第二数量N2,将排序结果中前N2个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。According to the sorting result and the preset second number N2, the first N2 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
具体的,该终端还用于根据预设的第二图像处理算法,对经区分得到的前景人脸区域进行处理,使得经区分得到的前景人脸区域的视觉效果变好。Specifically, the terminal is further configured to process the differentiated foreground face region according to the preset second image processing algorithm, so that the visual effect of the differentiated foreground face region becomes better.
本申请实施例还提供了一种应用程序,该应用程序用于在运行时执行本申请实施例提供的人物图像处理方法。其中,人物图像处理方法,包括:The embodiment of the present application further provides an application program for executing the character image processing method provided by the embodiment of the present application at runtime. Among them, the character image processing method includes:
根据预设的人脸识别算法,获得目标图像中的人脸区域;Obtaining a face region in the target image according to a preset face recognition algorithm;
在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法和/或根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;In the case that the obtained number of face regions is not less than two, the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm and/or according to a user's selection operation. ;
根据预设的第一图像处理算法,对经区分得到的背景人脸区域进行处理,使得经区分得到的背景人脸区域的视觉效果变差。According to the preset first image processing algorithm, the differentiated background face region is processed, so that the visual effect of the differentiated background face region is deteriorated.
具体的,通过以下方式获得目标图像: Specifically, the target image is obtained by:
将图像采集设备实时采集的图像数据确定为目标图像;Determining image data acquired by the image acquisition device in real time as a target image;
or
根据用户针对已存储图像集的选择操作,从所述已存储图像集中获得目标图像。A target image is obtained from the stored image set in accordance with a user's selection operation for the stored image set.
具体的,所述人物图像处理方法还包括:Specifically, the character image processing method further includes:
存储上述对背景人脸区域进行处理后的图像,并向用户展示该图像。The image processed as described above for the background face area is stored and presented to the user.
具体的,所述预设的第一图像处理算法中包含以下图像处理方式中的至少一种:Specifically, the preset first image processing algorithm includes at least one of the following image processing methods:
对人脸区域进行模糊处理;Blurring the face area;
对人脸区域的局部或者全部进行形变处理;Deformation of part or all of the face area;
对人脸区域进行添加噪声处理。Add noise processing to the face area.
具体的,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,包括:Specifically, according to the preset classification algorithm, the obtained face region is divided into a foreground face region and a background face region, including:
分别计算所获得的各个人脸区域的区域面积;Calculating the area of each face area obtained separately;
对所获得的人脸区域按照区域面积由大到小的顺序进行排序;Sorting the obtained face regions in descending order of area;
根据排序结果和预设的第一数量N1,将排序结果中前N1个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。According to the sorting result and the preset first number N1, the first N1 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
具体的,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,包括:Specifically, according to the preset classification algorithm, the obtained face region is divided into a foreground face region and a background face region, including:
获得所获得的各个人脸区域对应的人脸可信度,其中,所述人脸可信度为:用于表示该区域为人脸区域的概率;Obtaining a face credibility corresponding to each of the obtained face regions, wherein the face credibility is: a probability for indicating that the region is a face region;
对所获得的人脸区域按照人脸可信度由大到小的顺序进行排序;Sorting the obtained face regions in descending order of face credibility;
根据排序结果和预设的第二数量N2,将排序结果中前N2个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。According to the sorting result and the preset second number N2, the first N2 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
具体的,所述人物图像处理方法还包括:Specifically, the character image processing method further includes:
根据预设的第二图像处理算法,对经区分得到的前景人脸区域进行处理,使得经区分得到的前景人脸区域的视觉效果变好。According to the preset second image processing algorithm, the differentiated foreground face region is processed, so that the visual effect of the differentiated foreground face region is improved.
本申请实施例还提供了一种存储介质,用于存储应用程序,该应用程序 用于执行本申请实施例提供的人物图像处理方法。其中,人物图像处理方法,包括:The embodiment of the present application further provides a storage medium for storing an application, the application It is used to perform the character image processing method provided by the embodiment of the present application. Among them, the character image processing method includes:
根据预设的人脸识别算法,获得目标图像中的人脸区域;Obtaining a face region in the target image according to a preset face recognition algorithm;
在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法和/或根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;In the case that the obtained number of face regions is not less than two, the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm and/or according to a user's selection operation. ;
根据预设的第一图像处理算法,对经区分得到的背景人脸区域进行处理,使得经区分得到的背景人脸区域的视觉效果变差。According to the preset first image processing algorithm, the differentiated background face region is processed, so that the visual effect of the differentiated background face region is deteriorated.
具体的,通过以下方式获得目标图像:Specifically, the target image is obtained by:
将图像采集设备实时采集的图像数据确定为目标图像;Determining image data acquired by the image acquisition device in real time as a target image;
or
根据用户针对已存储图像集的选择操作,从所述已存储图像集中获得目标图像。A target image is obtained from the stored image set in accordance with a user's selection operation for the stored image set.
具体的,所述人物图像处理方法还包括:Specifically, the character image processing method further includes:
存储上述对背景人脸区域进行处理后的图像,并向用户展示该图像。The image processed as described above for the background face area is stored and presented to the user.
具体的,所述预设的第一图像处理算法中包含以下图像处理方式中的至少一种:Specifically, the preset first image processing algorithm includes at least one of the following image processing methods:
对人脸区域进行模糊处理;Blurring the face area;
对人脸区域的局部或者全部进行形变处理;Deformation of part or all of the face area;
对人脸区域进行添加噪声处理。Add noise processing to the face area.
具体的,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,包括:Specifically, according to the preset classification algorithm, the obtained face region is divided into a foreground face region and a background face region, including:
分别计算所获得的各个人脸区域的区域面积;Calculating the area of each face area obtained separately;
对所获得的人脸区域按照区域面积由大到小的顺序进行排序;Sorting the obtained face regions in descending order of area;
根据排序结果和预设的第一数量N1,将排序结果中前N1个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。According to the sorting result and the preset first number N1, the first N1 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
具体的,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,包括:Specifically, according to the preset classification algorithm, the obtained face region is divided into a foreground face region and a background face region, including:
获得所获得的各个人脸区域对应的人脸可信度,其中,所述人脸可信度 为:用于表示该区域为人脸区域的概率;Obtaining a face credibility corresponding to each obtained face region, wherein the face credibility Is: the probability of indicating that the area is a face area;
对所获得的人脸区域按照人脸可信度由大到小的顺序进行排序;Sorting the obtained face regions in descending order of face credibility;
根据排序结果和预设的第二数量N2,将排序结果中前N2个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。According to the sorting result and the preset second number N2, the first N2 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
具体的,所述人物图像处理方法还包括:Specifically, the character image processing method further includes:
根据预设的第二图像处理算法,对经区分得到的前景人脸区域进行处理,使得经区分得到的前景人脸区域的视觉效果变好。According to the preset second image processing algorithm, the differentiated foreground face region is processed, so that the visual effect of the differentiated foreground face region is improved.
对于装置、终端、应用程序、存储介质实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。For the device, the terminal, the application, and the storage medium embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element.
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。One of ordinary skill in the art can understand that all or part of the steps in implementing the above method embodiments can be completed by a program to instruct related hardware, and the program can be stored in a computer readable storage medium, which is referred to herein. Storage media such as ROM/RAM, disk, CD, etc.
以上所述仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。 The above is only the preferred embodiment of the present application, and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., which are made within the spirit and principles of the present application, should be included in the present application. Within the scope of protection.

Claims (17)

  1. 一种人物图像处理方法,其特征在于,所述方法包括:A character image processing method, the method comprising:
    根据预设的人脸识别算法,获得目标图像中的人脸区域;Obtaining a face region in the target image according to a preset face recognition algorithm;
    在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法和/或根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;In the case that the obtained number of face regions is not less than two, the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm and/or according to a user's selection operation. ;
    根据预设的第一图像处理算法,对经区分得到的背景人脸区域进行处理,使得经区分得到的背景人脸区域的视觉效果变差。According to the preset first image processing algorithm, the differentiated background face region is processed, so that the visual effect of the differentiated background face region is deteriorated.
  2. 根据权利要求1所述的方法,其特征在于,通过以下方式获得目标图像:The method according to claim 1, wherein the target image is obtained by:
    将图像采集设备实时采集的图像数据确定为目标图像;Determining image data acquired by the image acquisition device in real time as a target image;
    or
    根据用户针对已存储图像集的选择操作,从所述已存储图像集中获得目标图像。A target image is obtained from the stored image set in accordance with a user's selection operation for the stored image set.
  3. 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:
    存储上述对背景人脸区域进行处理后的图像,并向用户展示该图像。The image processed as described above for the background face area is stored and presented to the user.
  4. 根据权利要求1-3中任一项所述的方法,其特征在于,所述预设的第一图像处理算法中包含以下图像处理方式中的至少一种:The method according to any one of claims 1 to 3, wherein the preset first image processing algorithm includes at least one of the following image processing methods:
    对人脸区域进行模糊处理;Blurring the face area;
    对人脸区域的局部或者全部进行形变处理;Deformation of part or all of the face area;
    对人脸区域进行添加噪声处理。Add noise processing to the face area.
  5. 根据权利要求4所述的方法,其特征在于,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,包括:The method according to claim 4, wherein the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm, including:
    分别计算所获得的各个人脸区域的区域面积;Calculating the area of each face area obtained separately;
    对所获得的人脸区域按照区域面积由大到小的顺序进行排序;Sorting the obtained face regions in descending order of area;
    根据排序结果和预设的第一数量N1,将排序结果中前N1个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。According to the sorting result and the preset first number N1, the first N1 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
  6. 根据权利要求4所述的方法,其特征在于,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域,包括: The method according to claim 4, wherein the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm, including:
    获得所获得的各个人脸区域对应的人脸可信度,其中,所述人脸可信度为:用于表示该区域为人脸区域的概率;Obtaining a face credibility corresponding to each of the obtained face regions, wherein the face credibility is: a probability for indicating that the region is a face region;
    对所获得的人脸区域按照人脸可信度由大到小的顺序进行排序;Sorting the obtained face regions in descending order of face credibility;
    根据排序结果和预设的第二数量N2,将排序结果中前N2个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。According to the sorting result and the preset second number N2, the first N2 personal face region in the sorting result is determined as the foreground face region, and the remaining face region is determined as the background face region.
  7. 根据权利要求1-3中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1 to 3, wherein the method further comprises:
    根据预设的第二图像处理算法,对经区分得到的前景人脸区域进行处理,使得经区分得到的前景人脸区域的视觉效果变好。According to the preset second image processing algorithm, the differentiated foreground face region is processed, so that the visual effect of the differentiated foreground face region is improved.
  8. 一种人物图像处理装置,其特征在于,所述装置包括:A character image processing apparatus, characterized in that the apparatus comprises:
    人脸区域获得模块,用于根据预设的人脸识别算法,获得目标图像中的人脸区域;a face area obtaining module, configured to obtain a face area in the target image according to a preset face recognition algorithm;
    人脸区域区分模块,用于在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法和/或根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;a face area distinguishing module, configured to divide the obtained face area into a foreground according to a preset classification algorithm and/or according to a user's selection operation, if the obtained number of face regions is not less than two Face area and background face area;
    第一人脸区域处理模块,用于根据预设的第一图像处理算法,对经区分得到的背景人脸区域进行处理,使得经区分得到的背景人脸区域的视觉效果变差。The first face area processing module is configured to process the differentiated background face area according to the preset first image processing algorithm, so that the visual effect of the differentiated background face area is deteriorated.
  9. 根据权利要求8所述的装置,其特征在于,所述装置还包括:The device according to claim 8, wherein the device further comprises:
    目标图像获得模块,用于将图像采集设备实时采集的图像数据确定为目标图像;a target image obtaining module, configured to determine image data acquired by the image capturing device in real time as a target image;
    or
    用于根据用户针对已存储图像集的选择操作,从所述已存储图像集中获得目标图像。A target image is obtained from the stored image set according to a user's selection operation for the stored image set.
  10. 根据权利要求9所述的装置,其特征在于,所述装置还包括:The device according to claim 9, wherein the device further comprises:
    图像展示模块,用于存储上述对背景人脸区域进行处理后的图像,并向用户展示该图像。The image display module is configured to store the image processed by the background face region and display the image to the user.
  11. 根据权利要求8-10中任一项所述的装置,其特征在于,所述预设的第一图像处理算法中包含以下图像处理方式中的至少一种: The apparatus according to any one of claims 8 to 10, wherein the preset first image processing algorithm includes at least one of the following image processing methods:
    对人脸区域进行模糊处理;Blurring the face area;
    对人脸区域的局部或者全部进行形变处理;Deformation of part or all of the face area;
    对人脸区域进行添加噪声处理。Add noise processing to the face area.
  12. 根据权利要求11所述的装置,其特征在于,所述人脸区域区分模块,包括:第一人脸区域区分子模块和/或第二人脸区域区分子模块;The apparatus according to claim 11, wherein the face area distinguishing module comprises: a first face area area molecular module and/or a second face area area molecular module;
    其中,所述第一人脸区域区分子模块,用于在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The first face region area molecular module is configured to divide the obtained face region into a foreground person according to a preset classification algorithm if the obtained number of face regions is not less than two. Face area and background face area;
    所述第二人脸区域区分子模块,用于在所获得的人脸区域数量不少于两个的情况下,根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The second face region region molecular module is configured to divide the obtained face region into a foreground face region according to a user's selection operation in a case where the obtained number of face regions is not less than two. Background face area;
    具体的,所述第一人脸区域区分子模块,包括:区域面积计算单元、第一排序单元和第一人脸区域确定单元;Specifically, the first face region region molecular module includes: a region area calculation unit, a first sorting unit, and a first face region determining unit;
    其中,所述区域面积计算单元,用于分别计算所获得的各个人脸区域的区域面积;The area calculation unit is configured to separately calculate the area of each of the obtained face regions;
    所述第一排序单元,用于对所获得的人脸区域按照区域面积由大到小的顺序进行排序;The first sorting unit is configured to sort the obtained face regions in descending order of area of the area;
    所述第一人脸区域确定单元,用于根据排序结果和预设的第一数量N1,将排序结果中前N1个人脸区域确定为前景人脸区域,并将剩余的人脸区域确定为背景人脸区域。The first face region determining unit is configured to determine a front N1 personal face region in the sorting result as a foreground face region according to the sorting result and the preset first number N1, and determine the remaining face region as a background. Face area.
  13. 根据权利要求11所述的装置,其特征在于,所述人脸区域区分模块,包括:第一人脸区域区分子模块和/或第二人脸区域区分子模块;The apparatus according to claim 11, wherein the face area distinguishing module comprises: a first face area area molecular module and/or a second face area area molecular module;
    其中,所述第一人脸区域区分子模块,用于在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The first face region area molecular module is configured to divide the obtained face region into a foreground person according to a preset classification algorithm if the obtained number of face regions is not less than two. Face area and background face area;
    所述第二人脸区域区分子模块,用于在所获得的人脸区域数量不少于两个的情况下,根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;The second face region region molecular module is configured to divide the obtained face region into a foreground face region according to a user's selection operation in a case where the obtained number of face regions is not less than two. Background face area;
    具体的,所述第一人脸区域区分子模块,包括:人脸可信度获得单元、 第二排序单元和第二人脸区域确定单元;Specifically, the first face area area molecular module includes: a face credibility obtaining unit, a second sorting unit and a second face area determining unit;
    其中,所述人脸可信度获得单元,用于获得所获得的各个人脸区域对应的人脸可信度,其中,所述人脸可信度为:用于表示该区域为人脸区域的概率;The face credibility obtaining unit is configured to obtain the obtained credibility of the face corresponding to each face region, where the credibility of the face is: used to indicate that the region is a face region. Probability
    所述第二排序单元,用于对所获得的人脸区域按照人脸可信度由大到小的顺序进行排序;The second sorting unit is configured to sort the obtained face regions in descending order of face trustworthiness;
    所述第二人脸区域确定单元,用于根据排序结果和预设的第二数量N2,将排序结果中前N2个人脸区域确定为前景人脸区域,并将剩余人脸区域确定为背景人脸区域。The second face region determining unit is configured to determine a front N2 personal face region in the sorting result as a foreground face region according to the sorting result and a preset second number N2, and determine the remaining face region as a background person Face area.
  14. 根据权利要求8-10中任一项所述的装置,其特征在于,所述装置还包括:第二人脸区域处理模块;The device according to any one of claims 8 to 10, further comprising: a second face area processing module;
    其中,所述第二人脸区域处理模块,用于根据预设的第二图像处理算法,对经区分得到的前景人脸区域进行处理,使得经区分得到的前景人脸区域的视觉效果变好。The second face area processing module is configured to process the differentiated foreground face area according to the preset second image processing algorithm, so that the visual effect of the differentiated foreground face area is improved. .
  15. 一种终端,其特征在于,所述终端包括:A terminal, wherein the terminal comprises:
    处理器、存储器、通信接口和总线;a processor, a memory, a communication interface, and a bus;
    所述处理器、所述存储器和所述通信接口通过所述总线连接并完成相互间的通信;The processor, the memory, and the communication interface are connected by the bus and complete communication with each other;
    所述存储器存储可执行程序代码;The memory stores executable program code;
    所述处理器通过读取所述存储器中存储的可执行程序代码来运行与所述可执行程序代码对应的程序,以用于:The processor runs a program corresponding to the executable program code by reading executable program code stored in the memory for:
    根据预设的人脸识别算法,获得目标图像中的人脸区域;Obtaining a face region in the target image according to a preset face recognition algorithm;
    在所获得的人脸区域数量不少于两个的情况下,根据预设的分类算法和/或根据用户的选择操作,将所获得的人脸区域区分为前景人脸区域和背景人脸区域;In the case that the obtained number of face regions is not less than two, the obtained face region is divided into a foreground face region and a background face region according to a preset classification algorithm and/or according to a user's selection operation. ;
    根据预设的第一图像处理算法,对经区分得到的背景人脸区域进行处理,使得经区分得到的背景人脸区域的视觉效果变差。According to the preset first image processing algorithm, the differentiated background face region is processed, so that the visual effect of the differentiated background face region is deteriorated.
  16. 一种应用程序,其特征在于,所述应用程序用于在运行时执行权利要求1-7中任一项所述的人物图像处理方法。 An application program for performing the character image processing method according to any one of claims 1 to 7 at runtime.
  17. 一种存储介质,其特征在于,所述存储介质用于存储应用程序,所述应用程序用于执行权利要求1-7中任一项所述的人物图像处理方法。 A storage medium for storing an application for performing the character image processing method according to any one of claims 1 to 7.
PCT/CN2016/080220 2015-05-11 2016-04-26 Method and device for processing image of person WO2016180224A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510235866.5A CN104794462B (en) 2015-05-11 2015-05-11 A kind of character image processing method and processing device
CN201510235866.5 2015-05-11

Publications (1)

Publication Number Publication Date
WO2016180224A1 true WO2016180224A1 (en) 2016-11-17

Family

ID=53559249

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/080220 WO2016180224A1 (en) 2015-05-11 2016-04-26 Method and device for processing image of person

Country Status (2)

Country Link
CN (1) CN104794462B (en)
WO (1) WO2016180224A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765278A (en) * 2018-06-05 2018-11-06 Oppo广东移动通信有限公司 A kind of image processing method, mobile terminal and computer readable storage medium
CN110175549A (en) * 2019-05-20 2019-08-27 腾讯科技(深圳)有限公司 Face image processing process, device, equipment and storage medium
CN111026909A (en) * 2019-11-30 2020-04-17 杭州亿圣信息技术有限公司 Method for supplementing public security investigation data set based on self-timer tremble view
CN112507767A (en) * 2019-09-16 2021-03-16 纬创资通股份有限公司 Face identification method and related computer system
CN113095111A (en) * 2019-12-23 2021-07-09 深圳云天励飞技术有限公司 Human face image comparison method and related device
CN113473075A (en) * 2020-07-14 2021-10-01 青岛海信电子产业控股股份有限公司 Video monitoring data privacy protection method and device

Families Citing this family (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104794462B (en) * 2015-05-11 2018-05-22 成都野望数码科技有限公司 A kind of character image processing method and processing device
CN106375680A (en) * 2015-07-24 2017-02-01 中兴通讯股份有限公司 Image processing method, image processing device and terminal
CN105204624B (en) * 2015-08-28 2018-09-04 努比亚技术有限公司 Shoot fuzzy processing method and device
CN105260732A (en) * 2015-11-26 2016-01-20 小米科技有限责任公司 Image processing method and device
CN105844232B (en) * 2016-03-21 2019-09-24 联想(北京)有限公司 A kind of image-recognizing method and device
CN105975961B (en) * 2016-06-28 2019-06-28 北京小米移动软件有限公司 The method, apparatus and terminal of recognition of face
CN106161962B (en) * 2016-08-29 2018-06-29 广东欧珀移动通信有限公司 A kind of image processing method and terminal
CN106650575A (en) * 2016-09-19 2017-05-10 北京小米移动软件有限公司 Face detection method and device
CN108347578B (en) * 2017-01-23 2020-05-08 腾讯科技(深圳)有限公司 Method and device for processing video image in video call
CN106971165B (en) * 2017-03-29 2018-08-10 武汉斗鱼网络科技有限公司 A kind of implementation method and device of filter
CN107798653B (en) * 2017-09-20 2019-12-24 北京三快在线科技有限公司 Image processing method and device
WO2019061285A1 (en) * 2017-09-29 2019-04-04 深圳传音通讯有限公司 Video recording method and video recording system of intelligent terminal
CN107864336B (en) * 2017-11-24 2019-07-26 维沃移动通信有限公司 A kind of image processing method, mobile terminal
CN108616700B (en) * 2018-05-21 2020-11-17 Oppo广东移动通信有限公司 Image processing method and device, electronic equipment and computer readable storage medium
CN109002776B (en) * 2018-06-29 2021-06-15 金蝶软件(中国)有限公司 Face recognition method, system, computer device and computer-readable storage medium
CN108989672B (en) * 2018-07-26 2022-03-22 维沃移动通信有限公司 Shooting method and mobile terminal
CN109905598A (en) * 2019-02-25 2019-06-18 四川长虹电器股份有限公司 A kind of Intelligent photographing method and Intelligent shooting system
WO2021026848A1 (en) * 2019-08-14 2021-02-18 深圳市大疆创新科技有限公司 Image processing method and device, and photographing apparatus, movable platform and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523412A (en) * 2006-10-11 2009-09-02 惠普开发有限公司 Face-based image clustering
CN101916370A (en) * 2010-08-31 2010-12-15 上海交通大学 Method for processing non-feature regional images in face detection
CN104794462A (en) * 2015-05-11 2015-07-22 北京锤子数码科技有限公司 Figure image processing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100589114C (en) * 2007-12-29 2010-02-10 北京中星微电子有限公司 Apparatus and method for tracking maximum face in image
CN102880863B (en) * 2012-09-20 2014-12-31 北京理工大学 Method for positioning license number and face of driver on basis of deformable part model
CN102932541A (en) * 2012-10-25 2013-02-13 广东欧珀移动通信有限公司 Mobile phone photographing method and system
CN103268475A (en) * 2013-05-10 2013-08-28 中科创达软件股份有限公司 Skin beautifying method based on face and skin color detection

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101523412A (en) * 2006-10-11 2009-09-02 惠普开发有限公司 Face-based image clustering
CN101916370A (en) * 2010-08-31 2010-12-15 上海交通大学 Method for processing non-feature regional images in face detection
CN104794462A (en) * 2015-05-11 2015-07-22 北京锤子数码科技有限公司 Figure image processing method and device

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108765278A (en) * 2018-06-05 2018-11-06 Oppo广东移动通信有限公司 A kind of image processing method, mobile terminal and computer readable storage medium
CN108765278B (en) * 2018-06-05 2023-04-07 Oppo广东移动通信有限公司 Image processing method, mobile terminal and computer readable storage medium
CN110175549A (en) * 2019-05-20 2019-08-27 腾讯科技(深圳)有限公司 Face image processing process, device, equipment and storage medium
CN110175549B (en) * 2019-05-20 2024-02-20 腾讯科技(深圳)有限公司 Face image processing method, device, equipment and storage medium
CN112507767A (en) * 2019-09-16 2021-03-16 纬创资通股份有限公司 Face identification method and related computer system
CN112507767B (en) * 2019-09-16 2023-12-08 纬创资通股份有限公司 Face recognition method and related computer system
CN111026909A (en) * 2019-11-30 2020-04-17 杭州亿圣信息技术有限公司 Method for supplementing public security investigation data set based on self-timer tremble view
CN111026909B (en) * 2019-11-30 2023-04-28 杭州亿圣信息技术有限公司 Method for supplementing public security investigation data set based on self-timer tremble sound view
CN113095111A (en) * 2019-12-23 2021-07-09 深圳云天励飞技术有限公司 Human face image comparison method and related device
CN113095111B (en) * 2019-12-23 2024-03-26 深圳云天励飞技术有限公司 Face image comparison method and related device
CN113473075A (en) * 2020-07-14 2021-10-01 青岛海信电子产业控股股份有限公司 Video monitoring data privacy protection method and device

Also Published As

Publication number Publication date
CN104794462B (en) 2018-05-22
CN104794462A (en) 2015-07-22

Similar Documents

Publication Publication Date Title
WO2016180224A1 (en) Method and device for processing image of person
CN105243371B (en) A kind of detection method, system and the camera terminal of face U.S. face degree
CN108197586B (en) Face recognition method and device
CN105893920B (en) Face living body detection method and device
WO2017190646A1 (en) Facial image processing method and apparatus and storage medium
WO2020000908A1 (en) Method and device for face liveness detection
CN108805047B (en) Living body detection method and device, electronic equipment and computer readable medium
US8983152B2 (en) Image masks for face-related selection and processing in images
WO2016145830A1 (en) Image processing method, terminal and computer storage medium
US9830727B2 (en) Personalizing image capture
US11132544B2 (en) Visual fatigue recognition method, visual fatigue recognition device, virtual reality apparatus and storage medium
WO2017031901A1 (en) Human-face recognition method and apparatus, and terminal
WO2018076622A1 (en) Image processing method and device, and terminal
US20170161553A1 (en) Method and electronic device for capturing photo
CN111008935B (en) Face image enhancement method, device, system and storage medium
WO2017096861A1 (en) Method and device for taking photographs
US10679039B2 (en) Detecting actions to discourage recognition
WO2017173578A1 (en) Image enhancement method and device
CN113409342A (en) Training method and device for image style migration model and electronic equipment
CN107977636B (en) Face detection method and device, terminal and storage medium
EP3200092A1 (en) Method and terminal for implementing image sequencing
CN108564537B (en) Image processing method, image processing device, electronic equipment and medium
CN107357424B (en) Gesture operation recognition method and device and computer readable storage medium
CN111476741B (en) Image denoising method, image denoising device, electronic equipment and computer readable medium
JP6098133B2 (en) Face component extraction device, face component extraction method and program

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: 16792074

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: 16792074

Country of ref document: EP

Kind code of ref document: A1