UyaliBeautyFaceSDK is a comprehensive beauty enhancement SDK comparable to commercial-grade standards, integrating various functions such as beauty enhancement, facial shaping, and stickers. Currently, only the basic development of the facial shaping module has been completed, with beauty enhancement and sticker features to be gradually added in later stages.
**If you think this project is good, could you give it a star to show your support? Thank you!**🙏
English/中文
Note: As this is self-developed, there may be undiscovered bugs. It is advisable to use with caution for commercial purposes.
Function Planning
- Beauty: Functions include whitening, smoothing, brightening eyes, whitening teeth, etc.(Completed filters for whitening, smoothing, brightening eyes, and whitening teeth.)
- Reshape: Features for adjusting facial aspects such as small head, slim face, large eyes, forehead, cheekbones, eyebrows, etc.(Nineteen facial enhancement filters have been completed.)
- Makeup: Features include eyebrows, eye makeup, contact lenses, blush, lipstick, etc.(Preliminary planning for all cosmetic filters has been completed.)
- Stickers: Planned (Not Completed)
- Adaptation for Android (Not Completed)
Demonstration materials are sourced from the internet. If there are any copyright concerns, please contact daiyangyang945@126.com for removal.
Face | Chin | Eye distance |
---|---|---|
Nose | Eyebrow distance |
---|---|
Makeup: eyebrow | Makeup: Lipstick |
---|---|
To be continued...
Simply copy the UyaliBeautyFaceSDK from the demo into your own project.
Initialization:
private let filter = UyaliBeautyFaceEngine()
Image Rendering Processing:
filter.process(pixelBuffer: pixelBuffer!)
Reshape Parameter Configuration:
filter.faceThin_delta = 100 //Range of Slimming Parameters for the Face 0 - 100
Beauty Parameter Configuration:
filter.white_delta = 100 //Range of Whitening Parameters 0 - 100
Makeup Parameter Configuration:
//Makeup filters require two parameters to be set: the first one is the makeup intensity value, and the second one is the makeup style.
filter.makeup_eyebrow_delta = 100 // Makeup: Eyebrow Parameter Range 0 - 100
filter.makeup_eyebrow_type = .eyebrow_cupin //Set the style of the eyebrows to "Cupin".
If there are prompts during integration,
Library not loaded: @rpath/UyaliBeautyFaceSDK.framework/UyaliBeautyFaceSDK
You can enter Build Phases, click on the plus sign at the top left corner, select New Copy Files Phase, then click on the created Copy Files. Set Destination to Frameworks, then click on the plus sign below and add UyaliBeautyFaceSDK.framework.
To be continued
iPhone7 测试
美颜渲染(小头、瘦脸、大眼、瘦鼻等) | |
---|---|
CPU | |
Memory | |
Energy | |
GPU |