基础美颜面板 | 高级美颜面板 |
![]() | ![]() |
V 脸 | 眼距 | 瘦鼻 | 3D 贴纸 |
![]() | ![]() | ![]() | ![]() |
TUILiveKit 默认支持基础美颜,无需单独接入。如果您需要使用高级美颜,请按照以下流程完成接入工作。
settings.gradle 文件,添加下面的代码:include ':tebeautykit'
LicenseUrl 和 LicenseKey,请参见 License 指引。美颜套餐编号、LicenseUrl 和 LicenseKey:TUIBeautyKit.instance.init(context,"LicenseUrl", // 请替换 LicenseUrl"LicenseKey", // 请替换 LicenseKeyBeautyLevel.S1_07 // // 将S1_07替换为您购买的美颜套餐编号)
enum class BeautyLevel {A1_00, A1_01, A1_02, A1_03, A1_04, A1_05, A1_06,S1_00, S1_01, S1_02, S1_03, S1_04, S1_07}
套餐 ( BeautyLevel) | 需要导入的 panel JSON(全集) |
A1_00 | beauty_template, beauty, lut |
A1_01 | beauty_template, beauty, beauty_image, beauty_base_shape, lut |
A1_02 | beauty_template, beauty, beauty_image, beauty_base_shape, lut, motion_2d |
A1_03 | beauty_template, beauty, beauty_image, beauty_general_shape, lut, motion_2d |
A1_04 | beauty_template, beauty, beauty_image, beauty_general_shape, lut |
A1_05 | beauty_template, beauty, beauty_image, beauty_general_shape, lut, motion_2d, segmentation |
A1_06 | beauty_template, beauty, beauty_image, beauty_general_shape, lut, motion_2d, makeup |
S1_00 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut |
S1_01 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, motion_2d, motion_3d, makeup, light_makeup |
S1_02 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, motion_2d, motion_3d, motion_gesture, makeup, light_makeup |
S1_03 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, motion_2d, motion_3d, makeup, light_makeup, segmentation |
S1_04 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, motion_2d, motion_3d, motion_gesture, makeup, light_makeup, segmentation |
S1_05 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, beauty_body, motion_2d, motion_3d, makeup, light_makeup, segmentation |
S1_06 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, beauty_body, motion_2d, motion_3d, motion_gesture, makeup, light_makeup, segmentation |
S1_07 | beauty_template, beauty, beauty_image, beauty_shape, beauty_makeup, lut, beauty_body, motion_2d, motion_3d, motion_gesture, makeup, light_makeup, segmentation |
资源 | 用途 |
assets/beauty_panel/*.json | 面板 UI 配置(分组、按钮、滑杆)。 |
assets/beauty_panel/panel_icon/ | 面板按钮图标 PNG。 |
资源 | 用途 | 对应面板能力 |
lut/ | 滤镜调色查找表。 | 滤镜 Tab |
MotionRes/2dMotionRes/ | 2D 动态贴纸 / 大头特效。 | 贴纸 Tab |
MotionRes/3dMotionRes/ | 3D 模型贴纸。 | 贴纸 Tab |
MotionRes/handMotionRes/ | 手势触发贴纸。 | 手势 Tab |
MotionRes/makeupRes/ | 整妆套装(口红 + 眼影 + 腮红 等)。 | 美妆 Tab |
MotionRes/light_makeup/ | 轻美妆素材。 | 轻美妆 Tab |
MotionRes/segmentMotionRes/ | 人像分割(绿幕 / 抠图 / 背景虚化)。 | 分割 Tab |

LicenseUrl / LicenseKey 是否与套餐绑定、所选 BeautyLevel 是否与 License 匹配,并确认应用的 BundleIdentifier 与 License 申请时绑定的 applicationId 一致。TUIBeautyKit.instance.init( this, LICENSE_URL, LICENSE_KEY) 即可。TUICore.callService("TEBeautyExtension", "destroyBeautyKit", null)。文档反馈