A method and system for portrait beauty

A beautification and portrait technology, applied in the field of portrait beautification methods and systems, can solve problems such as low CPU utilization, time-consuming increase, and affecting rendering performance, and achieve smooth real-time rendering, improved execution efficiency, and improved beautification effects Effect

Active Publication Date: 2019-01-04
CHENDU PINGUO TECH CO LTD
View PDF8 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this type of method usually has the following disadvantages: (1) Some beautiful operations need to perform the same operation repeatedly on the basis of the previous operation step, that is, the execution of the next step depends on the result of the previous step. In this case, it is necessary to The entire image performs multiple GPU pipeline renderings, and the final time-consuming also increases linearly with the number of renderings
(2) Part of the beauty function (such as: thin face) cannot obtain the position information of the key points of the deformed face after rendering by executing the shader script, which will affect the subsequent accurate deformation of the face and the sticker function
(3) The shader script will be executed in the pixel shader stage of the GPU, so each pixel of the image will execute the same algorithm and logic code, but in reality, except for the face area, pixels in other areas do not need to execute the corresponding logic code, which is It is bound to further affect rendering performance
(4) The execution of shader scripts is all done by the GPU, making the CPU utilization extremely low
(5) The shader script language is not good at processing loops, branches, bit operations, and logic operations, and some algorithms and logic programming are not easy to implement (such as the feathering mask function of the liquefaction area)
It can be seen that the above disadvantages will affect the execution speed and effect of the beauty model
And when the user opens many beauty functions, the above method also cannot perform smooth real-time rendering on the mobile terminal

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and system for portrait beauty
  • A method and system for portrait beauty
  • A method and system for portrait beauty

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0024] figure 1 It is a method flowchart of an embodiment of the present invention, including:

[0025] Step 101, performing grid division on the image to be processed according to the resolution of the image to be processed to obtain an original grid model;

[0026] In this embodiment, each grid surface of the original grid model is a square, and the sizes of every two grid surfaces in the original grid model are equal. The specific generation method of the original grid model is as follows:

[0027] (1) Obtain the resolution (w, h) of the image to be processed, the image to be processed is the current camera preview frame or a certain static image; set the grid equal distance s of the image, and obtain the original grid model at The number of grid faces in th...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a portrait beauty type method and a system, comprising the following steps: meshing the image to be processed according to the resolution of the image to be processed to obtainan original mesh model; detecting the key points of the face of the image to be processed, and obtaining the key points of the original face; the original mesh model being sequentially transformed according to a predetermined beauty function to obtain a transformed mesh model, wherein the predetermined beauty function has more than one; calculating the transformed face key points according to thetransformed mesh model and the original face key points; the transformed mesh model being rendered and / or an American image being obtained according to the transformed face key points. The technicalproposal provided by the invention can smoothly perform real-time rendering on the mobile terminal, and has good aesthetic effect.

Description

technical field [0001] The present invention relates to the technical field of image processing, in particular to a method and system for beautifying portraits. Background technique [0002] In recent years, beauty selfie camera applications have been popular among users. Such applications usually include functions such as facial skin smoothing, facial liquefaction, beauty makeup, stickers, and filters. Among them, facial liquefaction (also known as portrait beauty) is an important augmented reality attribute of this type of application, which brings many new and interesting ways to play for users, for example, eye reshaping (big eyes, stretched eye corners, eye distance adjustment, etc.), face reshaping (thin face, small face, chin stretch, forehead stretch, etc.), facial features reshaping (wide face / round face / heart-shaped face / diamond face, exaggerated and interesting face shape, etc.), through different The liquefaction method of the portrait face can achieve different...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06T5/00G06T15/00G06T15/50G06T17/20
CPCG06T5/005G06T5/006G06T15/005G06T15/50G06T17/20G06T2207/30201
Inventor 张学成徐滢
Owner CHENDU PINGUO TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products