@tencent-rtc/mcp 1.2.8 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/resource/doc/chatuikit/faq/common/server.md +44 -0
- package/resource/doc/chatuikit/faq/web_sdk/faq.md +57 -0
- package/resource/doc/livekit/vue/components/co-guest-panel.md +3 -3
- package/resource/doc/livekit/vue/components/live-view.md +4 -4
- package/resource/doc/livekit/vue/{components/live-list.md → live-list-integration.md} +7 -7
- package/resource/doc/livekit/vue/{components/live-player.md → live-player-desk-integration.md} +8 -8
- package/resource/doc/livekit/vue/live-player-h5-integration.md +269 -0
- package/resource/doc/livekit/vue/workflow.md +218 -0
- package/resource/doc/native_live/android/V2TXLiveCode_api_android.md +312 -0
- package/resource/doc/native_live/android/V2TXLiveDef_api_android.md +430 -0
- package/resource/doc/native_live/android/V2TXLivePlayerObserver_api_android.md +679 -0
- package/resource/doc/native_live/android/V2TXLivePlayer_api_android.md +671 -0
- package/resource/doc/native_live/android/V2TXLivePremier_api_android.md +271 -0
- package/resource/doc/native_live/android/V2TXLivePusherObserver_api_android.md +849 -0
- package/resource/doc/native_live/android/V2TXLivePusher_api_android.md +1046 -0
- package/resource/doc/native_live/flutter/V2TXLiveCode_api_flutter.md +460 -0
- package/resource/doc/native_live/flutter/V2TXLiveDef_api_flutter.md +558 -0
- package/resource/doc/native_live/flutter/V2TXLivePlayerObserver_api_flutter.md +865 -0
- package/resource/doc/native_live/flutter/V2TXLivePlayer_api_flutter.md +657 -0
- package/resource/doc/native_live/flutter/V2TXLivePremier_api_flutter.md +437 -0
- package/resource/doc/native_live/flutter/V2TXLivePusherObserver_api_flutter.md +335 -0
- package/resource/doc/native_live/flutter/V2TXLivePusher_api_flutter.md +748 -0
- package/resource/doc/native_live/iOS/V2TXLiveCode_api_iOS.md +327 -0
- package/resource/doc/native_live/iOS/V2TXLiveDef_api_iOS.md +507 -0
- package/resource/doc/native_live/iOS/V2TXLivePlayerObserver_api_iOS.md +507 -0
- package/resource/doc/native_live/iOS/V2TXLivePlayer_api_iOS.md +659 -0
- package/resource/doc/native_live/iOS/V2TXLivePremier_api_iOS.md +284 -0
- package/resource/doc/native_live/iOS/V2TXLivePusherObserver_api_iOS.md +814 -0
- package/resource/doc/native_live/iOS/V2TXLivePusher_api_iOS.md +1000 -0
- package/resource/doc/trtc/C++/ITRTCCloud.md +4119 -0
- package/resource/doc/trtc/C++/ITRTCStatistics.md +325 -0
- package/resource/doc/trtc/C++/ITXAudioEffectManager.md +1289 -0
- package/resource/doc/trtc/C++/ITXDeviceManager.md +1028 -0
- package/resource/doc/trtc/C++/TRTCCloudCallback.md +2650 -0
- package/resource/doc/trtc/C++/TRTCTypeDef.md +3600 -0
- package/resource/doc/trtc/C++/TXLiteAVCode.md +921 -0
- package/resource/doc/trtc/android/TRTCCloud.md +3782 -0
- package/resource/doc/trtc/android/TRTCCloudDef.md +3880 -0
- package/resource/doc/trtc/android/TRTCCloudListener.md +2431 -0
- package/resource/doc/trtc/android/TRTCStatistics.md +295 -0
- package/resource/doc/trtc/android/TXAudioEffectManager.md +1289 -0
- package/resource/doc/trtc/android/TXBeautyManager.md +979 -0
- package/resource/doc/trtc/android/TXDeviceManager.md +440 -0
- package/resource/doc/trtc/android/TXLiteAVCode.md +905 -0
- package/resource/doc/trtc/iOS/TRTCCloud.md +4238 -0
- package/resource/doc/trtc/iOS/TRTCCloudDef.md +3730 -0
- package/resource/doc/trtc/iOS/TRTCCloudDelegate.md +2531 -0
- package/resource/doc/trtc/iOS/TRTCStatistics.md +295 -0
- package/resource/doc/trtc/iOS/TXAudioEffectManager.md +1100 -0
- package/resource/doc/trtc/iOS/TXBeautyManager.md +985 -0
- package/resource/doc/trtc/iOS/TXDeviceManager.md +1024 -0
- package/resource/doc/trtc/iOS/TXLiteAVCode.md +928 -0
- package/tools/definitions/get_faq_def.js +4 -0
- package/tools/definitions/get_faq_def.js.map +1 -1
- package/tools/definitions/get_native_live_api_def.js +23 -0
- package/tools/definitions/get_native_live_api_def.js.map +1 -0
- package/tools/definitions/get_trtc_native_api_def.js +16 -0
- package/tools/definitions/get_trtc_native_api_def.js.map +1 -0
- package/tools/definitions/get_web_live_uikit_component_detail_def.js +13 -8
- package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +1 -1
- package/tools/definitions/get_web_live_uikit_integration_def.js +32 -0
- package/tools/definitions/get_web_live_uikit_integration_def.js.map +1 -0
- package/tools/index.js +8 -0
- package/tools/index.js.map +1 -1
- package/tools/live/get-web-live-uikit-integration.js +52 -0
- package/tools/live/get-web-live-uikit-integration.js.map +1 -0
- package/tools/native_live/get-native-live-api.js +31 -0
- package/tools/native_live/get-native-live-api.js.map +1 -0
- package/tools/trtc/get-trtc-native-api.js +31 -0
- package/tools/trtc/get-trtc-native-api.js.map +1 -0
- package/utils/generate-structured-result.js +34 -0
- package/utils/generate-structured-result.js.map +1 -0
- package/utils/handle-component-name.js +0 -8
- package/utils/handle-component-name.js.map +1 -1
- package/utils/report-cls-client.js +1 -1
- package/utils/report-es-client.js +1 -1
- /package/resource/doc/livekit/vue/{components/broadcast.md → live-pusher-integration.md} +0 -0
|
@@ -0,0 +1,979 @@
|
|
|
1
|
+
# TRTC Real-Time Communication (TRTC SDK) Documentation
|
|
2
|
+
## Feature Overview
|
|
3
|
+
`TXBeautyManager.java` provides configuration options for beauty filters and image enhancement features on the TRTC Real-Time Communication (TRTC SDK) Android platform. Use this class to adjust parameters for beauty filters, effects, green screen, and related image processing features.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
## TXBeautyManager
|
|
7
|
+
<table>
|
|
8
|
+
<tr>
|
|
9
|
+
<td rowspan="1" colSpan="1" >Function List</td>
|
|
10
|
+
|
|
11
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
12
|
+
</tr>
|
|
13
|
+
|
|
14
|
+
<tr>
|
|
15
|
+
<td rowspan="1" colSpan="1" >[setBeautyStyle](https://write.woa.com/document/87029968748064768)</td>
|
|
16
|
+
|
|
17
|
+
<td rowspan="1" colSpan="1" >Set skin smoothing algorithm</td>
|
|
18
|
+
</tr>
|
|
19
|
+
|
|
20
|
+
<tr>
|
|
21
|
+
<td rowspan="1" colSpan="1" >[setBeautyLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
22
|
+
|
|
23
|
+
<td rowspan="1" colSpan="1" >Set beauty filter effect level</td>
|
|
24
|
+
</tr>
|
|
25
|
+
|
|
26
|
+
<tr>
|
|
27
|
+
<td rowspan="1" colSpan="1" >[setWhitenessLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
28
|
+
|
|
29
|
+
<td rowspan="1" colSpan="1" >Set brightening filter effect level</td>
|
|
30
|
+
</tr>
|
|
31
|
+
|
|
32
|
+
<tr>
|
|
33
|
+
<td rowspan="1" colSpan="1" >[enableSharpnessEnhancement](https://write.woa.com/document/87029968748064768)</td>
|
|
34
|
+
|
|
35
|
+
<td rowspan="1" colSpan="1" >Enable clarity enhancement</td>
|
|
36
|
+
</tr>
|
|
37
|
+
|
|
38
|
+
<tr>
|
|
39
|
+
<td rowspan="1" colSpan="1" >[setRuddyLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
40
|
+
|
|
41
|
+
<td rowspan="1" colSpan="1" >Set rosy filter effect level</td>
|
|
42
|
+
</tr>
|
|
43
|
+
|
|
44
|
+
<tr>
|
|
45
|
+
<td rowspan="1" colSpan="1" >[setFilter](https://write.woa.com/document/87029968748064768)</td>
|
|
46
|
+
|
|
47
|
+
<td rowspan="1" colSpan="1" >Set color filter effect</td>
|
|
48
|
+
</tr>
|
|
49
|
+
|
|
50
|
+
<tr>
|
|
51
|
+
<td rowspan="1" colSpan="1" >[setFilterStrength](https://write.woa.com/document/87029968748064768)</td>
|
|
52
|
+
|
|
53
|
+
<td rowspan="1" colSpan="1" >Set the intensity of color filter</td>
|
|
54
|
+
</tr>
|
|
55
|
+
|
|
56
|
+
<tr>
|
|
57
|
+
<td rowspan="1" colSpan="1" >[setGreenScreenFile](https://write.woa.com/document/87029968748064768)</td>
|
|
58
|
+
|
|
59
|
+
<td rowspan="1" colSpan="1" >Set green screen background video</td>
|
|
60
|
+
</tr>
|
|
61
|
+
|
|
62
|
+
<tr>
|
|
63
|
+
<td rowspan="1" colSpan="1" >[setEyeScaleLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
64
|
+
|
|
65
|
+
<td rowspan="1" colSpan="1" >Set big eyes filter effect level</td>
|
|
66
|
+
</tr>
|
|
67
|
+
|
|
68
|
+
<tr>
|
|
69
|
+
<td rowspan="1" colSpan="1" >[setFaceSlimLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
70
|
+
|
|
71
|
+
<td rowspan="1" colSpan="1" >Set face slimming filter effect level</td>
|
|
72
|
+
</tr>
|
|
73
|
+
|
|
74
|
+
<tr>
|
|
75
|
+
<td rowspan="1" colSpan="1" >[setFaceVLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
76
|
+
|
|
77
|
+
<td rowspan="1" colSpan="1" >Set V face filter effect level</td>
|
|
78
|
+
</tr>
|
|
79
|
+
|
|
80
|
+
<tr>
|
|
81
|
+
<td rowspan="1" colSpan="1" >[setChinLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
82
|
+
|
|
83
|
+
<td rowspan="1" colSpan="1" >Set chin stretch or shrink</td>
|
|
84
|
+
</tr>
|
|
85
|
+
|
|
86
|
+
<tr>
|
|
87
|
+
<td rowspan="1" colSpan="1" >[setFaceShortLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
88
|
+
|
|
89
|
+
<td rowspan="1" colSpan="1" >Set short face filter effect level</td>
|
|
90
|
+
</tr>
|
|
91
|
+
|
|
92
|
+
<tr>
|
|
93
|
+
<td rowspan="1" colSpan="1" >[setFaceNarrowLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
94
|
+
|
|
95
|
+
<td rowspan="1" colSpan="1" >Set narrow face filter effect level</td>
|
|
96
|
+
</tr>
|
|
97
|
+
|
|
98
|
+
<tr>
|
|
99
|
+
<td rowspan="1" colSpan="1" >[setNoseSlimLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
100
|
+
|
|
101
|
+
<td rowspan="1" colSpan="1" >Set nose slimming filter effect level</td>
|
|
102
|
+
</tr>
|
|
103
|
+
|
|
104
|
+
<tr>
|
|
105
|
+
<td rowspan="1" colSpan="1" >[setEyeLightenLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
106
|
+
|
|
107
|
+
<td rowspan="1" colSpan="1" >Set eye-catching filter effect level</td>
|
|
108
|
+
</tr>
|
|
109
|
+
|
|
110
|
+
<tr>
|
|
111
|
+
<td rowspan="1" colSpan="1" >[setToothWhitenLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
112
|
+
|
|
113
|
+
<td rowspan="1" colSpan="1" >Set teeth whitening filter effect level</td>
|
|
114
|
+
</tr>
|
|
115
|
+
|
|
116
|
+
<tr>
|
|
117
|
+
<td rowspan="1" colSpan="1" >[setWrinkleRemoveLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
118
|
+
|
|
119
|
+
<td rowspan="1" colSpan="1" >Set wrinkle removal filter effect level</td>
|
|
120
|
+
</tr>
|
|
121
|
+
|
|
122
|
+
<tr>
|
|
123
|
+
<td rowspan="1" colSpan="1" >[setPounchRemoveLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
124
|
+
|
|
125
|
+
<td rowspan="1" colSpan="1" >Set puffiness removal filter effect level</td>
|
|
126
|
+
</tr>
|
|
127
|
+
|
|
128
|
+
<tr>
|
|
129
|
+
<td rowspan="1" colSpan="1" >[setSmileLinesRemoveLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
130
|
+
|
|
131
|
+
<td rowspan="1" colSpan="1" >Set nasolabial fold removal filter effect level</td>
|
|
132
|
+
</tr>
|
|
133
|
+
|
|
134
|
+
<tr>
|
|
135
|
+
<td rowspan="1" colSpan="1" >[setForeheadLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
136
|
+
|
|
137
|
+
<td rowspan="1" colSpan="1" >Set hairline adjustment filter effect level</td>
|
|
138
|
+
</tr>
|
|
139
|
+
|
|
140
|
+
<tr>
|
|
141
|
+
<td rowspan="1" colSpan="1" >[setEyeDistanceLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
142
|
+
|
|
143
|
+
<td rowspan="1" colSpan="1" >Set interpupillary distance</td>
|
|
144
|
+
</tr>
|
|
145
|
+
|
|
146
|
+
<tr>
|
|
147
|
+
<td rowspan="1" colSpan="1" >[setEyeAngleLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
148
|
+
|
|
149
|
+
<td rowspan="1" colSpan="1" >Set eye corner adjustment filter effect level</td>
|
|
150
|
+
</tr>
|
|
151
|
+
|
|
152
|
+
<tr>
|
|
153
|
+
<td rowspan="1" colSpan="1" >[setMouthShapeLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
154
|
+
|
|
155
|
+
<td rowspan="1" colSpan="1" >Set mouth shape adjustment filter effect level</td>
|
|
156
|
+
</tr>
|
|
157
|
+
|
|
158
|
+
<tr>
|
|
159
|
+
<td rowspan="1" colSpan="1" >[setNoseWingLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
160
|
+
|
|
161
|
+
<td rowspan="1" colSpan="1" >Set nose wing adjustment filter effect level</td>
|
|
162
|
+
</tr>
|
|
163
|
+
|
|
164
|
+
<tr>
|
|
165
|
+
<td rowspan="1" colSpan="1" >[setNosePositionLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
166
|
+
|
|
167
|
+
<td rowspan="1" colSpan="1" >Set nose position</td>
|
|
168
|
+
</tr>
|
|
169
|
+
|
|
170
|
+
<tr>
|
|
171
|
+
<td rowspan="1" colSpan="1" >[setLipsThicknessLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
172
|
+
|
|
173
|
+
<td rowspan="1" colSpan="1" >Set lip thickness</td>
|
|
174
|
+
</tr>
|
|
175
|
+
|
|
176
|
+
<tr>
|
|
177
|
+
<td rowspan="1" colSpan="1" >[setFaceBeautyLevel](https://write.woa.com/document/87029968748064768)</td>
|
|
178
|
+
|
|
179
|
+
<td rowspan="1" colSpan="1" >Set face shape</td>
|
|
180
|
+
</tr>
|
|
181
|
+
|
|
182
|
+
<tr>
|
|
183
|
+
<td rowspan="1" colSpan="1" >[setMotionTmpl](https://write.woa.com/document/87029968748064768)</td>
|
|
184
|
+
|
|
185
|
+
<td rowspan="1" colSpan="1" >Select AI animation pendant</td>
|
|
186
|
+
</tr>
|
|
187
|
+
|
|
188
|
+
<tr>
|
|
189
|
+
<td rowspan="1" colSpan="1" >[setMotionMute](https://write.woa.com/document/87029968748064768)</td>
|
|
190
|
+
|
|
191
|
+
<td rowspan="1" colSpan="1" >Mute while playing animation material</td>
|
|
192
|
+
</tr>
|
|
193
|
+
</table>
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
## Enumeration Types
|
|
197
|
+
<table>
|
|
198
|
+
<tr>
|
|
199
|
+
<td rowspan="1" colSpan="1" >Enumeration Types</td>
|
|
200
|
+
|
|
201
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
202
|
+
</tr>
|
|
203
|
+
|
|
204
|
+
<tr>
|
|
205
|
+
<td rowspan="1" colSpan="1" >[TXBeautyStyle](https://write.woa.com/document/87029968748064768)</td>
|
|
206
|
+
|
|
207
|
+
<td rowspan="1" colSpan="1" >Beauty Filter (Skin Smoothing) algorithm</td>
|
|
208
|
+
</tr>
|
|
209
|
+
</table>
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
## setBeautyStyle
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
#### Set skin smoothing algorithm
|
|
217
|
+
|
|
218
|
+
TRTC offers multiple skin smoothing algorithms for you to choose the one that best fits your product positioning:
|
|
219
|
+
<table>
|
|
220
|
+
<tr>
|
|
221
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
222
|
+
|
|
223
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
224
|
+
</tr>
|
|
225
|
+
|
|
226
|
+
<tr>
|
|
227
|
+
<td rowspan="1" colSpan="1" >beautyStyle</td>
|
|
228
|
+
|
|
229
|
+
<td rowspan="1" colSpan="1" >Beauty Styles, TXBeautyStyleSmooth: Smooth; TXBeautyStyleNature: Natural; TXBeautyStylePitu: Pitu.</td>
|
|
230
|
+
</tr>
|
|
231
|
+
</table>
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
## setBeautyLevel
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
|
|
238
|
+
#### Set beauty filter effect level
|
|
239
|
+
<table>
|
|
240
|
+
<tr>
|
|
241
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
242
|
+
|
|
243
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
244
|
+
</tr>
|
|
245
|
+
|
|
246
|
+
<tr>
|
|
247
|
+
<td rowspan="1" colSpan="1" >beautyLevel</td>
|
|
248
|
+
|
|
249
|
+
<td rowspan="1" colSpan="1" >Beauty filter level, value range: 0-9; 0 means off, 9 means the most noticeable effect.</td>
|
|
250
|
+
</tr>
|
|
251
|
+
</table>
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
## setWhitenessLevel
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
#### Set brightening filter effect level
|
|
259
|
+
<table>
|
|
260
|
+
<tr>
|
|
261
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
262
|
+
|
|
263
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
264
|
+
</tr>
|
|
265
|
+
|
|
266
|
+
<tr>
|
|
267
|
+
<td rowspan="1" colSpan="1" >whitenessLevel</td>
|
|
268
|
+
|
|
269
|
+
<td rowspan="1" colSpan="1" >Whitening level, value range: 0-9; 0 means off, 9 means the most noticeable effect.</td>
|
|
270
|
+
</tr>
|
|
271
|
+
</table>
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
## enableSharpnessEnhancement
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
#### Enable clarity enhancement
|
|
279
|
+
|
|
280
|
+
## setRuddyLevel
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
#### Set rosy filter effect level
|
|
285
|
+
<table>
|
|
286
|
+
<tr>
|
|
287
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
288
|
+
|
|
289
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
290
|
+
</tr>
|
|
291
|
+
|
|
292
|
+
<tr>
|
|
293
|
+
<td rowspan="1" colSpan="1" >ruddyLevel</td>
|
|
294
|
+
|
|
295
|
+
<td rowspan="1" colSpan="1" >Rosy level, value range: 0-9; 0 means off, 9 means the most noticeable effect.</td>
|
|
296
|
+
</tr>
|
|
297
|
+
</table>
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
## setFilter
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
#### Set color filter effect
|
|
305
|
+
|
|
306
|
+
Color Filter, an image that contains the color mapping relationship of the color lookup table. You can find several pre-prepared filter images in our official Demo.
|
|
307
|
+
|
|
308
|
+
The SDK will perform secondary processing on the original video captured by the camera based on the mapping relationship in the lookup table, to achieve the desired filter effect.
|
|
309
|
+
<table>
|
|
310
|
+
<tr>
|
|
311
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
312
|
+
|
|
313
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
314
|
+
</tr>
|
|
315
|
+
|
|
316
|
+
<tr>
|
|
317
|
+
<td rowspan="1" colSpan="1" >image</td>
|
|
318
|
+
|
|
319
|
+
<td rowspan="1" colSpan="1" >The image containing the color mapping relationship must be in PNG format.</td>
|
|
320
|
+
</tr>
|
|
321
|
+
</table>
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
## setFilterStrength
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
#### Set the intensity of color filter
|
|
329
|
+
|
|
330
|
+
The higher the value, the more obvious the intensity of the color filter and the greater the color difference between the filtered video and the original image.
|
|
331
|
+
|
|
332
|
+
My default filter intensity is 0.5. If you find the default filter effect is not obvious, you can set it above 0.5, up to a maximum value of 1.
|
|
333
|
+
<table>
|
|
334
|
+
<tr>
|
|
335
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
336
|
+
|
|
337
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
338
|
+
</tr>
|
|
339
|
+
|
|
340
|
+
<tr>
|
|
341
|
+
<td rowspan="1" colSpan="1" >strength</td>
|
|
342
|
+
|
|
343
|
+
<td rowspan="1" colSpan="1" >From 0 to 1, the greater the value, the more obvious the filter effect. Default value: 0.5.</td>
|
|
344
|
+
</tr>
|
|
345
|
+
</table>
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
## setGreenScreenFile
|
|
349
|
+
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
#### Set green screen background video
|
|
353
|
+
|
|
354
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)). The green screen feature enabled by this interface does not have the capability to intelligently remove backgrounds; it requires a green backdrop behind the subject to assist in creating effects.
|
|
355
|
+
<table>
|
|
356
|
+
<tr>
|
|
357
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
358
|
+
|
|
359
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
360
|
+
</tr>
|
|
361
|
+
|
|
362
|
+
<tr>
|
|
363
|
+
<td rowspan="1" colSpan="1" >path</td>
|
|
364
|
+
|
|
365
|
+
<td rowspan="1" colSpan="1" >Path to MP4 format video file; set to null to disable the effect.</td>
|
|
366
|
+
</tr>
|
|
367
|
+
</table>
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
#### Return value description:
|
|
371
|
+
|
|
372
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
373
|
+
|
|
374
|
+
## setEyeScaleLevel
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
#### Set big eyes filter effect level
|
|
379
|
+
|
|
380
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
381
|
+
<table>
|
|
382
|
+
<tr>
|
|
383
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
384
|
+
|
|
385
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
386
|
+
</tr>
|
|
387
|
+
|
|
388
|
+
<tr>
|
|
389
|
+
<td rowspan="1" colSpan="1" >eyeScaleLevel</td>
|
|
390
|
+
|
|
391
|
+
<td rowspan="1" colSpan="1" >Big eye level, value range 0-9; 0 means off, 9 means the most noticeable effect.</td>
|
|
392
|
+
</tr>
|
|
393
|
+
</table>
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
#### Return value description:
|
|
397
|
+
|
|
398
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
399
|
+
|
|
400
|
+
## setFaceSlimLevel
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
#### Set face slimming filter effect level
|
|
405
|
+
|
|
406
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
407
|
+
<table>
|
|
408
|
+
<tr>
|
|
409
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
410
|
+
|
|
411
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
412
|
+
</tr>
|
|
413
|
+
|
|
414
|
+
<tr>
|
|
415
|
+
<td rowspan="1" colSpan="1" >faceSlimLevel</td>
|
|
416
|
+
|
|
417
|
+
<td rowspan="1" colSpan="1" >Slim face level, value range 0-9; 0 means off, 9 means the most noticeable effect.</td>
|
|
418
|
+
</tr>
|
|
419
|
+
</table>
|
|
420
|
+
|
|
421
|
+
|
|
422
|
+
#### Return value description:
|
|
423
|
+
|
|
424
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
425
|
+
|
|
426
|
+
## setFaceVLevel
|
|
427
|
+
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
#### Set V face filter effect level
|
|
431
|
+
|
|
432
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
433
|
+
<table>
|
|
434
|
+
<tr>
|
|
435
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
436
|
+
|
|
437
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
438
|
+
</tr>
|
|
439
|
+
|
|
440
|
+
<tr>
|
|
441
|
+
<td rowspan="1" colSpan="1" >faceVLevel</td>
|
|
442
|
+
|
|
443
|
+
<td rowspan="1" colSpan="1" >V face level, value range 0-9; 0 means off, 9 means the most noticeable effect.</td>
|
|
444
|
+
</tr>
|
|
445
|
+
</table>
|
|
446
|
+
|
|
447
|
+
|
|
448
|
+
#### Return value description:
|
|
449
|
+
|
|
450
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
451
|
+
|
|
452
|
+
## setChinLevel
|
|
453
|
+
|
|
454
|
+
|
|
455
|
+
|
|
456
|
+
#### Set chin stretch or shrink
|
|
457
|
+
|
|
458
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
459
|
+
<table>
|
|
460
|
+
<tr>
|
|
461
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
462
|
+
|
|
463
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
464
|
+
</tr>
|
|
465
|
+
|
|
466
|
+
<tr>
|
|
467
|
+
<td rowspan="1" colSpan="1" >chinLevel</td>
|
|
468
|
+
|
|
469
|
+
<td rowspan="1" colSpan="1" >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.</td>
|
|
470
|
+
</tr>
|
|
471
|
+
</table>
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
#### Return value description:
|
|
475
|
+
|
|
476
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
477
|
+
|
|
478
|
+
## setFaceShortLevel
|
|
479
|
+
|
|
480
|
+
|
|
481
|
+
|
|
482
|
+
#### Set short face filter effect level
|
|
483
|
+
|
|
484
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
485
|
+
<table>
|
|
486
|
+
<tr>
|
|
487
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
488
|
+
|
|
489
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
490
|
+
</tr>
|
|
491
|
+
|
|
492
|
+
<tr>
|
|
493
|
+
<td rowspan="1" colSpan="1" >faceShortLevel</td>
|
|
494
|
+
|
|
495
|
+
<td rowspan="1" colSpan="1" >Effect level of the face shortening filter. Value range: 0–9; 0 indicates that the filter is disabled, and 9 means the most noticeable effect.</td>
|
|
496
|
+
</tr>
|
|
497
|
+
</table>
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
#### Return value description:
|
|
501
|
+
|
|
502
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
503
|
+
|
|
504
|
+
## setFaceNarrowLevel
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
#### Set narrow face filter effect level
|
|
509
|
+
|
|
510
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
511
|
+
<table>
|
|
512
|
+
<tr>
|
|
513
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
514
|
+
|
|
515
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
516
|
+
</tr>
|
|
517
|
+
|
|
518
|
+
<tr>
|
|
519
|
+
<td rowspan="1" colSpan="1" >level</td>
|
|
520
|
+
|
|
521
|
+
<td rowspan="1" colSpan="1" >Effect level of the narrow face filter. Value range: 0–9; 0 indicates that the filter is disabled, and 9 means the most noticeable effect.</td>
|
|
522
|
+
</tr>
|
|
523
|
+
</table>
|
|
524
|
+
|
|
525
|
+
|
|
526
|
+
#### Return value description:
|
|
527
|
+
|
|
528
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
529
|
+
|
|
530
|
+
## setNoseSlimLevel
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
|
|
534
|
+
#### Set nose slimming filter effect level
|
|
535
|
+
|
|
536
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
537
|
+
<table>
|
|
538
|
+
<tr>
|
|
539
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
540
|
+
|
|
541
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
542
|
+
</tr>
|
|
543
|
+
|
|
544
|
+
<tr>
|
|
545
|
+
<td rowspan="1" colSpan="1" >noseSlimLevel</td>
|
|
546
|
+
|
|
547
|
+
<td rowspan="1" colSpan="1" >Effect level of the nose slimming filter. Value range: 0–9; 0 indicates that the filter is disabled, and 9 means the most noticeable effect.</td>
|
|
548
|
+
</tr>
|
|
549
|
+
</table>
|
|
550
|
+
|
|
551
|
+
|
|
552
|
+
#### Return value description:
|
|
553
|
+
|
|
554
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
555
|
+
|
|
556
|
+
## setEyeLightenLevel
|
|
557
|
+
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
#### Set eye-catching filter effect level
|
|
561
|
+
|
|
562
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
563
|
+
<table>
|
|
564
|
+
<tr>
|
|
565
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
566
|
+
|
|
567
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
568
|
+
</tr>
|
|
569
|
+
|
|
570
|
+
<tr>
|
|
571
|
+
<td rowspan="1" colSpan="1" >eyeLightenLevel</td>
|
|
572
|
+
|
|
573
|
+
<td rowspan="1" colSpan="1" >Effect level of the eye brightening filter. Value range: 0–9; 0 indicates that the filter is disabled, and 9 means the most noticeable effect.</td>
|
|
574
|
+
</tr>
|
|
575
|
+
</table>
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
#### Return value description:
|
|
579
|
+
|
|
580
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
581
|
+
|
|
582
|
+
## setToothWhitenLevel
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
#### Set teeth whitening filter effect level
|
|
587
|
+
|
|
588
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
589
|
+
<table>
|
|
590
|
+
<tr>
|
|
591
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
592
|
+
|
|
593
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
594
|
+
</tr>
|
|
595
|
+
|
|
596
|
+
<tr>
|
|
597
|
+
<td rowspan="1" colSpan="1" >toothWhitenLevel</td>
|
|
598
|
+
|
|
599
|
+
<td rowspan="1" colSpan="1" >Effect level of the teeth whitening filter. Value range: 0–9; 0 indicates that the filter is disabled, and 9 means the most noticeable effect.</td>
|
|
600
|
+
</tr>
|
|
601
|
+
</table>
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
#### Return value description:
|
|
605
|
+
|
|
606
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
607
|
+
|
|
608
|
+
## setWrinkleRemoveLevel
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
|
|
612
|
+
#### Set wrinkle removal filter effect level
|
|
613
|
+
|
|
614
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
615
|
+
<table>
|
|
616
|
+
<tr>
|
|
617
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
618
|
+
|
|
619
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
620
|
+
</tr>
|
|
621
|
+
|
|
622
|
+
<tr>
|
|
623
|
+
<td rowspan="1" colSpan="1" >wrinkleRemoveLevel</td>
|
|
624
|
+
|
|
625
|
+
<td rowspan="1" colSpan="1" >Effect level of the wrinkle removal filter. Value range: 0–9; 0 indicates that the filter is disabled, and 9 means the most noticeable effect.</td>
|
|
626
|
+
</tr>
|
|
627
|
+
</table>
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
#### Return value description:
|
|
631
|
+
|
|
632
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
633
|
+
|
|
634
|
+
## setPounchRemoveLevel
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
|
|
638
|
+
#### Set puffiness removal filter effect level
|
|
639
|
+
|
|
640
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
641
|
+
<table>
|
|
642
|
+
<tr>
|
|
643
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
644
|
+
|
|
645
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
646
|
+
</tr>
|
|
647
|
+
|
|
648
|
+
<tr>
|
|
649
|
+
<td rowspan="1" colSpan="1" >pounchRemoveLevel</td>
|
|
650
|
+
|
|
651
|
+
<td rowspan="1" colSpan="1" >Effect level of the eye bag removal filter. Value range: 0–9; 0 indicates that the filter is disabled, and 9 means the most noticeable effect.</td>
|
|
652
|
+
</tr>
|
|
653
|
+
</table>
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
#### Return value description:
|
|
657
|
+
|
|
658
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
659
|
+
|
|
660
|
+
## setSmileLinesRemoveLevel
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
664
|
+
#### Set nasolabial fold removal filter effect level
|
|
665
|
+
|
|
666
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
667
|
+
<table>
|
|
668
|
+
<tr>
|
|
669
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
670
|
+
|
|
671
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
672
|
+
</tr>
|
|
673
|
+
|
|
674
|
+
<tr>
|
|
675
|
+
<td rowspan="1" colSpan="1" >smileLinesRemoveLevel</td>
|
|
676
|
+
|
|
677
|
+
<td rowspan="1" colSpan="1" >Effect level of the nasolabial folds filter. Value range: 0–9; 0 indicates that the filter is disabled, and 9 means the most noticeable effect.</td>
|
|
678
|
+
</tr>
|
|
679
|
+
</table>
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
#### Return value description:
|
|
683
|
+
|
|
684
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
685
|
+
|
|
686
|
+
## setForeheadLevel
|
|
687
|
+
|
|
688
|
+
|
|
689
|
+
|
|
690
|
+
#### Set hairline adjustment filter effect level
|
|
691
|
+
|
|
692
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
693
|
+
<table>
|
|
694
|
+
<tr>
|
|
695
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
696
|
+
|
|
697
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
698
|
+
</tr>
|
|
699
|
+
|
|
700
|
+
<tr>
|
|
701
|
+
<td rowspan="1" colSpan="1" >foreheadLevel</td>
|
|
702
|
+
|
|
703
|
+
<td rowspan="1" colSpan="1" >Effect level of the hairline lowering filter. Value range: -9–9; 0 indicates that the filter is disabled, and 9 means the most noticeable effect.</td>
|
|
704
|
+
</tr>
|
|
705
|
+
</table>
|
|
706
|
+
|
|
707
|
+
|
|
708
|
+
#### Return value description:
|
|
709
|
+
|
|
710
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
711
|
+
|
|
712
|
+
## setEyeDistanceLevel
|
|
713
|
+
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
#### Set interpupillary distance
|
|
717
|
+
|
|
718
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
719
|
+
<table>
|
|
720
|
+
<tr>
|
|
721
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
722
|
+
|
|
723
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
724
|
+
</tr>
|
|
725
|
+
|
|
726
|
+
<tr>
|
|
727
|
+
<td rowspan="1" colSpan="1" >eyeDistanceLevel</td>
|
|
728
|
+
|
|
729
|
+
<td rowspan="1" colSpan="1" >Effect level of the eye distance adjustment filter. Value range: -9–9; 0 indicates that the filter is disabled, a value smaller than 0 indicates a wider eye distance, while a value greater than 0 indicates a shorter eye distance.</td>
|
|
730
|
+
</tr>
|
|
731
|
+
</table>
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
#### Return value description:
|
|
735
|
+
|
|
736
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
737
|
+
|
|
738
|
+
## setEyeAngleLevel
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
|
|
742
|
+
#### Set eye corner adjustment filter effect level
|
|
743
|
+
|
|
744
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
745
|
+
<table>
|
|
746
|
+
<tr>
|
|
747
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
748
|
+
|
|
749
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
750
|
+
</tr>
|
|
751
|
+
|
|
752
|
+
<tr>
|
|
753
|
+
<td rowspan="1" colSpan="1" >eyeAngleLevel</td>
|
|
754
|
+
|
|
755
|
+
<td rowspan="1" colSpan="1" >Effect level of the eye corner adjustment filter. Value range: -9–9; 0 indicates that the filter is disabled, and 9 means the most noticeable effect.</td>
|
|
756
|
+
</tr>
|
|
757
|
+
</table>
|
|
758
|
+
|
|
759
|
+
|
|
760
|
+
#### Return value description:
|
|
761
|
+
|
|
762
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
763
|
+
|
|
764
|
+
## setMouthShapeLevel
|
|
765
|
+
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
#### Set mouth shape adjustment filter effect level
|
|
769
|
+
|
|
770
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
771
|
+
<table>
|
|
772
|
+
<tr>
|
|
773
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
774
|
+
|
|
775
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
776
|
+
</tr>
|
|
777
|
+
|
|
778
|
+
<tr>
|
|
779
|
+
<td rowspan="1" colSpan="1" >mouthShapeLevel</td>
|
|
780
|
+
|
|
781
|
+
<td rowspan="1" colSpan="1" >Effect level of the mouth shape filter. Value range: -9–9; 0 indicates that the filter is disabled, a value smaller than 0 indicates stretching, while a value greater than 0 indicates narrowing.</td>
|
|
782
|
+
</tr>
|
|
783
|
+
</table>
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
#### Return value description:
|
|
787
|
+
|
|
788
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
789
|
+
|
|
790
|
+
## setNoseWingLevel
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
|
|
794
|
+
#### Set nose wing adjustment filter effect level
|
|
795
|
+
|
|
796
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
797
|
+
<table>
|
|
798
|
+
<tr>
|
|
799
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
800
|
+
|
|
801
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
802
|
+
</tr>
|
|
803
|
+
|
|
804
|
+
<tr>
|
|
805
|
+
<td rowspan="1" colSpan="1" >noseWingLevel</td>
|
|
806
|
+
|
|
807
|
+
<td rowspan="1" colSpan="1" >Effect level of the nose wing adjustment filter. Value range: -9–9; 0 indicates that the filter is disabled, a value smaller than 0 indicates stretching, while a value greater than 0 indicates narrowing.</td>
|
|
808
|
+
</tr>
|
|
809
|
+
</table>
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
#### Return value description:
|
|
813
|
+
|
|
814
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
815
|
+
|
|
816
|
+
## setNosePositionLevel
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
#### Set nose position
|
|
821
|
+
|
|
822
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
823
|
+
<table>
|
|
824
|
+
<tr>
|
|
825
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
826
|
+
|
|
827
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
828
|
+
</tr>
|
|
829
|
+
|
|
830
|
+
<tr>
|
|
831
|
+
<td rowspan="1" colSpan="1" >nosePositionLevel</td>
|
|
832
|
+
|
|
833
|
+
<td rowspan="1" colSpan="1" >Nose position level. Value range: -9–9; 0 indicates that the effect is disabled, a value smaller than 0 indicates raising, while a value greater than 0 indicates lowering.</td>
|
|
834
|
+
</tr>
|
|
835
|
+
</table>
|
|
836
|
+
|
|
837
|
+
|
|
838
|
+
#### Return value description:
|
|
839
|
+
|
|
840
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
841
|
+
|
|
842
|
+
## setLipsThicknessLevel
|
|
843
|
+
|
|
844
|
+
|
|
845
|
+
|
|
846
|
+
#### Set lip thickness
|
|
847
|
+
|
|
848
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
849
|
+
<table>
|
|
850
|
+
<tr>
|
|
851
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
852
|
+
|
|
853
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
854
|
+
</tr>
|
|
855
|
+
|
|
856
|
+
<tr>
|
|
857
|
+
<td rowspan="1" colSpan="1" >lipsThicknessLevel</td>
|
|
858
|
+
|
|
859
|
+
<td rowspan="1" colSpan="1" >Effect level of the lip thickness filter. Value range: -9–9; 0 indicates that the filter is disabled, a value smaller than 0 indicates stretching, while a value greater than 0 indicates narrowing.</td>
|
|
860
|
+
</tr>
|
|
861
|
+
</table>
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
#### Return value description:
|
|
865
|
+
|
|
866
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
867
|
+
|
|
868
|
+
## setFaceBeautyLevel
|
|
869
|
+
|
|
870
|
+
|
|
871
|
+
|
|
872
|
+
#### Set face shape
|
|
873
|
+
|
|
874
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
875
|
+
<table>
|
|
876
|
+
<tr>
|
|
877
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
878
|
+
|
|
879
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
880
|
+
</tr>
|
|
881
|
+
|
|
882
|
+
<tr>
|
|
883
|
+
<td rowspan="1" colSpan="1" >faceBeautyLevel</td>
|
|
884
|
+
|
|
885
|
+
<td rowspan="1" colSpan="1" >Beauty level. Value range: 0–9; 0 indicates that the filter is disabled, and the greater the value, the more noticeable the effect.</td>
|
|
886
|
+
</tr>
|
|
887
|
+
</table>
|
|
888
|
+
|
|
889
|
+
|
|
890
|
+
#### Return value description:
|
|
891
|
+
|
|
892
|
+
0: Success; -5: The current License does not support the corresponding feature.
|
|
893
|
+
|
|
894
|
+
## setMotionTmpl
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
|
|
898
|
+
#### Select AI animation pendant
|
|
899
|
+
|
|
900
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
901
|
+
<table>
|
|
902
|
+
<tr>
|
|
903
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
904
|
+
|
|
905
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
906
|
+
</tr>
|
|
907
|
+
|
|
908
|
+
<tr>
|
|
909
|
+
<td rowspan="1" colSpan="1" >tmplPath</td>
|
|
910
|
+
|
|
911
|
+
<td rowspan="1" colSpan="1" >Directory where the animated effect material files are located.</td>
|
|
912
|
+
</tr>
|
|
913
|
+
</table>
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
## setMotionMute
|
|
917
|
+
|
|
918
|
+
|
|
919
|
+
|
|
920
|
+
#### Mute while playing animation material
|
|
921
|
+
|
|
922
|
+
This interface is only effective in the Enterprise Edition SDK (the old version has been discontinued; for advanced beauty feature in the new version SDK, please refer to [Tencent Beauty Effects SDK](https://cloud.tencent.com/document/product/647/68504)).
|
|
923
|
+
|
|
924
|
+
Some pendants have sound effects. This API can mute the sound effects during playback.
|
|
925
|
+
<table>
|
|
926
|
+
<tr>
|
|
927
|
+
<td rowspan="1" colSpan="1" >Parameters</td>
|
|
928
|
+
|
|
929
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
930
|
+
</tr>
|
|
931
|
+
|
|
932
|
+
<tr>
|
|
933
|
+
<td rowspan="1" colSpan="1" >motionMute</td>
|
|
934
|
+
|
|
935
|
+
<td rowspan="1" colSpan="1" >true: Mute; false: Unmuted.</td>
|
|
936
|
+
</tr>
|
|
937
|
+
</table>
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
## TXBeautyStyle
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
|
|
944
|
+
#### Beauty Filter (Skin Smoothing) algorithm
|
|
945
|
+
|
|
946
|
+
TRTC offers various skin smoothing algorithms. You can choose the one that best fits your product positioning.
|
|
947
|
+
<table>
|
|
948
|
+
<tr>
|
|
949
|
+
<td rowspan="1" colSpan="1" >Enumeration</td>
|
|
950
|
+
|
|
951
|
+
<td rowspan="1" colSpan="1" >Value</td>
|
|
952
|
+
|
|
953
|
+
<td rowspan="1" colSpan="1" >Description</td>
|
|
954
|
+
</tr>
|
|
955
|
+
|
|
956
|
+
<tr>
|
|
957
|
+
<td rowspan="1" colSpan="1" >TXBeautyStyleSmooth</td>
|
|
958
|
+
|
|
959
|
+
<td rowspan="1" colSpan="1" >0</td>
|
|
960
|
+
|
|
961
|
+
<td rowspan="1" colSpan="1" >Smooth: This aggressive algorithm results in a more pronounced skin smoothing effect, suitable for show live streaming.</td>
|
|
962
|
+
</tr>
|
|
963
|
+
|
|
964
|
+
<tr>
|
|
965
|
+
<td rowspan="1" colSpan="1" >TXBeautyStyleNature</td>
|
|
966
|
+
|
|
967
|
+
<td rowspan="1" colSpan="1" >1</td>
|
|
968
|
+
|
|
969
|
+
<td rowspan="1" colSpan="1" >Natural: This algorithm retains more facial details, resulting in a more natural smoothing effect, suitable for most live streaming scenarios.</td>
|
|
970
|
+
</tr>
|
|
971
|
+
|
|
972
|
+
<tr>
|
|
973
|
+
<td rowspan="1" colSpan="1" >TXBeautyStylePitu</td>
|
|
974
|
+
|
|
975
|
+
<td rowspan="1" colSpan="1" >2</td>
|
|
976
|
+
|
|
977
|
+
<td rowspan="1" colSpan="1" >YouTu: Provided by YouTu Laboratory, this algorithm balances between smooth and natural, retaining more skin details than smooth and providing more smoothing than natural.</td>
|
|
978
|
+
</tr>
|
|
979
|
+
</table>
|