tencent cloud

Feedback

TXBeautyMananger

Last updated: 2020-03-18 18:22:58
This document is currently invalid. Please refer to the documentation page of the product.

    Basic functions for beauty filter, makeup filter, and animated effect pendants.

    setBeautyStyle

    This API is used to set beauty filter type.

    void setBeautyStyle(int beautyStyle)

    Parameters

    Parameter Type Description
    beautyStyle int Beauty filter style. 0: smooth; 1: natural; 2: misty

    setBeautyLevel

    This API is used to set effect level of the beauty filter.

    void setBeautyLevel(int beautyLevel)

    Parameters

    Parameter Type Description
    beautyLevel int Effect level of the beauty filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setWhitenessLevel

    This API is used to set effect level of the brightening filter.

    void setWhitenessLevel(int whitenessLevel)

    Parameters

    Parameter Type Description
    whitenessLevel int Effect level of the brightening filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setRuddyLevel

    This API is used to set effect level of the rosy skin filter.

    void setRuddyLevel(int ruddyLevel)

    Parameters

    Parameter Type Description
    ruddyLevel int Effect level of the rosy skin filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setEyeScaleLevel

    This API is used to set effect level of the eye enlarging filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setEyeScaleLevel(int eyeScaleLevel)

    Parameters

    Parameter Type Description
    eyeScaleLevel int Effect level of the eye enlarging filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setFaceSlimLevel

    This API is used to set effect level of the face slimming filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setFaceSlimLevel(int faceSlimLevel)

    Parameters

    Parameter Type Description
    faceSlimLevel int Effect level of the face slimming filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setFaceVLevel

    This API is used to set effect level of the chin slimming filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setFaceVLevel(int faceVLevel)

    Parameters

    Parameter Type Description
    faceVLevel int Effect level of the chin slimming filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setChinLevel

    This API is used to set effect level of the chin lengthening/shortening or shortening filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setChinLevel(int chinLevel)

    Parameters

    Parameter Type Description
    chinLevel int Effect level of the chin lengthening/shortening filter. Value range: -9–9; 0 indicates that the filter is disabled, a value smaller than 0 indicates that the chin is shortened, while a value greater than 0 indicates that the chin is lengthened.

    setFaceShortLevel

    This API is used to set effect level of the face shortening filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setFaceShortLevel(int faceShortlevel)

    Parameters

    Parameter Type Description
    faceShortlevel int Effect level of the face shortening filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setNoseSlimLevel

    This API is used to set effect level of the nose slimming filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setNoseSlimLevel(int noseSlimLevel)

    Parameters

    Parameter Type Description
    noseSlimLevel int Effect level of the nose slimming filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setEyeLightenLevel

    This API is used to set effect level of the eye brightening filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setEyeLightenLevel(int eyeLightenLevel) 

    Parameters

    Parameter Type Description
    eyeLightenLevel int Effect level of the eye brightening filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setToothWhitenLevel

    This API is used to set effect level of the teeth whitening filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setToothWhitenLevel(int toothWhitenLevel) 

    Parameters

    Parameter Type Description
    toothWhitenLevel int Effect level of the teeth whitening filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setWrinkleRemoveLevel

    This API is used to set effect level of the wrinkle removal filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setWrinkleRemoveLevel(int wrinkleRemoveLevel)

    Parameters

    Parameter Type Description
    wrinkleRemoveLevel int Effect level of the wrinkle removal filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setPounchRemoveLevel

    This API is used to set effect level of the eye bag removal filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setPounchRemoveLevel(int pounchRemoveLevel) 

    Parameters

    Parameter Type Description
    pounchRemoveLevel int Effect level of the eye bag removal filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setSmileLinesRemoveLevel

    This API is used to set effect level of the smile line removal filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setSmileLinesRemoveLevel(int smileLinesRemoveLevel)

    Parameters

    Parameter Type Description
    smileLinesRemoveLevel int Effect level of the smile line removal filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setForeheadLevel

    This API is used to set effect level of the hairline lowering filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setForeheadLevel(int foreheadLevel)

    Parameters

    Parameter Type Description
    foreheadLevel int Effect level of the hairline lowering filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the lower the hairline.

    setEyeDistanceLevel

    This API is used to set effect level of the eye distance shortening filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setEyeDistanceLevel(int eyeDistanceLevel) 

    Parameters

    Parameter Type Description
    eyeDistanceLevel int Effect level of the eye distance shortening filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the shorter the eye distance.

    setEyeAngleLevel

    This API is used to set effect level of the eye tilting filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setEyeAngleLevel(int eyeAngleLevel)

    Parameters

    Parameter Type Description
    eyeAngleLevel int Effect level of the eye tilting filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more upward the outer eye corners, and the more downward the inner eye corners.

    setMouthShapeLevel

    This API is used to set effect level of the mouth narrowing filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setMouthShapeLevel(int mouthShapeLevel)

    Parameters

    Parameter Type Description
    mouthShapeLevel int Effect level of the mouth narrowing filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the smaller the mouth.

    setNoseWingLevel

    This API is used to set effect level of the nose wing narrowing filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setNoseWingLevel(int noseWingLevel)

    Parameters

    Parameter Type Description
    noseWingLevel int Effect level of the nose wing narrowing filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the smaller the nose wing.

    setNosePositionLevel

    This API is used to set nose position (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setNosePositionLevel(int nosePositionLevel)

    Parameters

    Parameter Type Description
    nosePositionLevel int Nose position level. Value range: 0–9; 0 indicates that the effect is disabled, and the greater the value, the lower the nose position.

    setLipsThicknessLevel

    This API is used to set effect level of the lip thickening filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setLipsThicknessLevel(int lipsThicknessLevel)

    Parameters

    Parameter Type Description
    lipsThicknessLevel int Effect level of the lip thickening filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the thicker the lips.

    setFaceBeautyLevel

    This API is used to set effect level of the face shape filter (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setFaceBeautyLevel(int faceBeautyLevel)

    Parameters

    Parameter Type Description
    faceBeautyLevel int Effect level of the face shape filter. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more obvious the effect.

    setMotionTmpl

    This API is used to select AI animated effect pendant (it takes effect only in TRTC Commercial edition and is invalid in other editions).

    void setMotionTmpl(String motionPath)

    Parameters

    Parameter Type Description
    motionPath String Path to the animated effect.

    setMotionMute

    This API is used to mute animated effect (it takes effect only in TRTC Commercial edition and is invalid in other editions). Some animated effects have audio effects, which can be disabled through this API when they are played back.

    void setMotionMute(boolean motionMute)

    Parameters

    Parameter Type Description
    motionMute boolean true: mutes; false: does not mute.
    Contact Us

    Contact our sales team or business advisors to help your business.

    Technical Support

    Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

    7x24 Phone Support