Skip to content
A simple demo of realtime face beautification based on GPUImage
Objective-C Ruby
Branch: master
Clone or download
guikunzhi
Latest commit 0401d89 Nov 2, 2016
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BeautifyFaceDemo.xcodeproj add Camera Privacy Description, update pod Nov 2, 2016
BeautifyFaceDemo.xcworkspace init Apr 27, 2016
BeautifyFaceDemo add Camera Privacy Description, update pod Nov 2, 2016
.gitignore init Apr 27, 2016
FlowChart.png add flowchart May 6, 2016
License.txt Create License.txt Apr 27, 2016
Podfile
Podfile.lock add Camera Privacy Description, update pod Nov 2, 2016
README-CN.md Update README-CN.md May 6, 2016
README.md Update README.md May 8, 2016
origin.png add image processing effect image May 5, 2016
result.png add image processing effect image May 5, 2016

README.md

BeautifyFaceDemo

中文介绍

It's a simple demo of realtime face beautification based on GPUImage

GPUImageBeautifyFilter is my custom beauty filter which can be used to beautify live video or static images.

Flow Chart

alt text

Sample Code

You can easily beautify a live video using the following code:

 
GPUImageVideoCamera *videoCamera = [[GPUImageVideoCamera alloc] initWithSessionPreset:AVCaptureSessionPreset640x480 cameraPosition:AVCaptureDevicePositionBack];
videoCamera.outputImageOrientation = UIInterfaceOrientationPortrait;

GPUImageView *filterView = [[GPUImageView alloc] initWithFrame:CGRectMake(0.0, 0.0, viewWidth, viewHeight)];

GPUImageBeautifyFilter *beautifyFilter = [[GPUImageBeautifyFilter alloc] init];
[videoCamera addTarget:beautifyFilter];
[beautifyFilter addTarget:filterView];

[videoCamera startCameraCapture];

ScreenShot

alt textalt text

Reference

http://www.csie.ntu.edu.tw/~fuh/personal/FaceBeautificationandColorEnhancement.A2-1-0040.pdf

http://m.blog.csdn.net/article/details?id=50496969

You can’t perform that action at this time.