Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method and system for beautifying portraits

A beauty and portrait technology, applied in the field of portrait beauty methods and systems, can solve problems such as increased time consumption, low CPU utilization, and impact on rendering performance, and achieve the effects of improved execution efficiency, smooth real-time rendering, and excellent performance

Active Publication Date: 2022-02-18
CHENDU PINGUO TECH CO LTD
View PDF8 Cites 0 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 beautifying portraits
  • A method and system for beautifying portraits
  • A method and system for beautifying portraits

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 method and system for beautifying portraits, comprising: 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; performing face key point detection on the image to be processed , to obtain the key points of the original face; according to the predetermined beauty function, the original grid model is sequentially transformed to obtain the transformed grid model; there are more than one predetermined beauty functions; according to the transformed The mesh model and the original face key points are used to calculate the transformed face key points; the transformed mesh model is rendered and / or according to the transformed face key points, the beauty model is obtained image. The technical solution provided by the invention can perform smooth 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 Patents(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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products