// Specify whether to enable advanced retouching.
engine.enableBeautyType(BeautyFilterType.kFaceBuffing, true);
// Set the level of smile line removal. Valid values: [0,1].
engine.setBeautyParam(BeautyParams.kBPNasolabialFolds, 0.3f);
// Set the level of eye-bag removal. Valid values: 0 to 1.
engine.setBeautyParam(BeautyParams.kBPPouch, 0.3f);
// Set the level of teeth whitening. Valid values: 0 to 1.
engine.setBeautyParam(BeautyParams.kBPWhiteTeeth, 0.2f);
// Set the level of lipstick effects. Valid values: 0 to 1.
engine.setBeautyParam(BeautyParams.kBPLipstick, 0.2f);
// Set the level of blush effects. Valid values: 0 to 1.
engine.setBeautyParam(BeautyParams.kBPBlush, 0.2f);
// Set the level of eye brightening. Valid values: 0 to 1.
engine.setBeautyParam(BeautyParams.kBPBrightenEye, 1.0f);
// Set the level of rosy cheeks. Valid values: 0 to 1.
engine.setBeautyParam(BeautyParams.kBPBlush, 1.0f);
// Set the lipstick color. Valid values: -0.5 to 0.5. You must set the color, saturation, and brightness together. You can set this parameter to -0.125 for ochre, -0.1 for pink, 0.0 for vintage red, -0.2 for magenta, -0.08 for true red, 0.0 for orange red, -0.42 for purple, 0.125 for orange, and 0.25 for yellow.
engine.setBeautyParam(BeautyParams.kBPLipstickColorParam, 0.0f);
// Set the saturation of lipstick. Valid values: 0 to 1. You must set the color, saturation, and brightness together. You can set this parameter to 0.25 for ochre, 0.125 for pink, 1.0 for vintage red, 0.35 for magenta, 1.0 for true red, 0.35 for orange red, 0.35 for purple, 0.25 for orange, and 0.45 for yellow.
engine.setBeautyParam(BeautyParams.kBPLipstickGlossParam, 0.0f);
// Set the brightness of lipstick. Valid values: 0 to 1. You must set the color, saturation, and brightness together. You can set this parameter to 0.4 for ochre, 0.0 for pink, 0.2 for vintage red, 0.0 for magenta, 0.0 for true red, 0.0 for orange red, 0.0 for purple, 0.0 for orange, and 0.0 for yellow.
engine.setBeautyParam(BeautyParams.kBPLipstickBrightnessParam, 1.0f);
// Set the level of wrinkle removal. Valid values: 0 to 1.
engine.setBeautyParam(BeautyParams.kBPWrinkles, 0.2f);
// Set the level of skin brightening. Valid values: 0 to 1.
engine.setBeautyParam(BeautyParams.kBPBrightenFace, 0.2f);
// Enable the hue, saturation, and value (HSV) color model.
engine.enableBeautyType(BeautyFilterType.kHSV,true);
// Set the level of saturation. Valid values: [-1,1].
engine.setBeautyParam(BeautyParams.kBPHSV_SATURATION,0.2f);
// Set the level of contrast. Valid values: [-1,1].
engine.setBeautyParam(BeautyParams.kBPHSV_CONTRAST,0.2f);