tencentcloud-sdk-nodejs-intl-en 3.0.1026 → 3.0.1028
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/tencentcloud/aiart/index.js +3 -0
- package/tencentcloud/aiart/v20221229/aiart_client.js +50 -0
- package/tencentcloud/aiart/v20221229/index.js +4 -0
- package/tencentcloud/aiart/v20221229/models.js +329 -0
- package/tencentcloud/cfg/v20210820/models.js +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/facefusion/index.js +3 -0
- package/tencentcloud/facefusion/v20220927/facefusion_client.js +85 -0
- package/tencentcloud/facefusion/v20220927/index.js +4 -0
- package/tencentcloud/facefusion/v20220927/models.js +898 -0
- package/tencentcloud/index.js +3 -0
- package/tencentcloud/ocr/v20181119/models.js +15 -0
- package/tencentcloud/waf/index.js +3 -0
- package/tencentcloud/waf/v20180125/index.js +4 -0
- package/tencentcloud/waf/v20180125/models.js +12730 -0
- package/tencentcloud/waf/v20180125/waf_client.js +1058 -0
package/package.json
CHANGED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
const models = require("./models");
|
|
18
|
+
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
+
const ImageToImageRequest = models.ImageToImageRequest;
|
|
20
|
+
const ImageToImageResponse = models.ImageToImageResponse;
|
|
21
|
+
const LogoRect = models.LogoRect;
|
|
22
|
+
const LogoParam = models.LogoParam;
|
|
23
|
+
const ResultConfig = models.ResultConfig;
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* aiart client
|
|
28
|
+
* @class
|
|
29
|
+
*/
|
|
30
|
+
class AiartClient extends AbstractClient {
|
|
31
|
+
|
|
32
|
+
constructor(credential, region, profile) {
|
|
33
|
+
super("aiart.tencentcloudapi.com", "2022-12-29", credential, region, profile);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* This API is used to transfer the image style based on the image to image technology. Images with small figures, complex gestures or too many figures are not recommended.
|
|
38
|
+
It supports 3 concurrency by default, which means that up to 3 submitted tasks can be processed simultaneously. Subsequent tasks can be processed only after ongoing ones are completed.
|
|
39
|
+
* @param {ImageToImageRequest} req
|
|
40
|
+
* @param {function(string, ImageToImageResponse):void} cb
|
|
41
|
+
* @public
|
|
42
|
+
*/
|
|
43
|
+
ImageToImage(req, cb) {
|
|
44
|
+
let resp = new ImageToImageResponse();
|
|
45
|
+
this.request("ImageToImage", req, resp, cb);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
}
|
|
50
|
+
module.exports = AiartClient;
|
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
const AbstractModel = require("../../common/abstract_model");
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* ImageToImage request structure.
|
|
21
|
+
* @class
|
|
22
|
+
*/
|
|
23
|
+
class ImageToImageRequest extends AbstractModel {
|
|
24
|
+
constructor(){
|
|
25
|
+
super();
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Base64 code of the input mage.
|
|
29
|
+
Either the Base64 code or URL must be provided. If both are provided, URL prevails.
|
|
30
|
+
Image restrictions: The single-edge resolution must be less than 5,000 and greater than 50, and the size after Base64 encoding must be less than 8 MB. Supported formats include JPG, JPEG, PNG, BMP, TIFF and WEBP.
|
|
31
|
+
* @type {string || null}
|
|
32
|
+
*/
|
|
33
|
+
this.InputImage = null;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* URL of the input mage.
|
|
37
|
+
Either the Base64 code or URL must be provided. If both are provided, URL prevails.
|
|
38
|
+
Image restrictions: The single-edge resolution must be less than 5,000 and greater than 50, and the size after Base64 encoding must be less than 8 MB. Supported formats include JPG, JPEG, PNG, BMP, TIFF and WEBP.
|
|
39
|
+
* @type {string || null}
|
|
40
|
+
*/
|
|
41
|
+
this.InputUrl = null;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Text description.
|
|
45
|
+
It is used to increase the possibility that the generation result contains the described content.
|
|
46
|
+
Chinese is recommended. A maximum of 256 UTF-8 characters are supported.
|
|
47
|
+
* @type {string || null}
|
|
48
|
+
*/
|
|
49
|
+
this.Prompt = null;
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Negative text description.
|
|
53
|
+
It is used to reduce the possibility that the generation result contains the described content, but such content cannot be completely avoided.
|
|
54
|
+
Chinese is recommended. A maximum of 256 UTF-8 characters are supported.
|
|
55
|
+
* @type {string || null}
|
|
56
|
+
*/
|
|
57
|
+
this.NegativePrompt = null;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Image style.
|
|
61
|
+
Select the desired style from the [Image Style List](https://intl.cloud.tencent.com/document/product/1668/86250?from_cn_redirect=1) and enter the style number.
|
|
62
|
+
It is recommended to use only one style. If no style is specified, 201 (anime style) is used by default.
|
|
63
|
+
* @type {Array.<string> || null}
|
|
64
|
+
*/
|
|
65
|
+
this.Styles = null;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Configurations of the generated image, including the resolution.
|
|
69
|
+
Images with the following resolutions can be generated: origin (The resolution is the same as the input image resolution, with the edge resolution of up to 2000. The image will be zoomed out proportionally if the resolution is exceeded.), 768:768 (1:1), 768:1024 (3:4), and 1024:768 (4:3).
|
|
70
|
+
If the resolution is not specified, origin is used by default.
|
|
71
|
+
* @type {ResultConfig || null}
|
|
72
|
+
*/
|
|
73
|
+
this.ResultConfig = null;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Switch indicating whether to add a logo to the generated image. Default value: 1.
|
|
77
|
+
1: add logo
|
|
78
|
+
0: do not add logo
|
|
79
|
+
Other values: add logo
|
|
80
|
+
It is recommended to use an obvious logo to indicate that the image result is generated by AI.
|
|
81
|
+
* @type {number || null}
|
|
82
|
+
*/
|
|
83
|
+
this.LogoAdd = null;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Logo content settings.
|
|
87
|
+
By default, the text "Generated by AI" is added to the bottom right corner of the generated image. You can also use other logo.
|
|
88
|
+
* @type {LogoParam || null}
|
|
89
|
+
*/
|
|
90
|
+
this.LogoParam = null;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Generation strength.
|
|
94
|
+
The smaller the strength value, the more the generated image resembles the original image. Value range: (0, 1]. If the strength is not specified, the default value of the model is used.
|
|
95
|
+
The recommended value range is 0.6 to 0.8.
|
|
96
|
+
* @type {number || null}
|
|
97
|
+
*/
|
|
98
|
+
this.Strength = null;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Image return method (base64 or url).
|
|
102
|
+
You can specify only one method. Default value: base64.
|
|
103
|
+
The URL is valid for 1 hour.
|
|
104
|
+
* @type {string || null}
|
|
105
|
+
*/
|
|
106
|
+
this.RspImgType = null;
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Switch indicating whether to enhance image clarity. Default value: 0.
|
|
110
|
+
1: on
|
|
111
|
+
0: off
|
|
112
|
+
If the switch is turned on, the image clarity will be enhanced, but the generation time will increase.
|
|
113
|
+
* @type {number || null}
|
|
114
|
+
*/
|
|
115
|
+
this.EnhanceImage = null;
|
|
116
|
+
|
|
117
|
+
/**
|
|
118
|
+
* Maximum number of faces for detail restoration. Value range: 0 - 6. Default value: 0.
|
|
119
|
+
If the input value is greater than 0, the value will be used as the maximum number of faces with a small area can be restored in each image. The generation time will increase according to the actual number of faces restored.
|
|
120
|
+
* @type {number || null}
|
|
121
|
+
*/
|
|
122
|
+
this.RestoreFace = null;
|
|
123
|
+
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* @private
|
|
128
|
+
*/
|
|
129
|
+
deserialize(params) {
|
|
130
|
+
if (!params) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
this.InputImage = 'InputImage' in params ? params.InputImage : null;
|
|
134
|
+
this.InputUrl = 'InputUrl' in params ? params.InputUrl : null;
|
|
135
|
+
this.Prompt = 'Prompt' in params ? params.Prompt : null;
|
|
136
|
+
this.NegativePrompt = 'NegativePrompt' in params ? params.NegativePrompt : null;
|
|
137
|
+
this.Styles = 'Styles' in params ? params.Styles : null;
|
|
138
|
+
|
|
139
|
+
if (params.ResultConfig) {
|
|
140
|
+
let obj = new ResultConfig();
|
|
141
|
+
obj.deserialize(params.ResultConfig)
|
|
142
|
+
this.ResultConfig = obj;
|
|
143
|
+
}
|
|
144
|
+
this.LogoAdd = 'LogoAdd' in params ? params.LogoAdd : null;
|
|
145
|
+
|
|
146
|
+
if (params.LogoParam) {
|
|
147
|
+
let obj = new LogoParam();
|
|
148
|
+
obj.deserialize(params.LogoParam)
|
|
149
|
+
this.LogoParam = obj;
|
|
150
|
+
}
|
|
151
|
+
this.Strength = 'Strength' in params ? params.Strength : null;
|
|
152
|
+
this.RspImgType = 'RspImgType' in params ? params.RspImgType : null;
|
|
153
|
+
this.EnhanceImage = 'EnhanceImage' in params ? params.EnhanceImage : null;
|
|
154
|
+
this.RestoreFace = 'RestoreFace' in params ? params.RestoreFace : null;
|
|
155
|
+
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* ImageToImage response structure.
|
|
161
|
+
* @class
|
|
162
|
+
*/
|
|
163
|
+
class ImageToImageResponse extends AbstractModel {
|
|
164
|
+
constructor(){
|
|
165
|
+
super();
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* Different content is returned depending on the input parameter RspImgType.
|
|
169
|
+
If the value is base64, the Base64 code of the generated image is returned.
|
|
170
|
+
If the value is url, the URL of the generated image is returned. The URL is valid for 1 hour. Save it in time.
|
|
171
|
+
* @type {string || null}
|
|
172
|
+
*/
|
|
173
|
+
this.ResultImage = null;
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
|
|
177
|
+
* @type {string || null}
|
|
178
|
+
*/
|
|
179
|
+
this.RequestId = null;
|
|
180
|
+
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* @private
|
|
185
|
+
*/
|
|
186
|
+
deserialize(params) {
|
|
187
|
+
if (!params) {
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
this.ResultImage = 'ResultImage' in params ? params.ResultImage : null;
|
|
191
|
+
this.RequestId = 'RequestId' in params ? params.RequestId : null;
|
|
192
|
+
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Input box
|
|
198
|
+
* @class
|
|
199
|
+
*/
|
|
200
|
+
class LogoRect extends AbstractModel {
|
|
201
|
+
constructor(){
|
|
202
|
+
super();
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* X-axis coordinate of the upper left corner
|
|
206
|
+
* @type {number || null}
|
|
207
|
+
*/
|
|
208
|
+
this.X = null;
|
|
209
|
+
|
|
210
|
+
/**
|
|
211
|
+
* Y-axis coordinate of the upper left corner
|
|
212
|
+
* @type {number || null}
|
|
213
|
+
*/
|
|
214
|
+
this.Y = null;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Box width
|
|
218
|
+
* @type {number || null}
|
|
219
|
+
*/
|
|
220
|
+
this.Width = null;
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* Box height
|
|
224
|
+
* @type {number || null}
|
|
225
|
+
*/
|
|
226
|
+
this.Height = null;
|
|
227
|
+
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* @private
|
|
232
|
+
*/
|
|
233
|
+
deserialize(params) {
|
|
234
|
+
if (!params) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
this.X = 'X' in params ? params.X : null;
|
|
238
|
+
this.Y = 'Y' in params ? params.Y : null;
|
|
239
|
+
this.Width = 'Width' in params ? params.Width : null;
|
|
240
|
+
this.Height = 'Height' in params ? params.Height : null;
|
|
241
|
+
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Logo parameter
|
|
247
|
+
* @class
|
|
248
|
+
*/
|
|
249
|
+
class LogoParam extends AbstractModel {
|
|
250
|
+
constructor(){
|
|
251
|
+
super();
|
|
252
|
+
|
|
253
|
+
/**
|
|
254
|
+
* Logo URL
|
|
255
|
+
* @type {string || null}
|
|
256
|
+
*/
|
|
257
|
+
this.LogoUrl = null;
|
|
258
|
+
|
|
259
|
+
/**
|
|
260
|
+
* Logo Base64 code. Either the Base64 code or URL must be provided. If both are provided, URL prevails.
|
|
261
|
+
* @type {string || null}
|
|
262
|
+
*/
|
|
263
|
+
this.LogoImage = null;
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Coordinates of the logo image in the generated image. The logo image will be stretched according to the coordinates.
|
|
267
|
+
* @type {LogoRect || null}
|
|
268
|
+
*/
|
|
269
|
+
this.LogoRect = null;
|
|
270
|
+
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* @private
|
|
275
|
+
*/
|
|
276
|
+
deserialize(params) {
|
|
277
|
+
if (!params) {
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
this.LogoUrl = 'LogoUrl' in params ? params.LogoUrl : null;
|
|
281
|
+
this.LogoImage = 'LogoImage' in params ? params.LogoImage : null;
|
|
282
|
+
|
|
283
|
+
if (params.LogoRect) {
|
|
284
|
+
let obj = new LogoRect();
|
|
285
|
+
obj.deserialize(params.LogoRect)
|
|
286
|
+
this.LogoRect = obj;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
/**
|
|
293
|
+
* Return result configurations
|
|
294
|
+
* @class
|
|
295
|
+
*/
|
|
296
|
+
class ResultConfig extends AbstractModel {
|
|
297
|
+
constructor(){
|
|
298
|
+
super();
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Generated image resolution.
|
|
302
|
+
|
|
303
|
+
Images with the following resolutions can be generated: origin (The resolution is the same as the input image resolution, with the edge resolution of up to 2000. The image will be zoomed out proportionally if the resolution is exceeded.), 768:768 (1:1), 768:1024 (3:4), and 1024:768 (4:3). If the resolution is not specified, origin is used by default. The generated image may be cropped if the aspect ratio of the generated image is too different from that of the input image.
|
|
304
|
+
* @type {string || null}
|
|
305
|
+
*/
|
|
306
|
+
this.Resolution = null;
|
|
307
|
+
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
/**
|
|
311
|
+
* @private
|
|
312
|
+
*/
|
|
313
|
+
deserialize(params) {
|
|
314
|
+
if (!params) {
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
317
|
+
this.Resolution = 'Resolution' in params ? params.Resolution : null;
|
|
318
|
+
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
module.exports = {
|
|
323
|
+
ImageToImageRequest: ImageToImageRequest,
|
|
324
|
+
ImageToImageResponse: ImageToImageResponse,
|
|
325
|
+
LogoRect: LogoRect,
|
|
326
|
+
LogoParam: LogoParam,
|
|
327
|
+
ResultConfig: ResultConfig,
|
|
328
|
+
|
|
329
|
+
}
|
|
@@ -365,7 +365,7 @@ class CreateTaskFromActionRequest extends AbstractModel {
|
|
|
365
365
|
this.TaskActionId = null;
|
|
366
366
|
|
|
367
367
|
/**
|
|
368
|
-
* ID of the instance participating in the experiment
|
|
368
|
+
* ID of the instance participating in the experiment.
|
|
369
369
|
* @type {Array.<string> || null}
|
|
370
370
|
*/
|
|
371
371
|
this.TaskInstances = null;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const sdkVersion = "3.0.
|
|
1
|
+
const sdkVersion = "3.0.1028";
|
|
2
2
|
module.exports = sdkVersion
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing,
|
|
11
|
+
* software distributed under the License is distributed on an
|
|
12
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
+
* KIND, either express or implied. See the License for the
|
|
14
|
+
* specific language governing permissions and limitations
|
|
15
|
+
* under the License.
|
|
16
|
+
*/
|
|
17
|
+
const models = require("./models");
|
|
18
|
+
const AbstractClient = require('../../common/abstract_client')
|
|
19
|
+
const MetaData = models.MetaData;
|
|
20
|
+
const LogoParam = models.LogoParam;
|
|
21
|
+
const QueryVideoFaceFusionJobResponse = models.QueryVideoFaceFusionJobResponse;
|
|
22
|
+
const QueryVideoFaceFusionJobRequest = models.QueryVideoFaceFusionJobRequest;
|
|
23
|
+
const SubmitVideoFaceFusionJobResponse = models.SubmitVideoFaceFusionJobResponse;
|
|
24
|
+
const FuseFaceReviewDetail = models.FuseFaceReviewDetail;
|
|
25
|
+
const VideoFaceFusionOutput = models.VideoFaceFusionOutput;
|
|
26
|
+
const ImageCodecParam = models.ImageCodecParam;
|
|
27
|
+
const MergeInfo = models.MergeInfo;
|
|
28
|
+
const FuseFaceReviewResult = models.FuseFaceReviewResult;
|
|
29
|
+
const FuseFaceRequest = models.FuseFaceRequest;
|
|
30
|
+
const FaceRect = models.FaceRect;
|
|
31
|
+
const FuseParam = models.FuseParam;
|
|
32
|
+
const SubmitVideoFaceFusionJobRequest = models.SubmitVideoFaceFusionJobRequest;
|
|
33
|
+
const FuseFaceResponse = models.FuseFaceResponse;
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* facefusion client
|
|
38
|
+
* @class
|
|
39
|
+
*/
|
|
40
|
+
class FacefusionClient extends AbstractClient {
|
|
41
|
+
|
|
42
|
+
constructor(credential, region, profile) {
|
|
43
|
+
super("facefusion.tencentcloudapi.com", "2022-09-27", credential, region, profile);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* This API is used to query the progress and status of video face fusion tasks by Job ID.
|
|
48
|
+
* @param {QueryVideoFaceFusionJobRequest} req
|
|
49
|
+
* @param {function(string, QueryVideoFaceFusionJobResponse):void} cb
|
|
50
|
+
* @public
|
|
51
|
+
*/
|
|
52
|
+
QueryVideoFaceFusionJob(req, cb) {
|
|
53
|
+
let resp = new QueryVideoFaceFusionJobResponse();
|
|
54
|
+
this.request("QueryVideoFaceFusionJob", req, resp, cb);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* This API is used to submit asynchronous processing tasks of video face fusion. After a task is submitted, the Job ID, estimated completion time, and current queue length will be returned.
|
|
59
|
+
* @param {SubmitVideoFaceFusionJobRequest} req
|
|
60
|
+
* @param {function(string, SubmitVideoFaceFusionJobResponse):void} cb
|
|
61
|
+
* @public
|
|
62
|
+
*/
|
|
63
|
+
SubmitVideoFaceFusionJob(req, cb) {
|
|
64
|
+
let resp = new SubmitVideoFaceFusionJobResponse();
|
|
65
|
+
this.request("SubmitVideoFaceFusionJob", req, resp, cb);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* This API is used to perform the fusion of a single face, multiple faces, and specified faces with the material template by uploading face images. Users can add logos to generated images. See <a href="https://intl.cloud.tencent.com/document/product/670/38247?from_cn_redirect=1" target="_blank">Fusion Access Guide</a>.
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
- The signature method in the public parameters must be specified as the V3 version. In other words, set the SignatureMethod parameter to TC3-HMAC-SHA256.
|
|
74
|
+
* @param {FuseFaceRequest} req
|
|
75
|
+
* @param {function(string, FuseFaceResponse):void} cb
|
|
76
|
+
* @public
|
|
77
|
+
*/
|
|
78
|
+
FuseFace(req, cb) {
|
|
79
|
+
let resp = new FuseFaceResponse();
|
|
80
|
+
this.request("FuseFace", req, resp, cb);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
module.exports = FacefusionClient;
|