iOS 的资源配置文件分别是 TuSDK.bundle/others/lsq_tusdk_configs.json
{
/* 滤镜组 */
"filterGroups": [
{
/* 滤镜组文件 */
"file": "lsq_filter_Leica_1.gfilter",
**********/* 滤镜组名字 */**********
"name": "lsq_filter_group_Leica",
/* 滤镜组默认滤镜 */
"default_filter_id": 12,
/* 滤镜名称背景色 */
"color": "#E74C3C",
/* 滤镜 */
"filters": [
{
/* 滤镜 id */
"id": 11,
/* 滤镜名字 */
"name": "lsq_filter_Brilliant",
/* 滤镜缩略图 */
"thumb": "lsq_filter_thumb_Brilliant",
/* 滤镜名称背景色 */
"color": "#E74C3C",
/* 滤镜参数 */
"args": {
/* 混合 */
"mixied": 0.5
}
},
{ "id": 12, "name": "lsq_filter_Leica" },
{ "id": 13, "name": "lsq_filter_Gloss" },
{ "id": 14, "name": "lsq_filter_Harmony" },
{ "id": 15, "name": "lsq_filter_Noir" }
]
},
{
"file": "lsq_filter_Beauty_6.gfilter",
"default_filter_id": 65,
"filters": [
{ "id": 61, "name": "lsq_filter_SkinNature" },
{ "id": 62, "name": "lsq_filter_SkinPink" },
{ "id": 63, "name": "lsq_filter_SkinJelly" },
{ "id": 64, "name": "lsq_filter_SkinNoir" },
{ "id": 65, "name": "lsq_filter_SkinRuddy" },
{ "id": 66, "name": "lsq_filter_SkinPowder" },
{ "id": 67, "name": "lsq_filter_SkinSugar" }
]
}
]
}
用户需要查阅 TuSDK.bundle/others/lsq_tusdk_configs.json
中相关的 name
字段。
获取到相应的滤镜文件名称,例如 lsq_filter_SkinSugar
。需要在对应的 TuSDK.strins
文件中添加相应字段。例如
// Beauty
"lsq_filter_SkinNature" = "自然";
"lsq_filter_SkinPink" = "粉嫩";
"lsq_filter_SkinJelly" = "果冻";
"lsq_filter_SkinNoir" = "黑白";
"lsq_filter_SkinRuddy" = "红润";
"lsq_filter_SkinPowder" = "蜜粉";
"lsq_filter_SkinSugar" = "糖水色";
lsq_filter_SkinSugar
这组滤镜在 SDK 中显示的名字就会是糖水色。©2019-2024 TUTUCLOUD. All Rights Reserved. 杭州元凡视觉智能科技有限公司 | 浙ICP备14040447号-1 | 浙公网安备33010602001649号