tencentcloud-sdk-bda 3.0.1094 → 3.0.1161
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20200324/client.rb +0 -339
- data/lib/v20200324/models.rb +57 -1408
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 93e61950a644e04c8eb5e75f21648971aa8c1d73
|
|
4
|
+
data.tar.gz: c6c0fd96789e6b0b6020bc0b519f69c12b4813e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c3e5b92d181bb2e4f789996b195eec154cbd35f1e611259cad3e4bf38e20c554d510cd0e7050fadddbed1db5b8c585e0158937073e2b7fee3513361920ccf536
|
|
7
|
+
data.tar.gz: 2688070d54620d2a68ffaee0659d436212ac788cd951d9fb0c3b434fe3c67382ca1c251fb52c082f3adfdc53a9ac09aab1a44d2f36a36c116109d01a46a649c2
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1161
|
data/lib/v20200324/client.rb
CHANGED
|
@@ -29,67 +29,6 @@ module TencentCloud
|
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
# 用于创建一个空的人体库,如果人体库已存在返回错误。
|
|
33
|
-
|
|
34
|
-
# 1个APPID下最多有2000W个人体动作轨迹(Trace),最多1W个人体库(Group)。
|
|
35
|
-
|
|
36
|
-
# 单个人体库(Group)最多10W个人体动作轨迹(Trace)。
|
|
37
|
-
|
|
38
|
-
# 单个人员(Person)最多添加 5 个人体动作轨迹(Trace)。
|
|
39
|
-
|
|
40
|
-
# @param request: Request instance for CreateGroup.
|
|
41
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::CreateGroupRequest`
|
|
42
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::CreateGroupResponse`
|
|
43
|
-
def CreateGroup(request)
|
|
44
|
-
body = send_request('CreateGroup', request.serialize)
|
|
45
|
-
response = JSON.parse(body)
|
|
46
|
-
if response['Response'].key?('Error') == false
|
|
47
|
-
model = CreateGroupResponse.new
|
|
48
|
-
model.deserialize(response['Response'])
|
|
49
|
-
model
|
|
50
|
-
else
|
|
51
|
-
code = response['Response']['Error']['Code']
|
|
52
|
-
message = response['Response']['Error']['Message']
|
|
53
|
-
reqid = response['Response']['RequestId']
|
|
54
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
55
|
-
end
|
|
56
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
57
|
-
raise e
|
|
58
|
-
rescue StandardError => e
|
|
59
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
60
|
-
end
|
|
61
|
-
|
|
62
|
-
# 创建人员,添加对应人员的人体动作轨迹信息。
|
|
63
|
-
|
|
64
|
-
# 请注意:
|
|
65
|
-
# - 我们希望您的输入为 严格符合动作轨迹图片 要求的图片。如果您输入的图片不符合动作轨迹图片要求,会对最终效果产生较大负面影响。请您尽量保证一个Trace中的图片人体清晰、无遮挡、连贯;
|
|
66
|
-
# - 一个人体动作轨迹(Trace)可以包含1-5张人体图片。提供越多质量高的人体图片有助于提升最终识别结果;
|
|
67
|
-
# - 无论您在单个Trace中提供了多少张人体图片,我们都将生成一个对应的动作轨迹(Trace)信息。即,Trace仅和本次输入的图片序列相关,和图片的个数无关;
|
|
68
|
-
# - 输入的图片组中,若有部分图片输入不合法(如图片大小过大、分辨率过大、无法解码等),我们将舍弃这部分图片,确保合法图片被正确搜索。即,我们将尽可能保证请求成功,去除不合法的输入;
|
|
69
|
-
# - 构成人体动作轨迹单张图片大小不得超过2M,分辨率不得超过1920*1080。
|
|
70
|
-
|
|
71
|
-
# @param request: Request instance for CreatePerson.
|
|
72
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::CreatePersonRequest`
|
|
73
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::CreatePersonResponse`
|
|
74
|
-
def CreatePerson(request)
|
|
75
|
-
body = send_request('CreatePerson', request.serialize)
|
|
76
|
-
response = JSON.parse(body)
|
|
77
|
-
if response['Response'].key?('Error') == false
|
|
78
|
-
model = CreatePersonResponse.new
|
|
79
|
-
model.deserialize(response['Response'])
|
|
80
|
-
model
|
|
81
|
-
else
|
|
82
|
-
code = response['Response']['Error']['Code']
|
|
83
|
-
message = response['Response']['Error']['Message']
|
|
84
|
-
reqid = response['Response']['RequestId']
|
|
85
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
86
|
-
end
|
|
87
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
88
|
-
raise e
|
|
89
|
-
rescue StandardError => e
|
|
90
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
91
|
-
end
|
|
92
|
-
|
|
93
32
|
# 本接口为人像分割在线处理接口组中的提交任务接口,可以对提交的资源进行处理视频流/图片流识别视频作品中的人像区域,进行一键抠像、背景替换、人像虚化等后期处理。
|
|
94
33
|
|
|
95
34
|
# @param request: Request instance for CreateSegmentationTask.
|
|
@@ -114,85 +53,6 @@ module TencentCloud
|
|
|
114
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
115
54
|
end
|
|
116
55
|
|
|
117
|
-
# 将一个人体动作轨迹添加到一个人员中。一个人员最多允许包含 5 个人体动作轨迹。同一人的人体动作轨迹越多,搜索识别效果越好。
|
|
118
|
-
|
|
119
|
-
# >请注意:
|
|
120
|
-
# - 我们希望您的输入为 严格符合动作轨迹图片 要求的图片。如果您输入的图片不符合动作轨迹图片要求,会对最终效果产生较大负面影响。请您尽量保证一个Trace中的图片人体清晰、无遮挡、连贯。
|
|
121
|
-
# - 一个人体动作轨迹(Trace)可以包含1-5张人体图片。提供越多质量高的人体图片有助于提升最终识别结果。
|
|
122
|
-
# - 无论您在单个Trace中提供了多少张人体图片,我们都将生成一个对应的动作轨迹(Trace)信息。即,Trace仅和本次输入的图片序列相关,和图片的个数无关。
|
|
123
|
-
# - 输入的图片组中,若有部分图片输入不合法(如图片大小过大、分辨率过大、无法解码等),我们将舍弃这部分图片,确保合法图片被正确搜索。即,我们将尽可能保证请求成功,去除不合法的输入;
|
|
124
|
-
# - 构成人体动作轨迹单张图片大小限制为2M,分辨率限制为1920*1080。
|
|
125
|
-
|
|
126
|
-
# @param request: Request instance for CreateTrace.
|
|
127
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::CreateTraceRequest`
|
|
128
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::CreateTraceResponse`
|
|
129
|
-
def CreateTrace(request)
|
|
130
|
-
body = send_request('CreateTrace', request.serialize)
|
|
131
|
-
response = JSON.parse(body)
|
|
132
|
-
if response['Response'].key?('Error') == false
|
|
133
|
-
model = CreateTraceResponse.new
|
|
134
|
-
model.deserialize(response['Response'])
|
|
135
|
-
model
|
|
136
|
-
else
|
|
137
|
-
code = response['Response']['Error']['Code']
|
|
138
|
-
message = response['Response']['Error']['Message']
|
|
139
|
-
reqid = response['Response']['RequestId']
|
|
140
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
141
|
-
end
|
|
142
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
143
|
-
raise e
|
|
144
|
-
rescue StandardError => e
|
|
145
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
146
|
-
end
|
|
147
|
-
|
|
148
|
-
# 删除该人体库及包含的所有的人员。
|
|
149
|
-
|
|
150
|
-
# @param request: Request instance for DeleteGroup.
|
|
151
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::DeleteGroupRequest`
|
|
152
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::DeleteGroupResponse`
|
|
153
|
-
def DeleteGroup(request)
|
|
154
|
-
body = send_request('DeleteGroup', request.serialize)
|
|
155
|
-
response = JSON.parse(body)
|
|
156
|
-
if response['Response'].key?('Error') == false
|
|
157
|
-
model = DeleteGroupResponse.new
|
|
158
|
-
model.deserialize(response['Response'])
|
|
159
|
-
model
|
|
160
|
-
else
|
|
161
|
-
code = response['Response']['Error']['Code']
|
|
162
|
-
message = response['Response']['Error']['Message']
|
|
163
|
-
reqid = response['Response']['RequestId']
|
|
164
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
165
|
-
end
|
|
166
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
167
|
-
raise e
|
|
168
|
-
rescue StandardError => e
|
|
169
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
# 删除人员。
|
|
173
|
-
|
|
174
|
-
# @param request: Request instance for DeletePerson.
|
|
175
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::DeletePersonRequest`
|
|
176
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::DeletePersonResponse`
|
|
177
|
-
def DeletePerson(request)
|
|
178
|
-
body = send_request('DeletePerson', request.serialize)
|
|
179
|
-
response = JSON.parse(body)
|
|
180
|
-
if response['Response'].key?('Error') == false
|
|
181
|
-
model = DeletePersonResponse.new
|
|
182
|
-
model.deserialize(response['Response'])
|
|
183
|
-
model
|
|
184
|
-
else
|
|
185
|
-
code = response['Response']['Error']['Code']
|
|
186
|
-
message = response['Response']['Error']['Message']
|
|
187
|
-
reqid = response['Response']['RequestId']
|
|
188
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
189
|
-
end
|
|
190
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
191
|
-
raise e
|
|
192
|
-
rescue StandardError => e
|
|
193
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
194
|
-
end
|
|
195
|
-
|
|
196
56
|
# 可以查看单条任务的处理情况,包括处理状态,处理结果。
|
|
197
57
|
|
|
198
58
|
# @param request: Request instance for DescribeSegmentationTask.
|
|
@@ -217,205 +77,6 @@ module TencentCloud
|
|
|
217
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
218
78
|
end
|
|
219
79
|
|
|
220
|
-
# 检测给定图片中的人体(Body)的位置信息及属性信息。
|
|
221
|
-
|
|
222
|
-
# @param request: Request instance for DetectBody.
|
|
223
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::DetectBodyRequest`
|
|
224
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::DetectBodyResponse`
|
|
225
|
-
def DetectBody(request)
|
|
226
|
-
body = send_request('DetectBody', request.serialize)
|
|
227
|
-
response = JSON.parse(body)
|
|
228
|
-
if response['Response'].key?('Error') == false
|
|
229
|
-
model = DetectBodyResponse.new
|
|
230
|
-
model.deserialize(response['Response'])
|
|
231
|
-
model
|
|
232
|
-
else
|
|
233
|
-
code = response['Response']['Error']['Code']
|
|
234
|
-
message = response['Response']['Error']['Message']
|
|
235
|
-
reqid = response['Response']['RequestId']
|
|
236
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
237
|
-
end
|
|
238
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
239
|
-
raise e
|
|
240
|
-
rescue StandardError => e
|
|
241
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
242
|
-
end
|
|
243
|
-
|
|
244
|
-
# 检测图片中人体的14个关键点。建议用于人体图像清晰、无遮挡的场景。支持一张图片中存在多个人体的识别。
|
|
245
|
-
|
|
246
|
-
# @param request: Request instance for DetectBodyJoints.
|
|
247
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::DetectBodyJointsRequest`
|
|
248
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::DetectBodyJointsResponse`
|
|
249
|
-
def DetectBodyJoints(request)
|
|
250
|
-
body = send_request('DetectBodyJoints', request.serialize)
|
|
251
|
-
response = JSON.parse(body)
|
|
252
|
-
if response['Response'].key?('Error') == false
|
|
253
|
-
model = DetectBodyJointsResponse.new
|
|
254
|
-
model.deserialize(response['Response'])
|
|
255
|
-
model
|
|
256
|
-
else
|
|
257
|
-
code = response['Response']['Error']['Code']
|
|
258
|
-
message = response['Response']['Error']['Message']
|
|
259
|
-
reqid = response['Response']['RequestId']
|
|
260
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
261
|
-
end
|
|
262
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
263
|
-
raise e
|
|
264
|
-
rescue StandardError => e
|
|
265
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
266
|
-
end
|
|
267
|
-
|
|
268
|
-
# 获取人体库列表。
|
|
269
|
-
|
|
270
|
-
# @param request: Request instance for GetGroupList.
|
|
271
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::GetGroupListRequest`
|
|
272
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::GetGroupListResponse`
|
|
273
|
-
def GetGroupList(request)
|
|
274
|
-
body = send_request('GetGroupList', request.serialize)
|
|
275
|
-
response = JSON.parse(body)
|
|
276
|
-
if response['Response'].key?('Error') == false
|
|
277
|
-
model = GetGroupListResponse.new
|
|
278
|
-
model.deserialize(response['Response'])
|
|
279
|
-
model
|
|
280
|
-
else
|
|
281
|
-
code = response['Response']['Error']['Code']
|
|
282
|
-
message = response['Response']['Error']['Message']
|
|
283
|
-
reqid = response['Response']['RequestId']
|
|
284
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
285
|
-
end
|
|
286
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
287
|
-
raise e
|
|
288
|
-
rescue StandardError => e
|
|
289
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
290
|
-
end
|
|
291
|
-
|
|
292
|
-
# 获取指定人体库中的人员列表。
|
|
293
|
-
|
|
294
|
-
# @param request: Request instance for GetPersonList.
|
|
295
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::GetPersonListRequest`
|
|
296
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::GetPersonListResponse`
|
|
297
|
-
def GetPersonList(request)
|
|
298
|
-
body = send_request('GetPersonList', request.serialize)
|
|
299
|
-
response = JSON.parse(body)
|
|
300
|
-
if response['Response'].key?('Error') == false
|
|
301
|
-
model = GetPersonListResponse.new
|
|
302
|
-
model.deserialize(response['Response'])
|
|
303
|
-
model
|
|
304
|
-
else
|
|
305
|
-
code = response['Response']['Error']['Code']
|
|
306
|
-
message = response['Response']['Error']['Message']
|
|
307
|
-
reqid = response['Response']['RequestId']
|
|
308
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
309
|
-
end
|
|
310
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
311
|
-
raise e
|
|
312
|
-
rescue StandardError => e
|
|
313
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
314
|
-
end
|
|
315
|
-
|
|
316
|
-
# 获取人体库汇总信息。
|
|
317
|
-
|
|
318
|
-
# @param request: Request instance for GetSummaryInfo.
|
|
319
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::GetSummaryInfoRequest`
|
|
320
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::GetSummaryInfoResponse`
|
|
321
|
-
def GetSummaryInfo(request)
|
|
322
|
-
body = send_request('GetSummaryInfo', request.serialize)
|
|
323
|
-
response = JSON.parse(body)
|
|
324
|
-
if response['Response'].key?('Error') == false
|
|
325
|
-
model = GetSummaryInfoResponse.new
|
|
326
|
-
model.deserialize(response['Response'])
|
|
327
|
-
model
|
|
328
|
-
else
|
|
329
|
-
code = response['Response']['Error']['Code']
|
|
330
|
-
message = response['Response']['Error']['Message']
|
|
331
|
-
reqid = response['Response']['RequestId']
|
|
332
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
333
|
-
end
|
|
334
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
335
|
-
raise e
|
|
336
|
-
rescue StandardError => e
|
|
337
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
338
|
-
end
|
|
339
|
-
|
|
340
|
-
# 修改人体库名称、备注。
|
|
341
|
-
|
|
342
|
-
# @param request: Request instance for ModifyGroup.
|
|
343
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::ModifyGroupRequest`
|
|
344
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::ModifyGroupResponse`
|
|
345
|
-
def ModifyGroup(request)
|
|
346
|
-
body = send_request('ModifyGroup', request.serialize)
|
|
347
|
-
response = JSON.parse(body)
|
|
348
|
-
if response['Response'].key?('Error') == false
|
|
349
|
-
model = ModifyGroupResponse.new
|
|
350
|
-
model.deserialize(response['Response'])
|
|
351
|
-
model
|
|
352
|
-
else
|
|
353
|
-
code = response['Response']['Error']['Code']
|
|
354
|
-
message = response['Response']['Error']['Message']
|
|
355
|
-
reqid = response['Response']['RequestId']
|
|
356
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
357
|
-
end
|
|
358
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
359
|
-
raise e
|
|
360
|
-
rescue StandardError => e
|
|
361
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
362
|
-
end
|
|
363
|
-
|
|
364
|
-
# 修改人员信息。
|
|
365
|
-
|
|
366
|
-
# @param request: Request instance for ModifyPersonInfo.
|
|
367
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::ModifyPersonInfoRequest`
|
|
368
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::ModifyPersonInfoResponse`
|
|
369
|
-
def ModifyPersonInfo(request)
|
|
370
|
-
body = send_request('ModifyPersonInfo', request.serialize)
|
|
371
|
-
response = JSON.parse(body)
|
|
372
|
-
if response['Response'].key?('Error') == false
|
|
373
|
-
model = ModifyPersonInfoResponse.new
|
|
374
|
-
model.deserialize(response['Response'])
|
|
375
|
-
model
|
|
376
|
-
else
|
|
377
|
-
code = response['Response']['Error']['Code']
|
|
378
|
-
message = response['Response']['Error']['Message']
|
|
379
|
-
reqid = response['Response']['RequestId']
|
|
380
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
381
|
-
end
|
|
382
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
383
|
-
raise e
|
|
384
|
-
rescue StandardError => e
|
|
385
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
386
|
-
end
|
|
387
|
-
|
|
388
|
-
# 本接口用于对一组待识别的人体动作轨迹(Trace)图片,在人体库中识别出最相似的 TopK 人体,按照相似度从大到小排列。
|
|
389
|
-
|
|
390
|
-
# 人体动作轨迹(Trace)图片要求:图片中当且仅包含一个人体。人体完整、无遮挡。
|
|
391
|
-
|
|
392
|
-
# > 请注意:
|
|
393
|
-
# - 我们希望您的输入为严格符合动作轨迹图片要求的图片。如果您输入的图片不符合动作轨迹图片要求,会对最终效果产生较大负面影响;
|
|
394
|
-
# - 人体动作轨迹,是一个包含1-5张图片的图片序列。您可以输入1张图片作为动作轨迹,也可以输入多张。单个动作轨迹中包含越多符合质量的图片,搜索效果越好。
|
|
395
|
-
# - 构成人体动作轨迹单张图片大小不得超过2M,分辨率不得超过1920*1080。
|
|
396
|
-
|
|
397
|
-
# @param request: Request instance for SearchTrace.
|
|
398
|
-
# @type request: :class:`Tencentcloud::bda::V20200324::SearchTraceRequest`
|
|
399
|
-
# @rtype: :class:`Tencentcloud::bda::V20200324::SearchTraceResponse`
|
|
400
|
-
def SearchTrace(request)
|
|
401
|
-
body = send_request('SearchTrace', request.serialize)
|
|
402
|
-
response = JSON.parse(body)
|
|
403
|
-
if response['Response'].key?('Error') == false
|
|
404
|
-
model = SearchTraceResponse.new
|
|
405
|
-
model.deserialize(response['Response'])
|
|
406
|
-
model
|
|
407
|
-
else
|
|
408
|
-
code = response['Response']['Error']['Code']
|
|
409
|
-
message = response['Response']['Error']['Message']
|
|
410
|
-
reqid = response['Response']['RequestId']
|
|
411
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
412
|
-
end
|
|
413
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
414
|
-
raise e
|
|
415
|
-
rescue StandardError => e
|
|
416
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
417
|
-
end
|
|
418
|
-
|
|
419
80
|
# 在前后景分割的基础上优化多分类分割,支持对头发、五官等的分割,既作为换发型、挂件等底层技术,也可用于抠人头、抠人脸等玩法
|
|
420
81
|
|
|
421
82
|
# @param request: Request instance for SegmentCustomizedPortraitPic.
|