Automatic Face thinning and automatic eye enlargement algorithms

Source: Internet
Author: User

Currently, apps with various image effects on mobile phones are prevalent, such as camare360, meitu xiuxiu, and powercalm.The effect implementation of the first version of the image effect software was basically based on the color coloring technology, and there were a fewRelatively goodAlgorithm.

However, the most technical content is the rainbow soft perfect365. In its first release, perfect365 implements facial features.Based on this, automatic eye enlargement, automatic face thinning, and other operations related to face beautification are implemented. However, due to poor selection of parameters,In its first version, the effects of these operations are not natural, especially eye enlargement. Six months later, the new version optimized the parameter selection,The effect is much better than the previous one.

Other software is also not weak, and these features are added in subsequent releases. But they all experienced the same experience as perfect365.Process. Originally, I thought that to achieve automatic face thinning, we needed to accurately locate the face contour and used to build an ASM model. But when I ran the ASM model, I found it was quite time-consuming and gave up! My experiments later showed that automatic face thinning is not necessary for exact positioning.Face contour.

First, of course, face detection and precise human eye positioning are required. After positioning, the local amplification and local distortion algorithms of the image are required.Class algorithms are collectively referred to as morphing. Their earliest references can be traced back to a doctoral thesis in 1993: interactive image warping.This article also providesCodeMy implementation is based on this paper.

If you are interested in the Implementation Details and Parameter Optimization Solutions, please contact me further.

Test image Demo:

Original images and after face detection and human eye positioning:

Eye enlargement:

Eye enlargement + face thinning

Another test image:

 

 

 

The test image is from the network. If copyright is involved, please let us know!

 

 

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.