CN105046660A - Image beautifying method and device - Google Patents

Image beautifying method and device Download PDF

Info

Publication number
CN105046660A
CN105046660A CN201510383550.0A CN201510383550A CN105046660A CN 105046660 A CN105046660 A CN 105046660A CN 201510383550 A CN201510383550 A CN 201510383550A CN 105046660 A CN105046660 A CN 105046660A
Authority
CN
China
Prior art keywords
pixel value
difference
face
symmetrical
pair
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510383550.0A
Other languages
Chinese (zh)
Other versions
CN105046660B (en
Inventor
吴磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510383550.0A priority Critical patent/CN105046660B/en
Publication of CN105046660A publication Critical patent/CN105046660A/en
Application granted granted Critical
Publication of CN105046660B publication Critical patent/CN105046660B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses an image beautifying method and a device. Through acquiring pixel values of at least two symmetrical regions of a user image respectively, beautifying treatment is carried out on a symmetrical region in which the difference between each pair of pixel values is larger than a preset pixel difference, and thus, when the user uses a beautifying video and the user rotates the facial part, facial part beautifying effect transition is natural, and sudden effect changes during rotation of the head part can be avoided.

Description

A kind of method of U.S. face image and device
Technical field
The embodiment of the present invention relates to the technical field of image procossing, particularly relates to a kind of method and device of U.S. face image.
Background technology
In the process of the U.S. face of video, often occur recording the situation that theme turns same head or side face, when this happens, the U.S. face of traditional video still can process the region of rotating before face, this will make the U.S. face effect when rotation head have the sense that significantly misplaces, non-face region also has U.S. face effect, allows video look very false.
Summary of the invention
The object of the embodiment of the present invention is the method and the device that propose a kind of U.S. face image, is intended to solve the problem taken over seamlessly of video U.S. face when user's face is rotated.
For reaching this object, the embodiment of the present invention by the following technical solutions:
A method for U.S. face image, described method comprises:
Obtain the pixel value in user images at least two symmetrical regions respectively;
The symmetrical region difference of often pair of pixel value being greater than to the pixel value difference pre-set carries out U.S. face process.
A device for U.S. face image, described device comprises:
First acquisition module, for obtaining the pixel value in user images at least two symmetrical regions respectively;
Processing module, the symmetrical region for being greater than the pixel value difference pre-set to the difference of often pair of pixel value carries out U.S. face process.
The embodiment of the present invention is by obtaining the pixel value in user images at least two symmetrical regions respectively; The symmetrical region difference of often pair of pixel value being greater than to the pixel value difference pre-set carries out U.S. face process, thus U.S. face video can be used user and user rotates face time, make the effect of facial U.S. face excessively relatively more natural, there will not be effect change unexpected in head rotation.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method first embodiment of the U.S. face image of the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of method second embodiment of the U.S. face image of the embodiment of the present invention;
Fig. 3 is the schematic flow sheet of method the 3rd embodiment of the U.S. face image of the embodiment of the present invention;
Fig. 4 is the schematic flow sheet of method the 4th embodiment of the U.S. face image of the embodiment of the present invention;
Fig. 5 is the high-level schematic functional block diagram of the device of the U.S. face image of the embodiment of the present invention;
Fig. 6 is the high-level schematic functional block diagram of the device of the U.S. face image of the embodiment of the present invention;
Fig. 7 is the high-level schematic functional block diagram of the device of the U.S. face image of the embodiment of the present invention;
Fig. 8 is the high-level schematic functional block diagram of the device of the U.S. face image of the embodiment of the present invention;
Fig. 9 is the high-level schematic functional block diagram of embodiment of the present invention processing module 602.
Embodiment
Below in conjunction with drawings and Examples, the embodiment of the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the embodiment of the present invention, but not the restriction to the embodiment of the present invention.It also should be noted that, for convenience of description, illustrate only the part relevant to the embodiment of the present invention in accompanying drawing but not entire infrastructure.
Embodiment one
It is the schematic flow sheet of method first embodiment of the U.S. face image of the embodiment of the present invention with reference to figure 1, Fig. 1.
In embodiment one, the method for described U.S. face image comprises:
Step 101, obtains the pixel value in user images at least two symmetrical regions respectively;
Step 102, the symmetrical region difference of often pair of pixel value being greater than to the pixel value difference pre-set carries out U.S. face process.
Concrete, start to identify facial zone, obtain facial zone, and obtain skin partial pixel number in region; Facial zone is divided into left and right two deciles, if skin of face channel floor pixel count reduces, and time left-right parts pixel count differs by more than certain threshold value, can judge that user at this time has the action of side face to occur, according to left and right two decile ratio value, the degree of side face can be assessed, ratio degree K can be set, and the degree of U.S. face is controlled according to K, namely the degree of side face is higher, and the degree of U.S. face is lower.
The embodiment of the present invention is by obtaining the pixel value in user images at least two symmetrical regions respectively; The symmetrical region difference of often pair of pixel value being greater than to the pixel value difference pre-set carries out U.S. face process, thus U.S. face video can be used user and user rotates face time, make the effect of facial U.S. face excessively relatively more natural, there will not be effect change unexpected in head rotation.
Embodiment two
It is the schematic flow sheet of method second embodiment of the U.S. face image of the embodiment of the present invention with reference to figure 2, Fig. 2.
On the basis of embodiment one, after the described pixel value obtained respectively in user images at least two symmetrical regions, also comprise:
Step 103, the difference obtaining often pair of pixel value is greater than the symmetrical region of the pixel value difference pre-set.
Embodiment three
It is the schematic flow sheet of method the 3rd embodiment of the U.S. face image of the embodiment of the present invention with reference to figure 3, Fig. 3.
On the basis of embodiment one, before the described pixel value obtained respectively in user images at least two symmetrical regions, also comprise:
Step 104, described user images is divided at least two symmetrical regions by the image division rule according to pre-setting.
Embodiment four
It is the schematic flow sheet of method the 4th embodiment of the U.S. face image of the embodiment of the present invention with reference to figure 4, Fig. 4.
On the basis of embodiment one or embodiment two or embodiment three, for example is described on the basis of embodiment three, the symmetrical region that the described difference to often pair of pixel value is greater than the pixel value difference pre-set also comprises before carrying out U.S. face process:
Step 105, the difference obtaining described often pair of pixel value is greater than the ratio between the symmetrical region of the pixel value difference pre-set, and described ratio is the ratio of the pixel value of one of them symmetrical region and the pixel value of another symmetrical region.
Preferably, the symmetrical region that the described difference to often pair of pixel value is greater than the pixel value difference pre-set carries out U.S. face process, comprising:
If described ratio is larger, to be then greater than the degree of the symmetrical region of the pixel value difference pre-set less for the difference of often pair of pixel value described in U.S. face;
If described ratio is less, to be then greater than the degree of the symmetrical region of the pixel value difference pre-set larger for the difference of often pair of pixel value described in U.S. face.
Embodiment five
It is the high-level schematic functional block diagram of the device of the U.S. face image of the embodiment of the present invention with reference to figure 5, Fig. 5.
In embodiment five, the device of described U.S. face image comprises:
First acquisition module 501, for obtaining the pixel value in user images at least two symmetrical regions respectively;
Processing module 502, the symmetrical region for being greater than the pixel value difference pre-set to the difference of often pair of pixel value carries out U.S. face process.
Concrete, start to identify facial zone, obtain facial zone, and obtain skin partial pixel number in region; Facial zone is divided into left and right two deciles, if skin of face channel floor pixel count reduces, and time left-right parts pixel count differs by more than certain threshold value, can judge that user at this time has the action of side face to occur, according to left and right two decile ratio value, the degree of side face can be assessed, ratio degree K can be set, and the degree of U.S. face is controlled according to K, namely the degree of side face is higher, and the degree of U.S. face is lower.
The embodiment of the present invention is by obtaining the pixel value in user images at least two symmetrical regions respectively; The symmetrical region difference of often pair of pixel value being greater than to the pixel value difference pre-set carries out U.S. face process, thus U.S. face video can be used user and user rotates face time, make the effect of facial U.S. face excessively relatively more natural, there will not be effect change unexpected in head rotation.
Embodiment six
It is the high-level schematic functional block diagram of the device of the U.S. face image of the embodiment of the present invention with reference to figure 6, Fig. 6.
On the basis of embodiment five, the device of described U.S. face image also comprises:
Second acquisition module 503, the difference for obtaining often pair of pixel value is greater than the symmetrical region of the pixel value difference pre-set.
Embodiment seven
It is the high-level schematic functional block diagram of the device of the U.S. face image of the embodiment of the present invention with reference to figure 7, Fig. 7.
On the basis of embodiment five, the device of described U.S. face image also comprises:
Divide module 504, for described user images being divided at least two symmetrical regions according to the image division rule pre-set.
Embodiment eight
It is the high-level schematic functional block diagram of the device of the U.S. face image of the embodiment of the present invention with reference to figure 8, Fig. 8.
On the basis of embodiment five or embodiment six or embodiment seven, to be described on the basis of embodiment seven, the device of described U.S. face image also comprises:
3rd acquisition module 505, the difference for obtaining described often pair of pixel value is greater than the ratio between the symmetrical region of the pixel value difference pre-set, and described ratio is the ratio of the pixel value of one of them symmetrical region and the pixel value of another symmetrical region.
Preferably, with reference to figure 9, Fig. 9 be the high-level schematic functional block diagram of embodiment of the present invention processing module 602.Described processing module 602 comprises:
First processing unit 901, if larger for described ratio, to be then greater than the degree of the symmetrical region of the pixel value difference pre-set less for the difference of often pair of pixel value described in U.S. face;
Second processing unit 902, if less for described ratio, to be then greater than the degree of the symmetrical region of the pixel value difference pre-set larger for the difference of often pair of pixel value described in U.S. face.
Below the know-why of the embodiment of the present invention is described in conjunction with specific embodiments.These describe the principle just in order to explain the embodiment of the present invention, and can not be interpreted as the restriction to embodiment of the present invention protection domain by any way.Based on explanation herein, those skilled in the art does not need to pay other embodiment that performing creative labour can associate the embodiment of the present invention, these modes all by fall into the embodiment of the present invention protection domain within.

Claims (11)

1. a method for U.S. face image, is characterized in that, described method comprises:
Obtain the pixel value in user images at least two symmetrical regions respectively;
The symmetrical region difference of often pair of pixel value being greater than to the pixel value difference pre-set carries out U.S. face process.
2. method according to claim 1, is characterized in that, after the described pixel value obtained respectively in user images at least two symmetrical regions, also comprises:
The difference obtaining often pair of pixel value is greater than the symmetrical region of the pixel value difference pre-set.
3. method according to claim 1, is characterized in that, before the described pixel value obtained respectively in user images at least two symmetrical regions, also comprises:
Described user images is divided at least two symmetrical regions by the image division rule according to pre-setting.
4. the method according to claims 1 to 3 any one, is characterized in that, the symmetrical region that the described difference to often pair of pixel value is greater than the pixel value difference pre-set also comprises before carrying out U.S. face process:
The difference obtaining described often pair of pixel value is greater than the ratio between the symmetrical region of the pixel value difference pre-set, and described ratio is the ratio of the pixel value of one of them symmetrical region and the pixel value of another symmetrical region.
5. method according to claim 4, is characterized in that, the symmetrical region that the described difference to often pair of pixel value is greater than the pixel value difference pre-set carries out U.S. face process, comprising:
If described ratio is larger, to be then greater than the degree of the symmetrical region of the pixel value difference pre-set less for the difference of often pair of pixel value described in U.S. face;
If described ratio is less, to be then greater than the degree of the symmetrical region of the pixel value difference pre-set larger for the difference of often pair of pixel value described in U.S. face.
6. a device for U.S. face image, is characterized in that, described device comprises:
First acquisition module, for obtaining the pixel value in user images at least two symmetrical regions respectively;
Processing module, the symmetrical region for being greater than the pixel value difference pre-set to the difference of often pair of pixel value carries out U.S. face process.
7. device according to claim 6, is characterized in that, described device also comprises:
Second acquisition module, the difference for obtaining often pair of pixel value is greater than the symmetrical region of the pixel value difference pre-set.
8. device according to claim 6, is characterized in that, described device also comprises:
Divide module, for described user images being divided at least two symmetrical regions according to the image division rule pre-set.
9. the device according to claim 6 to 8 any one, is characterized in that, described device also comprises:
3rd acquisition module, the difference for obtaining described often pair of pixel value is greater than the ratio between the symmetrical region of the pixel value difference pre-set, and described ratio is the ratio of the pixel value of one of them symmetrical region and the pixel value of another symmetrical region.
10. device according to claim 9, is characterized in that, described processing module comprises:
First processing unit, if larger for described ratio, to be then greater than the degree of the symmetrical region of the pixel value difference pre-set less for the difference of often pair of pixel value described in U.S. face;
First processing unit, if less for described ratio, to be then greater than the degree of the symmetrical region of the pixel value difference pre-set larger for the difference of often pair of pixel value described in U.S. face.
11. 1 kinds of intelligent terminals, is characterized in that, described intelligent terminal comprises the device of the U.S. face image described in claim 6 to 10 any one.
CN201510383550.0A 2015-07-02 2015-07-02 A kind of method and device of U.S. face image Expired - Fee Related CN105046660B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510383550.0A CN105046660B (en) 2015-07-02 2015-07-02 A kind of method and device of U.S. face image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510383550.0A CN105046660B (en) 2015-07-02 2015-07-02 A kind of method and device of U.S. face image

Publications (2)

Publication Number Publication Date
CN105046660A true CN105046660A (en) 2015-11-11
CN105046660B CN105046660B (en) 2017-10-20

Family

ID=54453180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510383550.0A Expired - Fee Related CN105046660B (en) 2015-07-02 2015-07-02 A kind of method and device of U.S. face image

Country Status (1)

Country Link
CN (1) CN105046660B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106373095A (en) * 2016-08-29 2017-02-01 广东欧珀移动通信有限公司 Image processing method and terminal
CN106791365A (en) * 2016-11-25 2017-05-31 努比亚技术有限公司 Facial image preview processing method and processing device
CN107346544A (en) * 2017-06-30 2017-11-14 联想(北京)有限公司 A kind of image processing method and electronic equipment
CN110662102A (en) * 2018-06-29 2020-01-07 武汉斗鱼网络科技有限公司 Filter gradual change effect display method, storage medium, equipment and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101031030A (en) * 2007-04-17 2007-09-05 北京中星微电子有限公司 Method and system for adding special effects into image
CN101216881A (en) * 2007-12-28 2008-07-09 北京中星微电子有限公司 A method and device for automatic image acquisition
CN101226585A (en) * 2007-01-18 2008-07-23 华硕电脑股份有限公司 Method for calculating face correctitude degree and computer system thereof
CN102027505A (en) * 2008-07-30 2011-04-20 泰塞拉技术爱尔兰公司 Automatic face and skin beautification using face detection
US20120027269A1 (en) * 2010-05-21 2012-02-02 Douglas Fidaleo System and method for providing and modifying a personalized face chart

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101226585A (en) * 2007-01-18 2008-07-23 华硕电脑股份有限公司 Method for calculating face correctitude degree and computer system thereof
CN101031030A (en) * 2007-04-17 2007-09-05 北京中星微电子有限公司 Method and system for adding special effects into image
CN101216881A (en) * 2007-12-28 2008-07-09 北京中星微电子有限公司 A method and device for automatic image acquisition
CN102027505A (en) * 2008-07-30 2011-04-20 泰塞拉技术爱尔兰公司 Automatic face and skin beautification using face detection
US20120027269A1 (en) * 2010-05-21 2012-02-02 Douglas Fidaleo System and method for providing and modifying a personalized face chart

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106373095A (en) * 2016-08-29 2017-02-01 广东欧珀移动通信有限公司 Image processing method and terminal
CN106791365A (en) * 2016-11-25 2017-05-31 努比亚技术有限公司 Facial image preview processing method and processing device
CN107346544A (en) * 2017-06-30 2017-11-14 联想(北京)有限公司 A kind of image processing method and electronic equipment
CN107346544B (en) * 2017-06-30 2020-05-26 联想(北京)有限公司 Image processing method and electronic equipment
CN110662102A (en) * 2018-06-29 2020-01-07 武汉斗鱼网络科技有限公司 Filter gradual change effect display method, storage medium, equipment and system
CN110662102B (en) * 2018-06-29 2021-11-09 武汉斗鱼网络科技有限公司 Filter gradual change effect display method, storage medium, equipment and system

Also Published As

Publication number Publication date
CN105046660B (en) 2017-10-20

Similar Documents

Publication Publication Date Title
CN105046660A (en) Image beautifying method and device
CN102930852B (en) Method of improving mobile terminal system performance by dynamically regulating of screen refresh rate
CN106296578B (en) Image processing method and device
JP6577565B2 (en) Method and apparatus for depth image processing
PH12018500227A1 (en) Method for face recognition-based video human image tracking under complex scenes
CN106658170A (en) Method and device for reducing virtual reality latency
CN104899853A (en) Image region dividing method and device
CN104717509B (en) A kind of video encoding/decoding method and device
US10798406B2 (en) Systems and methods for controlling video display
CN102271262B (en) Multithread-based video processing method for 3D (Three-Dimensional) display
US20130127989A1 (en) Conversion of 2-Dimensional Image Data into 3-Dimensional Image Data
CN104581127B (en) Method, terminal and head-worn display equipment for automatically adjusting screen brightness
CN104574331A (en) Data processing method, device, computer storage medium and user terminal
CN105157698B (en) A kind of method and apparatus that navigation picture is drawn
CN116389831B (en) Yun Yuansheng-based offline rendering system and method
CN105025335A (en) Method for video synchronization rendering in environment of cloud desktop
CN106971399A (en) Image-mosaics detection method and device
CN105303536A (en) Median filtering algorithm based on weighted mean filtering
WO2020125217A1 (en) Expression recognition method and apparatus and recommendation method and apparatus
CN107274409A (en) woven fabric defect segmentation method
CN109842800B (en) Big data compression coding device
EP3800615A1 (en) Method and device for image analysis
CN105163195A (en) Real-time video coding method and electronic equipment
CN110378860A (en) Method, apparatus, computer equipment and the storage medium of restored video
CN105447827A (en) Image noise reduction method and system thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20171020