FuncList | DESC |
Sets the beauty (skin smoothing) filter algorithm. | |
Sets the strength of the beauty filter. | |
Sets the strength of the brightening filter. | |
Enables clarity enhancement. | |
Sets the strength of the rosy skin filter. | |
Sets color filter. | |
Sets the strength of color filter. | |
Sets green screen video. | |
Sets the strength of the eye enlarging filter. | |
Sets the strength of the face slimming filter. | |
Sets the strength of the chin slimming filter. | |
Sets the strength of the chin lengthening/shortening filter. | |
Sets the strength of the face shortening filter. | |
Sets the strength of the face narrowing filter. | |
Sets the strength of the nose slimming filter. | |
Sets the strength of the eye brightening filter. | |
Sets the strength of the teeth whitening filter. | |
Sets the strength of the wrinkle removal filter. | |
Sets the strength of the eye bag removal filter. | |
Sets the strength of the smile line removal filter. | |
Sets the strength of the hairline adjustment filter. | |
Sets the strength of the eye distance adjustment filter. | |
Sets the strength of the eye corner adjustment filter. | |
Sets the strength of the mouth shape adjustment filter. | |
Sets the strength of the nose wing narrowing filter. | |
Sets the strength of the nose position adjustment filter. | |
Sets the strength of the lip thickness adjustment filter. | |
Sets the strength of the face shape adjustment filter. | |
Selects the AI animated effect pendant. | |
Sets whether to mute during animated effect playback. |
EnumType | DESC |
Beauty (skin smoothing) filter algorithm. |
- (void)setBeautyStyle: |
Param | DESC |
beautyStyle | Beauty filter style. TXBeautyStyleSmooth : smooth; TXBeautyStyleNature : natural; TXBeautyStylePitu : Pitu |
- (void)setBeautyLevel: | (float)beautyLevel |
Param | DESC |
beautyLevel | Strength of the beauty filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (void)setWhitenessLevel: | (float)whitenessLevel |
Param | DESC |
whitenessLevel | Strength of the brightening filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (void)enableSharpnessEnhancement: | (BOOL)enable |
- (void)setRuddyLevel: | (float)ruddyLevel |
Param | DESC |
ruddyLevel | Strength of the rosy skin filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (void)setFilter: | (nullable TXImage *)image |
Param | DESC |
image | Color lookup table containing color mapping relationships. The image must be in PNG format. |
- (void)setFilterStrength: | (float)strength |
Param | DESC |
strength | Value range: [0, 1]. The greater the value, the more obvious the effect. Default value: 0.5 |
- (int)setGreenScreenFile: | (nullable NSString *)path |
Param | DESC |
path | Path of the video file in MP4 format. An empty value indicates to disable the effect. |
- (int)setEyeScaleLevel: | (float)eyeScaleLevel |
Param | DESC |
eyeScaleLevel | Strength of the eye enlarging filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setFaceSlimLevel: | (float)faceSlimLevel |
Param | DESC |
faceSlimLevel | Strength of the face slimming filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setFaceVLevel: | (float)faceVLevel |
Param | DESC |
faceVLevel | Strength of the chin slimming filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setChinLevel: | (float)chinLevel |
Param | DESC |
chinLevel | Strength of the chin lengthening/shortening filter. Value range: [-9, 9]. 0 indicates to disable the filter, a value smaller than 0 indicates that the chin is shortened, and a value greater than 0 indicates that the chin is lengthened. |
- (int)setFaceShortLevel: | (float)faceShortLevel |
Param | DESC |
faceShortLevel | Strength of the face shortening filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setFaceNarrowLevel: | (float)faceNarrowLevel |
Param | DESC |
level | Strength of the face narrowing filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setNoseSlimLevel: | (float)noseSlimLevel |
Param | DESC |
noseSlimLevel | Strength of the nose slimming filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setEyeLightenLevel: | (float)eyeLightenLevel |
Param | DESC |
eyeLightenLevel | Strength of the eye brightening filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setToothWhitenLevel: | (float)toothWhitenLevel |
Param | DESC |
toothWhitenLevel | Strength of the teeth whitening filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setWrinkleRemoveLevel: | (float)wrinkleRemoveLevel |
Param | DESC |
wrinkleRemoveLevel | Strength of the wrinkle removal filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setPounchRemoveLevel: | (float)pounchRemoveLevel |
Param | DESC |
pounchRemoveLevel | Strength of the eye bag removal filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setSmileLinesRemoveLevel: | (float)smileLinesRemoveLevel |
Param | DESC |
smileLinesRemoveLevel | Strength of the smile line removal filter. Value range: [0, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setForeheadLevel: | (float)foreheadLevel |
Param | DESC |
foreheadLevel | Strength of the hairline adjustment filter. Value range: [-9, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setEyeDistanceLevel: | (float)eyeDistanceLevel |
Param | DESC |
eyeDistanceLevel | Strength of the eye distance adjustment filter. Value range: [-9, 9]. 0 indicates to disable the filter, a value smaller than 0 indicates to widen, and a value greater than 0 indicates to narrow. |
- (int)setEyeAngleLevel: | (float)eyeAngleLevel |
Param | DESC |
eyeAngleLevel | Strength of the eye corner adjustment filter. Value range: [-9, 9]. 0 indicates to disable the filter, and 9 indicates the most obvious effect. |
- (int)setMouthShapeLevel: | (float)mouthShapeLevel |
Param | DESC |
mouthShapeLevel | Strength of the mouth shape adjustment filter. Value range: [-9, 9]. 0 indicates to disable the filter, a value smaller than 0 indicates to widen, and a value greater than 0 indicates to narrow. |
- (int)setNoseWingLevel: | (float)noseWingLevel |
Param | DESC |
noseWingLevel | Strength of the nose wing adjustment filter. Value range: [-9, 9]. 0 indicates to disable the filter, a value smaller than 0 indicates to widen, and a value greater than 0 indicates to narrow. |
- (int)setNosePositionLevel: | (float)nosePositionLevel |
Param | DESC |
nosePositionLevel | Strength of the nose position adjustment filter. Value range: [-9, 9]. 0 indicates to disable the filter, a value smaller than 0 indicates to lift, and a value greater than 0 indicates to lower. |
- (int)setLipsThicknessLevel: | (float)lipsThicknessLevel |
Param | DESC |
lipsThicknessLevel | Strength of the lip thickness adjustment filter. Value range: [-9, 9]. 0 indicates to disable the filter, a value smaller than 0 indicates to thicken, and a value greater than 0 indicates to thin. |
- (int)setFaceBeautyLevel: | (float)faceBeautyLevel |
Param | DESC |
faceBeautyLevel | Strength of the face shape adjustment filter. Value range: [0, 9]. 0 indicates to disable the filter, and the greater the value, the more obvious the effect. |
- (void)setMotionTmpl: | (nullable NSString *)tmplName |
inDir: | (nullable NSString *)tmplDir |
Param | DESC |
tmplDir | Directory of the animated effect material file |
tmplName | Animated effect pendant name |
- (void)setMotionMute: | (BOOL)motionMute |
Param | DESC |
motionMute | YES : mute; NO : unmute |
Enum | Value | DESC |
TXBeautyStyleSmooth | 0 | Smooth style, which uses a more radical algorithm for more obvious effect and is suitable for show live streaming. |
TXBeautyStyleNature | 1 | Natural style, which retains more facial details for more natural effect and is suitable for most live streaming use cases. |
TXBeautyStylePitu | 2 | Pitu style, which is provided by YouTu Lab. Its skin smoothing effect is between the smooth style and the natural style, that is, it retains more skin details than the smooth style and has a higher skin smoothing degree than the natural style. |
Feedback