tencentcloud-sdk-ivld 1.0.249 → 1.0.250
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20210903/client.rb +359 -0
- data/lib/v20210903/models.rb +711 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0f4062e2aaee977001788f6e9f75c9f257ae887
|
4
|
+
data.tar.gz: f32778c02221e07cf57e7b143808f3b1457ccad5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c42d951778a8908f37df3fc6e5bac640ba997c9181c5bb5267017479cb1fe71d778f24f1222cb554a5a0bcf7852d16f99977e9f79c93d284c9d47bf871843351
|
7
|
+
data.tar.gz: e3678287d4d57e713ee0fa8e89f71560d5a578fb39a11b942027de1ebf474de0d28808f18ba228e5bd5b02b5fe4e6ad31d2cfa450edcf4a171c898b3f74511cc
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.250
|
data/lib/v20210903/client.rb
CHANGED
@@ -29,6 +29,145 @@ module TencentCloud
|
|
29
29
|
end
|
30
30
|
|
31
31
|
|
32
|
+
# 增加自定义人脸图片,每个自定义人物最多可包含5张人脸图片
|
33
|
+
|
34
|
+
# 请注意,与创建自定义人物一样,图片数据优先级优于图片URL优先级
|
35
|
+
|
36
|
+
# @param request: Request instance for AddCustomPersonImage.
|
37
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::AddCustomPersonImageRequest`
|
38
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::AddCustomPersonImageResponse`
|
39
|
+
def AddCustomPersonImage(request)
|
40
|
+
body = send_request('AddCustomPersonImage', request.serialize)
|
41
|
+
response = JSON.parse(body)
|
42
|
+
if response['Response'].key?('Error') == false
|
43
|
+
model = AddCustomPersonImageResponse.new
|
44
|
+
model.deserialize(response['Response'])
|
45
|
+
model
|
46
|
+
else
|
47
|
+
code = response['Response']['Error']['Code']
|
48
|
+
message = response['Response']['Error']['Message']
|
49
|
+
reqid = response['Response']['RequestId']
|
50
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
51
|
+
end
|
52
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
53
|
+
raise e
|
54
|
+
rescue StandardError => e
|
55
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
56
|
+
end
|
57
|
+
|
58
|
+
# 创建自定义人物分类信息
|
59
|
+
|
60
|
+
# 当L2Category为空时,将创建一级自定义分类。
|
61
|
+
# 当L1Category与L2Category均不为空时,将创建二级自定义分类。请注意,**只有当一级自定义分类存在时,才可创建二级自定义分类**。
|
62
|
+
|
63
|
+
# @param request: Request instance for CreateCustomCategory.
|
64
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::CreateCustomCategoryRequest`
|
65
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::CreateCustomCategoryResponse`
|
66
|
+
def CreateCustomCategory(request)
|
67
|
+
body = send_request('CreateCustomCategory', request.serialize)
|
68
|
+
response = JSON.parse(body)
|
69
|
+
if response['Response'].key?('Error') == false
|
70
|
+
model = CreateCustomCategoryResponse.new
|
71
|
+
model.deserialize(response['Response'])
|
72
|
+
model
|
73
|
+
else
|
74
|
+
code = response['Response']['Error']['Code']
|
75
|
+
message = response['Response']['Error']['Message']
|
76
|
+
reqid = response['Response']['RequestId']
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
78
|
+
end
|
79
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
80
|
+
raise e
|
81
|
+
rescue StandardError => e
|
82
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
83
|
+
end
|
84
|
+
|
85
|
+
# 创建自定义人物库
|
86
|
+
|
87
|
+
# Bucket的格式参考为 `bucketName-123456.cos.ap-shanghai.myqcloud.com`
|
88
|
+
|
89
|
+
# 在调用CreateCustomPerson和AddCustomPersonImage接口之前,请先确保本接口成功调用。当前每个用户只支持一个自定义人物库,一旦自定义人物库创建成功,后续接口调用均会返回人物库已存在错误。
|
90
|
+
|
91
|
+
# 由于人脸图片对于自定义人物识别至关重要,因此自定义人物识别功能需要用户显式指定COS存储桶方可使用。具体来说,自定义人物识别功能接口(主要是CreateCustomPerson和AddCustomPersonImage)会在此COS桶下面新建IVLDCustomPersonImage目录,并在此目录下存储自定义人物图片数据以支持后续潜在的特征更新。
|
92
|
+
|
93
|
+
# 请注意:本接口指定的COS桶仅用于**备份存储自定义人物图片**,CreateCustomPerson和AddCustomPersonImage接口入参URL可使用任意COS存储桶下的任意图片。
|
94
|
+
|
95
|
+
# **重要**:请务必确保本接口指定的COS存储桶存在(不要手动删除COS桶)。COS存储桶一旦指定,将不能修改。
|
96
|
+
|
97
|
+
# @param request: Request instance for CreateCustomGroup.
|
98
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::CreateCustomGroupRequest`
|
99
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::CreateCustomGroupResponse`
|
100
|
+
def CreateCustomGroup(request)
|
101
|
+
body = send_request('CreateCustomGroup', request.serialize)
|
102
|
+
response = JSON.parse(body)
|
103
|
+
if response['Response'].key?('Error') == false
|
104
|
+
model = CreateCustomGroupResponse.new
|
105
|
+
model.deserialize(response['Response'])
|
106
|
+
model
|
107
|
+
else
|
108
|
+
code = response['Response']['Error']['Code']
|
109
|
+
message = response['Response']['Error']['Message']
|
110
|
+
reqid = response['Response']['RequestId']
|
111
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
112
|
+
end
|
113
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
114
|
+
raise e
|
115
|
+
rescue StandardError => e
|
116
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
117
|
+
end
|
118
|
+
|
119
|
+
# 创建自定义人物。
|
120
|
+
|
121
|
+
# 输入人物名称,基本信息,分类信息与人脸图片,创建自定义人物
|
122
|
+
|
123
|
+
# 人脸图片可使用图片数据(base64编码的图片数据)或者图片URL(推荐使用COS以减少下载时间,其他地址也支持),原始图片优先,也即如果同时指定了图片数据和图片URL,接口将仅使用图片数据
|
124
|
+
|
125
|
+
# @param request: Request instance for CreateCustomPerson.
|
126
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::CreateCustomPersonRequest`
|
127
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::CreateCustomPersonResponse`
|
128
|
+
def CreateCustomPerson(request)
|
129
|
+
body = send_request('CreateCustomPerson', request.serialize)
|
130
|
+
response = JSON.parse(body)
|
131
|
+
if response['Response'].key?('Error') == false
|
132
|
+
model = CreateCustomPersonResponse.new
|
133
|
+
model.deserialize(response['Response'])
|
134
|
+
model
|
135
|
+
else
|
136
|
+
code = response['Response']['Error']['Code']
|
137
|
+
message = response['Response']['Error']['Message']
|
138
|
+
reqid = response['Response']['RequestId']
|
139
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
140
|
+
end
|
141
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
142
|
+
raise e
|
143
|
+
rescue StandardError => e
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
145
|
+
end
|
146
|
+
|
147
|
+
# 创建默认自定义人物类型
|
148
|
+
|
149
|
+
# @param request: Request instance for CreateDefaultCategories.
|
150
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::CreateDefaultCategoriesRequest`
|
151
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::CreateDefaultCategoriesResponse`
|
152
|
+
def CreateDefaultCategories(request)
|
153
|
+
body = send_request('CreateDefaultCategories', request.serialize)
|
154
|
+
response = JSON.parse(body)
|
155
|
+
if response['Response'].key?('Error') == false
|
156
|
+
model = CreateDefaultCategoriesResponse.new
|
157
|
+
model.deserialize(response['Response'])
|
158
|
+
model
|
159
|
+
else
|
160
|
+
code = response['Response']['Error']['Code']
|
161
|
+
message = response['Response']['Error']['Message']
|
162
|
+
reqid = response['Response']['RequestId']
|
163
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
164
|
+
end
|
165
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
166
|
+
raise e
|
167
|
+
rescue StandardError => e
|
168
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
169
|
+
end
|
170
|
+
|
32
171
|
# 创建智能标签任务。
|
33
172
|
|
34
173
|
# 请注意,本接口为异步接口,**返回TaskId只代表任务创建成功,不代表任务执行成功**。
|
@@ -55,6 +194,78 @@ module TencentCloud
|
|
55
194
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
56
195
|
end
|
57
196
|
|
197
|
+
# 删除自定义分类信息
|
198
|
+
|
199
|
+
# @param request: Request instance for DeleteCustomCategory.
|
200
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::DeleteCustomCategoryRequest`
|
201
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::DeleteCustomCategoryResponse`
|
202
|
+
def DeleteCustomCategory(request)
|
203
|
+
body = send_request('DeleteCustomCategory', request.serialize)
|
204
|
+
response = JSON.parse(body)
|
205
|
+
if response['Response'].key?('Error') == false
|
206
|
+
model = DeleteCustomCategoryResponse.new
|
207
|
+
model.deserialize(response['Response'])
|
208
|
+
model
|
209
|
+
else
|
210
|
+
code = response['Response']['Error']['Code']
|
211
|
+
message = response['Response']['Error']['Message']
|
212
|
+
reqid = response['Response']['RequestId']
|
213
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
214
|
+
end
|
215
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
216
|
+
raise e
|
217
|
+
rescue StandardError => e
|
218
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
219
|
+
end
|
220
|
+
|
221
|
+
# 删除自定义人物
|
222
|
+
|
223
|
+
# @param request: Request instance for DeleteCustomPerson.
|
224
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::DeleteCustomPersonRequest`
|
225
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::DeleteCustomPersonResponse`
|
226
|
+
def DeleteCustomPerson(request)
|
227
|
+
body = send_request('DeleteCustomPerson', request.serialize)
|
228
|
+
response = JSON.parse(body)
|
229
|
+
if response['Response'].key?('Error') == false
|
230
|
+
model = DeleteCustomPersonResponse.new
|
231
|
+
model.deserialize(response['Response'])
|
232
|
+
model
|
233
|
+
else
|
234
|
+
code = response['Response']['Error']['Code']
|
235
|
+
message = response['Response']['Error']['Message']
|
236
|
+
reqid = response['Response']['RequestId']
|
237
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
238
|
+
end
|
239
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
240
|
+
raise e
|
241
|
+
rescue StandardError => e
|
242
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
243
|
+
end
|
244
|
+
|
245
|
+
# 删除自定义人脸数据
|
246
|
+
|
247
|
+
# @param request: Request instance for DeleteCustomPersonImage.
|
248
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::DeleteCustomPersonImageRequest`
|
249
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::DeleteCustomPersonImageResponse`
|
250
|
+
def DeleteCustomPersonImage(request)
|
251
|
+
body = send_request('DeleteCustomPersonImage', request.serialize)
|
252
|
+
response = JSON.parse(body)
|
253
|
+
if response['Response'].key?('Error') == false
|
254
|
+
model = DeleteCustomPersonImageResponse.new
|
255
|
+
model.deserialize(response['Response'])
|
256
|
+
model
|
257
|
+
else
|
258
|
+
code = response['Response']['Error']['Code']
|
259
|
+
message = response['Response']['Error']['Message']
|
260
|
+
reqid = response['Response']['RequestId']
|
261
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
262
|
+
end
|
263
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
264
|
+
raise e
|
265
|
+
rescue StandardError => e
|
266
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
267
|
+
end
|
268
|
+
|
58
269
|
# 将MediaId对应的媒资文件从系统中删除。
|
59
270
|
|
60
271
|
# **请注意,本接口仅删除媒资文件,媒资文件对应的视频分析结果不会被删除**。如您需要删除结构化分析结果,请调用DeleteTask接口。
|
@@ -81,6 +292,103 @@ module TencentCloud
|
|
81
292
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
82
293
|
end
|
83
294
|
|
295
|
+
# 批量描述自定义人物分类信息
|
296
|
+
|
297
|
+
# @param request: Request instance for DescribeCustomCategories.
|
298
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::DescribeCustomCategoriesRequest`
|
299
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::DescribeCustomCategoriesResponse`
|
300
|
+
def DescribeCustomCategories(request)
|
301
|
+
body = send_request('DescribeCustomCategories', request.serialize)
|
302
|
+
response = JSON.parse(body)
|
303
|
+
if response['Response'].key?('Error') == false
|
304
|
+
model = DescribeCustomCategoriesResponse.new
|
305
|
+
model.deserialize(response['Response'])
|
306
|
+
model
|
307
|
+
else
|
308
|
+
code = response['Response']['Error']['Code']
|
309
|
+
message = response['Response']['Error']['Message']
|
310
|
+
reqid = response['Response']['RequestId']
|
311
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
312
|
+
end
|
313
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
314
|
+
raise e
|
315
|
+
rescue StandardError => e
|
316
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
317
|
+
end
|
318
|
+
|
319
|
+
# 描述自定义人物库信息,当前库大小(库中有多少人脸),以及库中的存储桶
|
320
|
+
|
321
|
+
# @param request: Request instance for DescribeCustomGroup.
|
322
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::DescribeCustomGroupRequest`
|
323
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::DescribeCustomGroupResponse`
|
324
|
+
def DescribeCustomGroup(request)
|
325
|
+
body = send_request('DescribeCustomGroup', request.serialize)
|
326
|
+
response = JSON.parse(body)
|
327
|
+
if response['Response'].key?('Error') == false
|
328
|
+
model = DescribeCustomGroupResponse.new
|
329
|
+
model.deserialize(response['Response'])
|
330
|
+
model
|
331
|
+
else
|
332
|
+
code = response['Response']['Error']['Code']
|
333
|
+
message = response['Response']['Error']['Message']
|
334
|
+
reqid = response['Response']['RequestId']
|
335
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
336
|
+
end
|
337
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
338
|
+
raise e
|
339
|
+
rescue StandardError => e
|
340
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
341
|
+
end
|
342
|
+
|
343
|
+
# 描述自定义人物详细信息,包括人物信息与人物信息
|
344
|
+
|
345
|
+
# @param request: Request instance for DescribeCustomPersonDetail.
|
346
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::DescribeCustomPersonDetailRequest`
|
347
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::DescribeCustomPersonDetailResponse`
|
348
|
+
def DescribeCustomPersonDetail(request)
|
349
|
+
body = send_request('DescribeCustomPersonDetail', request.serialize)
|
350
|
+
response = JSON.parse(body)
|
351
|
+
if response['Response'].key?('Error') == false
|
352
|
+
model = DescribeCustomPersonDetailResponse.new
|
353
|
+
model.deserialize(response['Response'])
|
354
|
+
model
|
355
|
+
else
|
356
|
+
code = response['Response']['Error']['Code']
|
357
|
+
message = response['Response']['Error']['Message']
|
358
|
+
reqid = response['Response']['RequestId']
|
359
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
360
|
+
end
|
361
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
362
|
+
raise e
|
363
|
+
rescue StandardError => e
|
364
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
365
|
+
end
|
366
|
+
|
367
|
+
# 批量描述自定义人物
|
368
|
+
|
369
|
+
|
370
|
+
# @param request: Request instance for DescribeCustomPersons.
|
371
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::DescribeCustomPersonsRequest`
|
372
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::DescribeCustomPersonsResponse`
|
373
|
+
def DescribeCustomPersons(request)
|
374
|
+
body = send_request('DescribeCustomPersons', request.serialize)
|
375
|
+
response = JSON.parse(body)
|
376
|
+
if response['Response'].key?('Error') == false
|
377
|
+
model = DescribeCustomPersonsResponse.new
|
378
|
+
model.deserialize(response['Response'])
|
379
|
+
model
|
380
|
+
else
|
381
|
+
code = response['Response']['Error']['Code']
|
382
|
+
message = response['Response']['Error']['Message']
|
383
|
+
reqid = response['Response']['RequestId']
|
384
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
385
|
+
end
|
386
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
387
|
+
raise e
|
388
|
+
rescue StandardError => e
|
389
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
390
|
+
end
|
391
|
+
|
84
392
|
# 描述媒资文件信息,包括媒资状态,分辨率,帧率等。
|
85
393
|
|
86
394
|
# 如果媒资文件未完成导入,本接口将仅输出媒资文件的状态信息;导入完成后,本接口还将输出媒资文件的其他元信息。
|
@@ -242,6 +550,57 @@ module TencentCloud
|
|
242
550
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
243
551
|
end
|
244
552
|
|
553
|
+
# 更新自定义人物分类
|
554
|
+
|
555
|
+
# 当L2Category为空时,代表更新CategoryId对应的一级自定义人物类型以及所有二级自定义人物类型所从属的一级自定义人物类型;
|
556
|
+
# 当L2Category非空时,仅更新CategoryId对应的二级自定义人物类型
|
557
|
+
|
558
|
+
# @param request: Request instance for UpdateCustomCategory.
|
559
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::UpdateCustomCategoryRequest`
|
560
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::UpdateCustomCategoryResponse`
|
561
|
+
def UpdateCustomCategory(request)
|
562
|
+
body = send_request('UpdateCustomCategory', request.serialize)
|
563
|
+
response = JSON.parse(body)
|
564
|
+
if response['Response'].key?('Error') == false
|
565
|
+
model = UpdateCustomCategoryResponse.new
|
566
|
+
model.deserialize(response['Response'])
|
567
|
+
model
|
568
|
+
else
|
569
|
+
code = response['Response']['Error']['Code']
|
570
|
+
message = response['Response']['Error']['Message']
|
571
|
+
reqid = response['Response']['RequestId']
|
572
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
573
|
+
end
|
574
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
575
|
+
raise e
|
576
|
+
rescue StandardError => e
|
577
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
578
|
+
end
|
579
|
+
|
580
|
+
# 更新自定义人物信息,包括姓名,简要信息,分类信息等
|
581
|
+
|
582
|
+
# @param request: Request instance for UpdateCustomPerson.
|
583
|
+
# @type request: :class:`Tencentcloud::ivld::V20210903::UpdateCustomPersonRequest`
|
584
|
+
# @rtype: :class:`Tencentcloud::ivld::V20210903::UpdateCustomPersonResponse`
|
585
|
+
def UpdateCustomPerson(request)
|
586
|
+
body = send_request('UpdateCustomPerson', request.serialize)
|
587
|
+
response = JSON.parse(body)
|
588
|
+
if response['Response'].key?('Error') == false
|
589
|
+
model = UpdateCustomPersonResponse.new
|
590
|
+
model.deserialize(response['Response'])
|
591
|
+
model
|
592
|
+
else
|
593
|
+
code = response['Response']['Error']['Code']
|
594
|
+
message = response['Response']['Error']['Message']
|
595
|
+
reqid = response['Response']['RequestId']
|
596
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
597
|
+
end
|
598
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
599
|
+
raise e
|
600
|
+
rescue StandardError => e
|
601
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
602
|
+
end
|
603
|
+
|
245
604
|
|
246
605
|
end
|
247
606
|
end
|
data/lib/v20210903/models.rb
CHANGED
@@ -17,6 +17,57 @@
|
|
17
17
|
module TencentCloud
|
18
18
|
module Ivld
|
19
19
|
module V20210903
|
20
|
+
# AddCustomPersonImage请求参数结构体
|
21
|
+
class AddCustomPersonImageRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param PersonId: 自定义人物Id
|
23
|
+
# @type PersonId: String
|
24
|
+
# @param ImageURL: 自定义人物图片地址
|
25
|
+
# @type ImageURL: String
|
26
|
+
# @param Image: 图片数据base64之后的结果
|
27
|
+
# @type Image: String
|
28
|
+
|
29
|
+
attr_accessor :PersonId, :ImageURL, :Image
|
30
|
+
|
31
|
+
def initialize(personid=nil, imageurl=nil, image=nil)
|
32
|
+
@PersonId = personid
|
33
|
+
@ImageURL = imageurl
|
34
|
+
@Image = image
|
35
|
+
end
|
36
|
+
|
37
|
+
def deserialize(params)
|
38
|
+
@PersonId = params['PersonId']
|
39
|
+
@ImageURL = params['ImageURL']
|
40
|
+
@Image = params['Image']
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# AddCustomPersonImage返回参数结构体
|
45
|
+
class AddCustomPersonImageResponse < TencentCloud::Common::AbstractModel
|
46
|
+
# @param PersonId: 自定义人物Id
|
47
|
+
# @type PersonId: String
|
48
|
+
# @param ImageInfo: 自定义人脸图片信息
|
49
|
+
# @type ImageInfo: :class:`Tencentcloud::Ivld.v20210903.models.PersonImageInfo`
|
50
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
51
|
+
# @type RequestId: String
|
52
|
+
|
53
|
+
attr_accessor :PersonId, :ImageInfo, :RequestId
|
54
|
+
|
55
|
+
def initialize(personid=nil, imageinfo=nil, requestid=nil)
|
56
|
+
@PersonId = personid
|
57
|
+
@ImageInfo = imageinfo
|
58
|
+
@RequestId = requestid
|
59
|
+
end
|
60
|
+
|
61
|
+
def deserialize(params)
|
62
|
+
@PersonId = params['PersonId']
|
63
|
+
unless params['ImageInfo'].nil?
|
64
|
+
@ImageInfo = PersonImageInfo.new
|
65
|
+
@ImageInfo.deserialize(params['ImageInfo'])
|
66
|
+
end
|
67
|
+
@RequestId = params['RequestId']
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
20
71
|
# 出现信息索引对
|
21
72
|
|
22
73
|
# AppearIndex可选值定义如下:
|
@@ -126,6 +177,164 @@ module TencentCloud
|
|
126
177
|
end
|
127
178
|
end
|
128
179
|
|
180
|
+
# CreateCustomCategory请求参数结构体
|
181
|
+
class CreateCustomCategoryRequest < TencentCloud::Common::AbstractModel
|
182
|
+
# @param L1Category: 自定义一级类型
|
183
|
+
# @type L1Category: String
|
184
|
+
# @param L2Category: 自定义二级类型
|
185
|
+
# @type L2Category: String
|
186
|
+
|
187
|
+
attr_accessor :L1Category, :L2Category
|
188
|
+
|
189
|
+
def initialize(l1category=nil, l2category=nil)
|
190
|
+
@L1Category = l1category
|
191
|
+
@L2Category = l2category
|
192
|
+
end
|
193
|
+
|
194
|
+
def deserialize(params)
|
195
|
+
@L1Category = params['L1Category']
|
196
|
+
@L2Category = params['L2Category']
|
197
|
+
end
|
198
|
+
end
|
199
|
+
|
200
|
+
# CreateCustomCategory返回参数结构体
|
201
|
+
class CreateCustomCategoryResponse < TencentCloud::Common::AbstractModel
|
202
|
+
# @param CategoryId: 自定义分类信息ID
|
203
|
+
# @type CategoryId: String
|
204
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
205
|
+
# @type RequestId: String
|
206
|
+
|
207
|
+
attr_accessor :CategoryId, :RequestId
|
208
|
+
|
209
|
+
def initialize(categoryid=nil, requestid=nil)
|
210
|
+
@CategoryId = categoryid
|
211
|
+
@RequestId = requestid
|
212
|
+
end
|
213
|
+
|
214
|
+
def deserialize(params)
|
215
|
+
@CategoryId = params['CategoryId']
|
216
|
+
@RequestId = params['RequestId']
|
217
|
+
end
|
218
|
+
end
|
219
|
+
|
220
|
+
# CreateCustomGroup请求参数结构体
|
221
|
+
class CreateCustomGroupRequest < TencentCloud::Common::AbstractModel
|
222
|
+
# @param Bucket: 人脸图片COS存储桶Host地址
|
223
|
+
# @type Bucket: String
|
224
|
+
|
225
|
+
attr_accessor :Bucket
|
226
|
+
|
227
|
+
def initialize(bucket=nil)
|
228
|
+
@Bucket = bucket
|
229
|
+
end
|
230
|
+
|
231
|
+
def deserialize(params)
|
232
|
+
@Bucket = params['Bucket']
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
# CreateCustomGroup返回参数结构体
|
237
|
+
class CreateCustomGroupResponse < TencentCloud::Common::AbstractModel
|
238
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
239
|
+
# @type RequestId: String
|
240
|
+
|
241
|
+
attr_accessor :RequestId
|
242
|
+
|
243
|
+
def initialize(requestid=nil)
|
244
|
+
@RequestId = requestid
|
245
|
+
end
|
246
|
+
|
247
|
+
def deserialize(params)
|
248
|
+
@RequestId = params['RequestId']
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
# CreateCustomPerson请求参数结构体
|
253
|
+
class CreateCustomPersonRequest < TencentCloud::Common::AbstractModel
|
254
|
+
# @param Name: 自定义人物姓名
|
255
|
+
# @type Name: String
|
256
|
+
# @param BasicInfo: 自定义人物简要信息(仅用于标记,不支持检索)
|
257
|
+
# @type BasicInfo: String
|
258
|
+
# @param CategoryId: 自定义分类ID,如不存在接口会报错
|
259
|
+
# @type CategoryId: String
|
260
|
+
# @param ImageURL: 自定义人物图片URL,可支持任意地址,推荐使用COS
|
261
|
+
# @type ImageURL: String
|
262
|
+
# @param Image: 原始图片base64编码后的数据
|
263
|
+
# @type Image: String
|
264
|
+
|
265
|
+
attr_accessor :Name, :BasicInfo, :CategoryId, :ImageURL, :Image
|
266
|
+
|
267
|
+
def initialize(name=nil, basicinfo=nil, categoryid=nil, imageurl=nil, image=nil)
|
268
|
+
@Name = name
|
269
|
+
@BasicInfo = basicinfo
|
270
|
+
@CategoryId = categoryid
|
271
|
+
@ImageURL = imageurl
|
272
|
+
@Image = image
|
273
|
+
end
|
274
|
+
|
275
|
+
def deserialize(params)
|
276
|
+
@Name = params['Name']
|
277
|
+
@BasicInfo = params['BasicInfo']
|
278
|
+
@CategoryId = params['CategoryId']
|
279
|
+
@ImageURL = params['ImageURL']
|
280
|
+
@Image = params['Image']
|
281
|
+
end
|
282
|
+
end
|
283
|
+
|
284
|
+
# CreateCustomPerson返回参数结构体
|
285
|
+
class CreateCustomPersonResponse < TencentCloud::Common::AbstractModel
|
286
|
+
# @param PersonId: 自定义人物Id
|
287
|
+
# @type PersonId: String
|
288
|
+
# @param ImageInfo: 自定义人脸信息
|
289
|
+
# @type ImageInfo: :class:`Tencentcloud::Ivld.v20210903.models.PersonImageInfo`
|
290
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
291
|
+
# @type RequestId: String
|
292
|
+
|
293
|
+
attr_accessor :PersonId, :ImageInfo, :RequestId
|
294
|
+
|
295
|
+
def initialize(personid=nil, imageinfo=nil, requestid=nil)
|
296
|
+
@PersonId = personid
|
297
|
+
@ImageInfo = imageinfo
|
298
|
+
@RequestId = requestid
|
299
|
+
end
|
300
|
+
|
301
|
+
def deserialize(params)
|
302
|
+
@PersonId = params['PersonId']
|
303
|
+
unless params['ImageInfo'].nil?
|
304
|
+
@ImageInfo = PersonImageInfo.new
|
305
|
+
@ImageInfo.deserialize(params['ImageInfo'])
|
306
|
+
end
|
307
|
+
@RequestId = params['RequestId']
|
308
|
+
end
|
309
|
+
end
|
310
|
+
|
311
|
+
# CreateDefaultCategories请求参数结构体
|
312
|
+
class CreateDefaultCategoriesRequest < TencentCloud::Common::AbstractModel
|
313
|
+
|
314
|
+
|
315
|
+
def initialize()
|
316
|
+
end
|
317
|
+
|
318
|
+
def deserialize(params)
|
319
|
+
end
|
320
|
+
end
|
321
|
+
|
322
|
+
# CreateDefaultCategories返回参数结构体
|
323
|
+
class CreateDefaultCategoriesResponse < TencentCloud::Common::AbstractModel
|
324
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
325
|
+
# @type RequestId: String
|
326
|
+
|
327
|
+
attr_accessor :RequestId
|
328
|
+
|
329
|
+
def initialize(requestid=nil)
|
330
|
+
@RequestId = requestid
|
331
|
+
end
|
332
|
+
|
333
|
+
def deserialize(params)
|
334
|
+
@RequestId = params['RequestId']
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
129
338
|
# CreateTask请求参数结构体
|
130
339
|
class CreateTaskRequest < TencentCloud::Common::AbstractModel
|
131
340
|
# @param MediaId: 媒资文件ID,最长32B
|
@@ -177,6 +386,90 @@ module TencentCloud
|
|
177
386
|
end
|
178
387
|
end
|
179
388
|
|
389
|
+
# 自定义分类信息
|
390
|
+
class CustomCategory < TencentCloud::Common::AbstractModel
|
391
|
+
# @param CategoryId: 自定义分类ID
|
392
|
+
# @type CategoryId: String
|
393
|
+
# @param L1Category: 一级自定义类型
|
394
|
+
# @type L1Category: String
|
395
|
+
# @param L2Category: 二级自定义类型
|
396
|
+
# @type L2Category: String
|
397
|
+
|
398
|
+
attr_accessor :CategoryId, :L1Category, :L2Category
|
399
|
+
|
400
|
+
def initialize(categoryid=nil, l1category=nil, l2category=nil)
|
401
|
+
@CategoryId = categoryid
|
402
|
+
@L1Category = l1category
|
403
|
+
@L2Category = l2category
|
404
|
+
end
|
405
|
+
|
406
|
+
def deserialize(params)
|
407
|
+
@CategoryId = params['CategoryId']
|
408
|
+
@L1Category = params['L1Category']
|
409
|
+
@L2Category = params['L2Category']
|
410
|
+
end
|
411
|
+
end
|
412
|
+
|
413
|
+
# 自定义人物批量查询过滤条件
|
414
|
+
class CustomPersonFilter < TencentCloud::Common::AbstractModel
|
415
|
+
# @param Name: 待查询的人物姓名
|
416
|
+
# @type Name: String
|
417
|
+
# @param CategoryIdSet: 待过滤的自定义类型Id数组
|
418
|
+
# @type CategoryIdSet: Array
|
419
|
+
# @param PersonIdSet: 待过滤的自定义人物Id数组
|
420
|
+
# @type PersonIdSet: Array
|
421
|
+
# @param L1CategorySet: 一级自定义人物类型数组
|
422
|
+
# @type L1CategorySet: Array
|
423
|
+
|
424
|
+
attr_accessor :Name, :CategoryIdSet, :PersonIdSet, :L1CategorySet
|
425
|
+
|
426
|
+
def initialize(name=nil, categoryidset=nil, personidset=nil, l1categoryset=nil)
|
427
|
+
@Name = name
|
428
|
+
@CategoryIdSet = categoryidset
|
429
|
+
@PersonIdSet = personidset
|
430
|
+
@L1CategorySet = l1categoryset
|
431
|
+
end
|
432
|
+
|
433
|
+
def deserialize(params)
|
434
|
+
@Name = params['Name']
|
435
|
+
@CategoryIdSet = params['CategoryIdSet']
|
436
|
+
@PersonIdSet = params['PersonIdSet']
|
437
|
+
@L1CategorySet = params['L1CategorySet']
|
438
|
+
end
|
439
|
+
end
|
440
|
+
|
441
|
+
# 自定义人物信息
|
442
|
+
class CustomPersonInfo < TencentCloud::Common::AbstractModel
|
443
|
+
# @param PersonId: 自定义人物Id
|
444
|
+
# @type PersonId: String
|
445
|
+
# @param Name: 自定义人物姓名
|
446
|
+
# @type Name: String
|
447
|
+
# @param BasicInfo: 自定义人物简介信息
|
448
|
+
# @type BasicInfo: String
|
449
|
+
# @param L1Category: 一级自定义人物类型
|
450
|
+
# @type L1Category: String
|
451
|
+
# @param L2Category: 二级自定义人物类型
|
452
|
+
# @type L2Category: String
|
453
|
+
|
454
|
+
attr_accessor :PersonId, :Name, :BasicInfo, :L1Category, :L2Category
|
455
|
+
|
456
|
+
def initialize(personid=nil, name=nil, basicinfo=nil, l1category=nil, l2category=nil)
|
457
|
+
@PersonId = personid
|
458
|
+
@Name = name
|
459
|
+
@BasicInfo = basicinfo
|
460
|
+
@L1Category = l1category
|
461
|
+
@L2Category = l2category
|
462
|
+
end
|
463
|
+
|
464
|
+
def deserialize(params)
|
465
|
+
@PersonId = params['PersonId']
|
466
|
+
@Name = params['Name']
|
467
|
+
@BasicInfo = params['BasicInfo']
|
468
|
+
@L1Category = params['L1Category']
|
469
|
+
@L2Category = params['L2Category']
|
470
|
+
end
|
471
|
+
end
|
472
|
+
|
180
473
|
# 任务结果数据
|
181
474
|
class Data < TencentCloud::Common::AbstractModel
|
182
475
|
# @param ShowInfo: 节目粒度结构化结果
|
@@ -197,6 +490,122 @@ module TencentCloud
|
|
197
490
|
end
|
198
491
|
end
|
199
492
|
|
493
|
+
# DeleteCustomCategory请求参数结构体
|
494
|
+
class DeleteCustomCategoryRequest < TencentCloud::Common::AbstractModel
|
495
|
+
# @param CategoryId: 自定义分类ID
|
496
|
+
# @type CategoryId: String
|
497
|
+
|
498
|
+
attr_accessor :CategoryId
|
499
|
+
|
500
|
+
def initialize(categoryid=nil)
|
501
|
+
@CategoryId = categoryid
|
502
|
+
end
|
503
|
+
|
504
|
+
def deserialize(params)
|
505
|
+
@CategoryId = params['CategoryId']
|
506
|
+
end
|
507
|
+
end
|
508
|
+
|
509
|
+
# DeleteCustomCategory返回参数结构体
|
510
|
+
class DeleteCustomCategoryResponse < TencentCloud::Common::AbstractModel
|
511
|
+
# @param CategoryId: 123
|
512
|
+
# @type CategoryId: String
|
513
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
514
|
+
# @type RequestId: String
|
515
|
+
|
516
|
+
attr_accessor :CategoryId, :RequestId
|
517
|
+
|
518
|
+
def initialize(categoryid=nil, requestid=nil)
|
519
|
+
@CategoryId = categoryid
|
520
|
+
@RequestId = requestid
|
521
|
+
end
|
522
|
+
|
523
|
+
def deserialize(params)
|
524
|
+
@CategoryId = params['CategoryId']
|
525
|
+
@RequestId = params['RequestId']
|
526
|
+
end
|
527
|
+
end
|
528
|
+
|
529
|
+
# DeleteCustomPersonImage请求参数结构体
|
530
|
+
class DeleteCustomPersonImageRequest < TencentCloud::Common::AbstractModel
|
531
|
+
# @param PersonId: 自定义人物Id
|
532
|
+
# @type PersonId: String
|
533
|
+
# @param ImageId: 自定义人脸图片Id
|
534
|
+
# @type ImageId: String
|
535
|
+
|
536
|
+
attr_accessor :PersonId, :ImageId
|
537
|
+
|
538
|
+
def initialize(personid=nil, imageid=nil)
|
539
|
+
@PersonId = personid
|
540
|
+
@ImageId = imageid
|
541
|
+
end
|
542
|
+
|
543
|
+
def deserialize(params)
|
544
|
+
@PersonId = params['PersonId']
|
545
|
+
@ImageId = params['ImageId']
|
546
|
+
end
|
547
|
+
end
|
548
|
+
|
549
|
+
# DeleteCustomPersonImage返回参数结构体
|
550
|
+
class DeleteCustomPersonImageResponse < TencentCloud::Common::AbstractModel
|
551
|
+
# @param PersonId: 自定义人物Id
|
552
|
+
# @type PersonId: String
|
553
|
+
# @param ImageId: 已删除的人物图片Id
|
554
|
+
# @type ImageId: String
|
555
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
556
|
+
# @type RequestId: String
|
557
|
+
|
558
|
+
attr_accessor :PersonId, :ImageId, :RequestId
|
559
|
+
|
560
|
+
def initialize(personid=nil, imageid=nil, requestid=nil)
|
561
|
+
@PersonId = personid
|
562
|
+
@ImageId = imageid
|
563
|
+
@RequestId = requestid
|
564
|
+
end
|
565
|
+
|
566
|
+
def deserialize(params)
|
567
|
+
@PersonId = params['PersonId']
|
568
|
+
@ImageId = params['ImageId']
|
569
|
+
@RequestId = params['RequestId']
|
570
|
+
end
|
571
|
+
end
|
572
|
+
|
573
|
+
# DeleteCustomPerson请求参数结构体
|
574
|
+
class DeleteCustomPersonRequest < TencentCloud::Common::AbstractModel
|
575
|
+
# @param PersonId: 待删除的自定义人物ID
|
576
|
+
# @type PersonId: String
|
577
|
+
|
578
|
+
attr_accessor :PersonId
|
579
|
+
|
580
|
+
def initialize(personid=nil)
|
581
|
+
@PersonId = personid
|
582
|
+
end
|
583
|
+
|
584
|
+
def deserialize(params)
|
585
|
+
@PersonId = params['PersonId']
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
# DeleteCustomPerson返回参数结构体
|
590
|
+
class DeleteCustomPersonResponse < TencentCloud::Common::AbstractModel
|
591
|
+
# @param PersonId: 已删除的自定义人物Id
|
592
|
+
# @type PersonId: String
|
593
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
594
|
+
# @type RequestId: String
|
595
|
+
|
596
|
+
attr_accessor :PersonId, :RequestId
|
597
|
+
|
598
|
+
def initialize(personid=nil, requestid=nil)
|
599
|
+
@PersonId = personid
|
600
|
+
@RequestId = requestid
|
601
|
+
end
|
602
|
+
|
603
|
+
def deserialize(params)
|
604
|
+
@PersonId = params['PersonId']
|
605
|
+
@RequestId = params['RequestId']
|
606
|
+
end
|
607
|
+
end
|
608
|
+
|
200
609
|
# DeleteMedia请求参数结构体
|
201
610
|
class DeleteMediaRequest < TencentCloud::Common::AbstractModel
|
202
611
|
# @param MediaId: 媒资文件在系统中的ID
|
@@ -229,6 +638,188 @@ module TencentCloud
|
|
229
638
|
end
|
230
639
|
end
|
231
640
|
|
641
|
+
# DescribeCustomCategories请求参数结构体
|
642
|
+
class DescribeCustomCategoriesRequest < TencentCloud::Common::AbstractModel
|
643
|
+
|
644
|
+
|
645
|
+
def initialize()
|
646
|
+
end
|
647
|
+
|
648
|
+
def deserialize(params)
|
649
|
+
end
|
650
|
+
end
|
651
|
+
|
652
|
+
# DescribeCustomCategories返回参数结构体
|
653
|
+
class DescribeCustomCategoriesResponse < TencentCloud::Common::AbstractModel
|
654
|
+
# @param CategorySet: 自定义人物类型数组
|
655
|
+
# @type CategorySet: Array
|
656
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
657
|
+
# @type RequestId: String
|
658
|
+
|
659
|
+
attr_accessor :CategorySet, :RequestId
|
660
|
+
|
661
|
+
def initialize(categoryset=nil, requestid=nil)
|
662
|
+
@CategorySet = categoryset
|
663
|
+
@RequestId = requestid
|
664
|
+
end
|
665
|
+
|
666
|
+
def deserialize(params)
|
667
|
+
unless params['CategorySet'].nil?
|
668
|
+
@CategorySet = []
|
669
|
+
params['CategorySet'].each do |i|
|
670
|
+
customcategory_tmp = CustomCategory.new
|
671
|
+
customcategory_tmp.deserialize(i)
|
672
|
+
@CategorySet << customcategory_tmp
|
673
|
+
end
|
674
|
+
end
|
675
|
+
@RequestId = params['RequestId']
|
676
|
+
end
|
677
|
+
end
|
678
|
+
|
679
|
+
# DescribeCustomGroup请求参数结构体
|
680
|
+
class DescribeCustomGroupRequest < TencentCloud::Common::AbstractModel
|
681
|
+
|
682
|
+
|
683
|
+
def initialize()
|
684
|
+
end
|
685
|
+
|
686
|
+
def deserialize(params)
|
687
|
+
end
|
688
|
+
end
|
689
|
+
|
690
|
+
# DescribeCustomGroup返回参数结构体
|
691
|
+
class DescribeCustomGroupResponse < TencentCloud::Common::AbstractModel
|
692
|
+
# @param GroupSize: 自定义人物库所包含的人物个数
|
693
|
+
# @type GroupSize: Integer
|
694
|
+
# @param Bucket: 自定义人物库图片后续所在的存储桶
|
695
|
+
# @type Bucket: String
|
696
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
697
|
+
# @type RequestId: String
|
698
|
+
|
699
|
+
attr_accessor :GroupSize, :Bucket, :RequestId
|
700
|
+
|
701
|
+
def initialize(groupsize=nil, bucket=nil, requestid=nil)
|
702
|
+
@GroupSize = groupsize
|
703
|
+
@Bucket = bucket
|
704
|
+
@RequestId = requestid
|
705
|
+
end
|
706
|
+
|
707
|
+
def deserialize(params)
|
708
|
+
@GroupSize = params['GroupSize']
|
709
|
+
@Bucket = params['Bucket']
|
710
|
+
@RequestId = params['RequestId']
|
711
|
+
end
|
712
|
+
end
|
713
|
+
|
714
|
+
# DescribeCustomPersonDetail请求参数结构体
|
715
|
+
class DescribeCustomPersonDetailRequest < TencentCloud::Common::AbstractModel
|
716
|
+
# @param PersonId: 自定义人物Id
|
717
|
+
# @type PersonId: String
|
718
|
+
|
719
|
+
attr_accessor :PersonId
|
720
|
+
|
721
|
+
def initialize(personid=nil)
|
722
|
+
@PersonId = personid
|
723
|
+
end
|
724
|
+
|
725
|
+
def deserialize(params)
|
726
|
+
@PersonId = params['PersonId']
|
727
|
+
end
|
728
|
+
end
|
729
|
+
|
730
|
+
# DescribeCustomPersonDetail返回参数结构体
|
731
|
+
class DescribeCustomPersonDetailResponse < TencentCloud::Common::AbstractModel
|
732
|
+
# @param PersonInfo: 自定义人物信息
|
733
|
+
# @type PersonInfo: :class:`Tencentcloud::Ivld.v20210903.models.CustomPersonInfo`
|
734
|
+
# @param TaskIdSet: 出现该自定义人物的所有分析人物Id
|
735
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
736
|
+
# @type TaskIdSet: Array
|
737
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
738
|
+
# @type RequestId: String
|
739
|
+
|
740
|
+
attr_accessor :PersonInfo, :TaskIdSet, :RequestId
|
741
|
+
|
742
|
+
def initialize(personinfo=nil, taskidset=nil, requestid=nil)
|
743
|
+
@PersonInfo = personinfo
|
744
|
+
@TaskIdSet = taskidset
|
745
|
+
@RequestId = requestid
|
746
|
+
end
|
747
|
+
|
748
|
+
def deserialize(params)
|
749
|
+
unless params['PersonInfo'].nil?
|
750
|
+
@PersonInfo = CustomPersonInfo.new
|
751
|
+
@PersonInfo.deserialize(params['PersonInfo'])
|
752
|
+
end
|
753
|
+
@TaskIdSet = params['TaskIdSet']
|
754
|
+
@RequestId = params['RequestId']
|
755
|
+
end
|
756
|
+
end
|
757
|
+
|
758
|
+
# DescribeCustomPersons请求参数结构体
|
759
|
+
class DescribeCustomPersonsRequest < TencentCloud::Common::AbstractModel
|
760
|
+
# @param PageNumber: 分页序号,从1开始
|
761
|
+
# @type PageNumber: Integer
|
762
|
+
# @param PageSize: 分页数据行数,最多50
|
763
|
+
# @type PageSize: Integer
|
764
|
+
# @param SortBy: 排序信息,默认倒序
|
765
|
+
# @type SortBy: :class:`Tencentcloud::Ivld.v20210903.models.SortBy`
|
766
|
+
# @param Filter: 自定义人物过滤条件
|
767
|
+
# @type Filter: :class:`Tencentcloud::Ivld.v20210903.models.CustomPersonFilter`
|
768
|
+
|
769
|
+
attr_accessor :PageNumber, :PageSize, :SortBy, :Filter
|
770
|
+
|
771
|
+
def initialize(pagenumber=nil, pagesize=nil, sortby=nil, filter=nil)
|
772
|
+
@PageNumber = pagenumber
|
773
|
+
@PageSize = pagesize
|
774
|
+
@SortBy = sortby
|
775
|
+
@Filter = filter
|
776
|
+
end
|
777
|
+
|
778
|
+
def deserialize(params)
|
779
|
+
@PageNumber = params['PageNumber']
|
780
|
+
@PageSize = params['PageSize']
|
781
|
+
unless params['SortBy'].nil?
|
782
|
+
@SortBy = SortBy.new
|
783
|
+
@SortBy.deserialize(params['SortBy'])
|
784
|
+
end
|
785
|
+
unless params['Filter'].nil?
|
786
|
+
@Filter = CustomPersonFilter.new
|
787
|
+
@Filter.deserialize(params['Filter'])
|
788
|
+
end
|
789
|
+
end
|
790
|
+
end
|
791
|
+
|
792
|
+
# DescribeCustomPersons返回参数结构体
|
793
|
+
class DescribeCustomPersonsResponse < TencentCloud::Common::AbstractModel
|
794
|
+
# @param TotalCount: 满足过滤条件的自定义人物数量
|
795
|
+
# @type TotalCount: Integer
|
796
|
+
# @param PersonInfoSet: 自定义人物信息
|
797
|
+
# @type PersonInfoSet: Array
|
798
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
799
|
+
# @type RequestId: String
|
800
|
+
|
801
|
+
attr_accessor :TotalCount, :PersonInfoSet, :RequestId
|
802
|
+
|
803
|
+
def initialize(totalcount=nil, personinfoset=nil, requestid=nil)
|
804
|
+
@TotalCount = totalcount
|
805
|
+
@PersonInfoSet = personinfoset
|
806
|
+
@RequestId = requestid
|
807
|
+
end
|
808
|
+
|
809
|
+
def deserialize(params)
|
810
|
+
@TotalCount = params['TotalCount']
|
811
|
+
unless params['PersonInfoSet'].nil?
|
812
|
+
@PersonInfoSet = []
|
813
|
+
params['PersonInfoSet'].each do |i|
|
814
|
+
custompersoninfo_tmp = CustomPersonInfo.new
|
815
|
+
custompersoninfo_tmp.deserialize(i)
|
816
|
+
@PersonInfoSet << custompersoninfo_tmp
|
817
|
+
end
|
818
|
+
end
|
819
|
+
@RequestId = params['RequestId']
|
820
|
+
end
|
821
|
+
end
|
822
|
+
|
232
823
|
# DescribeMedia请求参数结构体
|
233
824
|
class DescribeMediaRequest < TencentCloud::Common::AbstractModel
|
234
825
|
# @param MediaId: 导入媒资返回的媒资ID,最长32B
|
@@ -904,6 +1495,34 @@ module TencentCloud
|
|
904
1495
|
end
|
905
1496
|
end
|
906
1497
|
|
1498
|
+
# 自定义人物人脸图片信息
|
1499
|
+
class PersonImageInfo < TencentCloud::Common::AbstractModel
|
1500
|
+
# @param ImageId: 人脸图片ID
|
1501
|
+
# @type ImageId: String
|
1502
|
+
# @param ImageURL: 自定义人脸图片的URL,存储在IVLDCustomPreson存储桶内
|
1503
|
+
# @type ImageURL: String
|
1504
|
+
# @param ErrorCode: 自定义人脸图片处理错误码
|
1505
|
+
# @type ErrorCode: String
|
1506
|
+
# @param ErrorMsg: 自定义人脸图片处理错误信息
|
1507
|
+
# @type ErrorMsg: String
|
1508
|
+
|
1509
|
+
attr_accessor :ImageId, :ImageURL, :ErrorCode, :ErrorMsg
|
1510
|
+
|
1511
|
+
def initialize(imageid=nil, imageurl=nil, errorcode=nil, errormsg=nil)
|
1512
|
+
@ImageId = imageid
|
1513
|
+
@ImageURL = imageurl
|
1514
|
+
@ErrorCode = errorcode
|
1515
|
+
@ErrorMsg = errormsg
|
1516
|
+
end
|
1517
|
+
|
1518
|
+
def deserialize(params)
|
1519
|
+
@ImageId = params['ImageId']
|
1520
|
+
@ImageURL = params['ImageURL']
|
1521
|
+
@ErrorCode = params['ErrorCode']
|
1522
|
+
@ErrorMsg = params['ErrorMsg']
|
1523
|
+
end
|
1524
|
+
end
|
1525
|
+
|
907
1526
|
# 视频结构化结果
|
908
1527
|
class ShowInfo < TencentCloud::Common::AbstractModel
|
909
1528
|
# @param Date: 节目日期(只在新闻有效)
|
@@ -1200,6 +1819,98 @@ module TencentCloud
|
|
1200
1819
|
end
|
1201
1820
|
end
|
1202
1821
|
|
1822
|
+
# UpdateCustomCategory请求参数结构体
|
1823
|
+
class UpdateCustomCategoryRequest < TencentCloud::Common::AbstractModel
|
1824
|
+
# @param CategoryId: 自定义人物类型Id
|
1825
|
+
# @type CategoryId: String
|
1826
|
+
# @param L1Category: 一级自定义人物类型
|
1827
|
+
# @type L1Category: String
|
1828
|
+
# @param L2Category: 二级自定义人物类型
|
1829
|
+
# @type L2Category: String
|
1830
|
+
|
1831
|
+
attr_accessor :CategoryId, :L1Category, :L2Category
|
1832
|
+
|
1833
|
+
def initialize(categoryid=nil, l1category=nil, l2category=nil)
|
1834
|
+
@CategoryId = categoryid
|
1835
|
+
@L1Category = l1category
|
1836
|
+
@L2Category = l2category
|
1837
|
+
end
|
1838
|
+
|
1839
|
+
def deserialize(params)
|
1840
|
+
@CategoryId = params['CategoryId']
|
1841
|
+
@L1Category = params['L1Category']
|
1842
|
+
@L2Category = params['L2Category']
|
1843
|
+
end
|
1844
|
+
end
|
1845
|
+
|
1846
|
+
# UpdateCustomCategory返回参数结构体
|
1847
|
+
class UpdateCustomCategoryResponse < TencentCloud::Common::AbstractModel
|
1848
|
+
# @param CategoryId: 成功更新的自定义人物类型Id
|
1849
|
+
# @type CategoryId: String
|
1850
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1851
|
+
# @type RequestId: String
|
1852
|
+
|
1853
|
+
attr_accessor :CategoryId, :RequestId
|
1854
|
+
|
1855
|
+
def initialize(categoryid=nil, requestid=nil)
|
1856
|
+
@CategoryId = categoryid
|
1857
|
+
@RequestId = requestid
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
def deserialize(params)
|
1861
|
+
@CategoryId = params['CategoryId']
|
1862
|
+
@RequestId = params['RequestId']
|
1863
|
+
end
|
1864
|
+
end
|
1865
|
+
|
1866
|
+
# UpdateCustomPerson请求参数结构体
|
1867
|
+
class UpdateCustomPersonRequest < TencentCloud::Common::AbstractModel
|
1868
|
+
# @param PersonId: 待更新的自定义人物Id
|
1869
|
+
# @type PersonId: String
|
1870
|
+
# @param Name: 更新后的自定义人物名称,如为空则不更新
|
1871
|
+
# @type Name: String
|
1872
|
+
# @param BasicInfo: 更新后的自定义人物简介,如为空则不更新
|
1873
|
+
# @type BasicInfo: String
|
1874
|
+
# @param CategoryId: 更新后的分类信息,如为空则不更新
|
1875
|
+
# @type CategoryId: String
|
1876
|
+
|
1877
|
+
attr_accessor :PersonId, :Name, :BasicInfo, :CategoryId
|
1878
|
+
|
1879
|
+
def initialize(personid=nil, name=nil, basicinfo=nil, categoryid=nil)
|
1880
|
+
@PersonId = personid
|
1881
|
+
@Name = name
|
1882
|
+
@BasicInfo = basicinfo
|
1883
|
+
@CategoryId = categoryid
|
1884
|
+
end
|
1885
|
+
|
1886
|
+
def deserialize(params)
|
1887
|
+
@PersonId = params['PersonId']
|
1888
|
+
@Name = params['Name']
|
1889
|
+
@BasicInfo = params['BasicInfo']
|
1890
|
+
@CategoryId = params['CategoryId']
|
1891
|
+
end
|
1892
|
+
end
|
1893
|
+
|
1894
|
+
# UpdateCustomPerson返回参数结构体
|
1895
|
+
class UpdateCustomPersonResponse < TencentCloud::Common::AbstractModel
|
1896
|
+
# @param PersonId: 成功更新的自定义人物Id
|
1897
|
+
# @type PersonId: String
|
1898
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1899
|
+
# @type RequestId: String
|
1900
|
+
|
1901
|
+
attr_accessor :PersonId, :RequestId
|
1902
|
+
|
1903
|
+
def initialize(personid=nil, requestid=nil)
|
1904
|
+
@PersonId = personid
|
1905
|
+
@RequestId = requestid
|
1906
|
+
end
|
1907
|
+
|
1908
|
+
def deserialize(params)
|
1909
|
+
@PersonId = params['PersonId']
|
1910
|
+
@RequestId = params['RequestId']
|
1911
|
+
end
|
1912
|
+
end
|
1913
|
+
|
1203
1914
|
# 关键词在视觉结果中的定位信息
|
1204
1915
|
class VideoAppearInfo < TencentCloud::Common::AbstractModel
|
1205
1916
|
# @param StartTimeStamp: 视觉信息起始时间戳,从0开始
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-ivld
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.250
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-01-
|
11
|
+
date: 2022-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|