tencentcloud-sdk-tiia 1.0.200
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 +7 -0
- data/lib/VERSION +1 -0
- data/lib/tencentcloud-sdk-tiia.rb +11 -0
- data/lib/v20190529/client.rb +500 -0
- data/lib/v20190529/models.rb +1704 -0
- metadata +66 -0
@@ -0,0 +1,1704 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
module TencentCloud
|
18
|
+
module Tiia
|
19
|
+
module V20190529
|
20
|
+
# AssessQuality请求参数结构体
|
21
|
+
class AssessQualityRequest < TencentCloud::Common::AbstractModel
|
22
|
+
# @param ImageUrl: 图片URL地址。
|
23
|
+
# 图片限制:
|
24
|
+
# • 图片格式:PNG、JPG、JPEG。
|
25
|
+
# • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
26
|
+
# 建议:
|
27
|
+
# • 图片像素:大于50*50像素,否则影响识别效果;
|
28
|
+
# • 长宽比:长边:短边<5;
|
29
|
+
# 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
30
|
+
# @type ImageUrl: String
|
31
|
+
# @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
32
|
+
# **注意:图片需要base64编码,并且要去掉编码头部。**
|
33
|
+
# @type ImageBase64: String
|
34
|
+
|
35
|
+
attr_accessor :ImageUrl, :ImageBase64
|
36
|
+
|
37
|
+
def initialize(imageurl=nil, imagebase64=nil)
|
38
|
+
@ImageUrl = imageurl
|
39
|
+
@ImageBase64 = imagebase64
|
40
|
+
end
|
41
|
+
|
42
|
+
def deserialize(params)
|
43
|
+
@ImageUrl = params['ImageUrl']
|
44
|
+
@ImageBase64 = params['ImageBase64']
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
# AssessQuality返回参数结构体
|
49
|
+
class AssessQualityResponse < TencentCloud::Common::AbstractModel
|
50
|
+
# @param LongImage: 取值为TRUE或FALSE,TRUE为长图,FALSE为正常图,长图定义为长宽比大于等于3或小于等于1/3的图片。
|
51
|
+
# @type LongImage: Boolean
|
52
|
+
# @param BlackAndWhite: 取值为TRUE或FALSE,TRUE为黑白图,FALSE为否。黑白图即灰度图,指红绿蓝三个通道都是以灰度色阶显示的图片,并非视觉上的“黑白图片”。
|
53
|
+
# @type BlackAndWhite: Boolean
|
54
|
+
# @param SmallImage: 取值为TRUE或FALSE,TRUE为小图,FALSE为否, 小图定义为最长边小于179像素的图片。当一张图片被判断为小图时,不建议做推荐和展示,其他字段统一输出为0或FALSE。
|
55
|
+
# @type SmallImage: Boolean
|
56
|
+
# @param BigImage: 取值为TRUE或FALSE,TRUE为大图,FALSE为否,定义为最短边大于1000像素的图片
|
57
|
+
# @type BigImage: Boolean
|
58
|
+
# @param PureImage: 取值为TRUE或FALSE,TRUE为纯色图或纯文字图,即没有内容或只有简单内容的图片,FALSE为正常图片。
|
59
|
+
# @type PureImage: Boolean
|
60
|
+
# @param ClarityScore: 综合评分。图像清晰度的得分,对图片的噪声、曝光、模糊、压缩等因素进行综合评估,取值为[0, 100],值越大,越清晰。一般大于50为较清晰图片,标准可以自行把握。
|
61
|
+
# @type ClarityScore: Integer
|
62
|
+
# @param AestheticScore: 综合评分。图像美观度得分, 从构图、色彩等多个艺术性维度评价图片,取值为[0, 100],值越大,越美观。一般大于50为较美观图片,标准可以自行把握。
|
63
|
+
# @type AestheticScore: Integer
|
64
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
65
|
+
# @type RequestId: String
|
66
|
+
|
67
|
+
attr_accessor :LongImage, :BlackAndWhite, :SmallImage, :BigImage, :PureImage, :ClarityScore, :AestheticScore, :RequestId
|
68
|
+
|
69
|
+
def initialize(longimage=nil, blackandwhite=nil, smallimage=nil, bigimage=nil, pureimage=nil, clarityscore=nil, aestheticscore=nil, requestid=nil)
|
70
|
+
@LongImage = longimage
|
71
|
+
@BlackAndWhite = blackandwhite
|
72
|
+
@SmallImage = smallimage
|
73
|
+
@BigImage = bigimage
|
74
|
+
@PureImage = pureimage
|
75
|
+
@ClarityScore = clarityscore
|
76
|
+
@AestheticScore = aestheticscore
|
77
|
+
@RequestId = requestid
|
78
|
+
end
|
79
|
+
|
80
|
+
def deserialize(params)
|
81
|
+
@LongImage = params['LongImage']
|
82
|
+
@BlackAndWhite = params['BlackAndWhite']
|
83
|
+
@SmallImage = params['SmallImage']
|
84
|
+
@BigImage = params['BigImage']
|
85
|
+
@PureImage = params['PureImage']
|
86
|
+
@ClarityScore = params['ClarityScore']
|
87
|
+
@AestheticScore = params['AestheticScore']
|
88
|
+
@RequestId = params['RequestId']
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
# 车牌信息
|
93
|
+
class CarPlateContent < TencentCloud::Common::AbstractModel
|
94
|
+
# @param Plate: 车牌信息。
|
95
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
96
|
+
# @type Plate: String
|
97
|
+
# @param Color: 车牌颜色。
|
98
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
99
|
+
# @type Color: String
|
100
|
+
# @param Type: 车牌类型;渣土车车牌遮挡时,该值为枚举值“异常”。
|
101
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
102
|
+
# @type Type: String
|
103
|
+
# @param PlateLocation: 车牌在图片中的坐标信息。
|
104
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
105
|
+
# @type PlateLocation: Array
|
106
|
+
|
107
|
+
attr_accessor :Plate, :Color, :Type, :PlateLocation
|
108
|
+
|
109
|
+
def initialize(plate=nil, color=nil, type=nil, platelocation=nil)
|
110
|
+
@Plate = plate
|
111
|
+
@Color = color
|
112
|
+
@Type = type
|
113
|
+
@PlateLocation = platelocation
|
114
|
+
end
|
115
|
+
|
116
|
+
def deserialize(params)
|
117
|
+
@Plate = params['Plate']
|
118
|
+
@Color = params['Color']
|
119
|
+
@Type = params['Type']
|
120
|
+
unless params['PlateLocation'].nil?
|
121
|
+
@PlateLocation = []
|
122
|
+
params['PlateLocation'].each do |i|
|
123
|
+
coord_tmp = Coord.new
|
124
|
+
coord_tmp.deserialize(i)
|
125
|
+
@PlateLocation << coord_tmp
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
131
|
+
# 车辆属性识别的结果
|
132
|
+
class CarTagItem < TencentCloud::Common::AbstractModel
|
133
|
+
# @param Serial: 车系
|
134
|
+
# @type Serial: String
|
135
|
+
# @param Brand: 车辆品牌
|
136
|
+
# @type Brand: String
|
137
|
+
# @param Type: 车辆类型
|
138
|
+
# @type Type: String
|
139
|
+
# @param Color: 车辆颜色
|
140
|
+
# @type Color: String
|
141
|
+
# @param Confidence: 置信度,0-100
|
142
|
+
# @type Confidence: Integer
|
143
|
+
# @param Year: 年份,没识别出年份的时候返回0
|
144
|
+
# @type Year: Integer
|
145
|
+
# @param CarLocation: 车辆在图片中的坐标信息
|
146
|
+
# @type CarLocation: Array
|
147
|
+
# @param PlateContent: 车牌信息
|
148
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
149
|
+
# @type PlateContent: :class:`Tencentcloud::Tiia.v20190529.models.CarPlateContent`
|
150
|
+
|
151
|
+
attr_accessor :Serial, :Brand, :Type, :Color, :Confidence, :Year, :CarLocation, :PlateContent
|
152
|
+
|
153
|
+
def initialize(serial=nil, brand=nil, type=nil, color=nil, confidence=nil, year=nil, carlocation=nil, platecontent=nil)
|
154
|
+
@Serial = serial
|
155
|
+
@Brand = brand
|
156
|
+
@Type = type
|
157
|
+
@Color = color
|
158
|
+
@Confidence = confidence
|
159
|
+
@Year = year
|
160
|
+
@CarLocation = carlocation
|
161
|
+
@PlateContent = platecontent
|
162
|
+
end
|
163
|
+
|
164
|
+
def deserialize(params)
|
165
|
+
@Serial = params['Serial']
|
166
|
+
@Brand = params['Brand']
|
167
|
+
@Type = params['Type']
|
168
|
+
@Color = params['Color']
|
169
|
+
@Confidence = params['Confidence']
|
170
|
+
@Year = params['Year']
|
171
|
+
unless params['CarLocation'].nil?
|
172
|
+
@CarLocation = []
|
173
|
+
params['CarLocation'].each do |i|
|
174
|
+
coord_tmp = Coord.new
|
175
|
+
coord_tmp.deserialize(i)
|
176
|
+
@CarLocation << coord_tmp
|
177
|
+
end
|
178
|
+
end
|
179
|
+
unless params['PlateContent'].nil?
|
180
|
+
@PlateContent = CarPlateContent.new
|
181
|
+
@PlateContent.deserialize(params['PlateContent'])
|
182
|
+
end
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
# 汽车坐标信息
|
187
|
+
class Coord < TencentCloud::Common::AbstractModel
|
188
|
+
# @param X: 横坐标x
|
189
|
+
# @type X: Integer
|
190
|
+
# @param Y: 纵坐标y
|
191
|
+
# @type Y: Integer
|
192
|
+
|
193
|
+
attr_accessor :X, :Y
|
194
|
+
|
195
|
+
def initialize(x=nil, y=nil)
|
196
|
+
@X = x
|
197
|
+
@Y = y
|
198
|
+
end
|
199
|
+
|
200
|
+
def deserialize(params)
|
201
|
+
@X = params['X']
|
202
|
+
@Y = params['Y']
|
203
|
+
end
|
204
|
+
end
|
205
|
+
|
206
|
+
# CreateGroup请求参数结构体
|
207
|
+
class CreateGroupRequest < TencentCloud::Common::AbstractModel
|
208
|
+
# @param GroupId: 图库ID,不可重复,仅支持字母、数字和下划线。
|
209
|
+
# @type GroupId: String
|
210
|
+
# @param GroupName: 图库名称描述。
|
211
|
+
# @type GroupName: String
|
212
|
+
# @param MaxCapacity: 该库的容量限制。
|
213
|
+
# @type MaxCapacity: Integer
|
214
|
+
# @param Brief: 简介。
|
215
|
+
# @type Brief: String
|
216
|
+
# @param MaxQps: 该库的访问限频 ,默认10。
|
217
|
+
# @type MaxQps: Integer
|
218
|
+
# @param GroupType: 图库类型, 默认为通用。
|
219
|
+
# 类型:
|
220
|
+
# 1: 通用图库,以用户输入图提取特征。
|
221
|
+
# 2: 灰度图库,输入图和搜索图均转为灰度图提取特征。
|
222
|
+
# @type GroupType: Integer
|
223
|
+
|
224
|
+
attr_accessor :GroupId, :GroupName, :MaxCapacity, :Brief, :MaxQps, :GroupType
|
225
|
+
|
226
|
+
def initialize(groupid=nil, groupname=nil, maxcapacity=nil, brief=nil, maxqps=nil, grouptype=nil)
|
227
|
+
@GroupId = groupid
|
228
|
+
@GroupName = groupname
|
229
|
+
@MaxCapacity = maxcapacity
|
230
|
+
@Brief = brief
|
231
|
+
@MaxQps = maxqps
|
232
|
+
@GroupType = grouptype
|
233
|
+
end
|
234
|
+
|
235
|
+
def deserialize(params)
|
236
|
+
@GroupId = params['GroupId']
|
237
|
+
@GroupName = params['GroupName']
|
238
|
+
@MaxCapacity = params['MaxCapacity']
|
239
|
+
@Brief = params['Brief']
|
240
|
+
@MaxQps = params['MaxQps']
|
241
|
+
@GroupType = params['GroupType']
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
# CreateGroup返回参数结构体
|
246
|
+
class CreateGroupResponse < TencentCloud::Common::AbstractModel
|
247
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
248
|
+
# @type RequestId: String
|
249
|
+
|
250
|
+
attr_accessor :RequestId
|
251
|
+
|
252
|
+
def initialize(requestid=nil)
|
253
|
+
@RequestId = requestid
|
254
|
+
end
|
255
|
+
|
256
|
+
def deserialize(params)
|
257
|
+
@RequestId = params['RequestId']
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
# CreateImage请求参数结构体
|
262
|
+
class CreateImageRequest < TencentCloud::Common::AbstractModel
|
263
|
+
# @param GroupId: 图库ID。
|
264
|
+
# @type GroupId: String
|
265
|
+
# @param EntityId: 物品ID,最多支持64个字符。
|
266
|
+
# 若EntityId已存在,则对其追加图片。
|
267
|
+
# @type EntityId: String
|
268
|
+
# @param PicName: 图片名称,最多支持64个字符,
|
269
|
+
# 同一个EntityId,最大支持5张图。如果图片名称已存在,则会更新库中的图片。
|
270
|
+
# @type PicName: String
|
271
|
+
# @param ImageUrl: 图片的 Url 。对应图片 base64 编码后大小不可超过2M。
|
272
|
+
# Url、Image必须提供一个,如果都提供,只使用 Url。
|
273
|
+
# 图片分辨率不超过1920*1080。
|
274
|
+
# 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
|
275
|
+
# 非腾讯云存储的Url速度和稳定性可能受一定影响。
|
276
|
+
# 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
277
|
+
# @type ImageUrl: String
|
278
|
+
# @param ImageBase64: 图片 base64 数据,base64 编码后大小不可超过2M。
|
279
|
+
# 图片分辨率不超过1920*1080。
|
280
|
+
# 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
281
|
+
# @type ImageBase64: String
|
282
|
+
# @param CustomContent: 用户自定义的内容,最多支持4096个字符,查询时原样带回。
|
283
|
+
# @type CustomContent: String
|
284
|
+
# @param Tags: 图片自定义标签,最多不超过10个,格式为JSON。
|
285
|
+
# @type Tags: String
|
286
|
+
|
287
|
+
attr_accessor :GroupId, :EntityId, :PicName, :ImageUrl, :ImageBase64, :CustomContent, :Tags
|
288
|
+
|
289
|
+
def initialize(groupid=nil, entityid=nil, picname=nil, imageurl=nil, imagebase64=nil, customcontent=nil, tags=nil)
|
290
|
+
@GroupId = groupid
|
291
|
+
@EntityId = entityid
|
292
|
+
@PicName = picname
|
293
|
+
@ImageUrl = imageurl
|
294
|
+
@ImageBase64 = imagebase64
|
295
|
+
@CustomContent = customcontent
|
296
|
+
@Tags = tags
|
297
|
+
end
|
298
|
+
|
299
|
+
def deserialize(params)
|
300
|
+
@GroupId = params['GroupId']
|
301
|
+
@EntityId = params['EntityId']
|
302
|
+
@PicName = params['PicName']
|
303
|
+
@ImageUrl = params['ImageUrl']
|
304
|
+
@ImageBase64 = params['ImageBase64']
|
305
|
+
@CustomContent = params['CustomContent']
|
306
|
+
@Tags = params['Tags']
|
307
|
+
end
|
308
|
+
end
|
309
|
+
|
310
|
+
# CreateImage返回参数结构体
|
311
|
+
class CreateImageResponse < TencentCloud::Common::AbstractModel
|
312
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
313
|
+
# @type RequestId: String
|
314
|
+
|
315
|
+
attr_accessor :RequestId
|
316
|
+
|
317
|
+
def initialize(requestid=nil)
|
318
|
+
@RequestId = requestid
|
319
|
+
end
|
320
|
+
|
321
|
+
def deserialize(params)
|
322
|
+
@RequestId = params['RequestId']
|
323
|
+
end
|
324
|
+
end
|
325
|
+
|
326
|
+
# CropImage请求参数结构体
|
327
|
+
class CropImageRequest < TencentCloud::Common::AbstractModel
|
328
|
+
# @param Width: 需要裁剪区域的宽度,与Height共同组成所需裁剪的图片宽高比例;
|
329
|
+
# 输入数字请大于0、小于图片宽度的像素值;
|
330
|
+
# @type Width: Integer
|
331
|
+
# @param Height: 需要裁剪区域的高度,与Width共同组成所需裁剪的图片宽高比例;
|
332
|
+
# 输入数字请请大于0、小于图片高度的像素值;
|
333
|
+
# 宽高比例(Width : Height)会简化为最简分数,即如果Width输入10、Height输入20,会简化为1:2。
|
334
|
+
# Width : Height建议取值在[1, 2.5]之间,超过这个范围可能会影响效果;
|
335
|
+
# @type Height: Integer
|
336
|
+
# @param ImageUrl: 图片URL地址。
|
337
|
+
# 图片限制:
|
338
|
+
# • 图片格式:PNG、JPG、JPEG。
|
339
|
+
# • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
340
|
+
# 建议:
|
341
|
+
# • 图片像素:大于50*50像素,否则影响识别效果;
|
342
|
+
# • 长宽比:长边:短边<5;
|
343
|
+
# 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
344
|
+
# @type ImageUrl: String
|
345
|
+
# @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
346
|
+
# **注意:图片需要base64编码,并且要去掉编码头部。**
|
347
|
+
# @type ImageBase64: String
|
348
|
+
|
349
|
+
attr_accessor :Width, :Height, :ImageUrl, :ImageBase64
|
350
|
+
|
351
|
+
def initialize(width=nil, height=nil, imageurl=nil, imagebase64=nil)
|
352
|
+
@Width = width
|
353
|
+
@Height = height
|
354
|
+
@ImageUrl = imageurl
|
355
|
+
@ImageBase64 = imagebase64
|
356
|
+
end
|
357
|
+
|
358
|
+
def deserialize(params)
|
359
|
+
@Width = params['Width']
|
360
|
+
@Height = params['Height']
|
361
|
+
@ImageUrl = params['ImageUrl']
|
362
|
+
@ImageBase64 = params['ImageBase64']
|
363
|
+
end
|
364
|
+
end
|
365
|
+
|
366
|
+
# CropImage返回参数结构体
|
367
|
+
class CropImageResponse < TencentCloud::Common::AbstractModel
|
368
|
+
# @param X: 裁剪区域左上角X坐标值
|
369
|
+
# @type X: Integer
|
370
|
+
# @param Y: 裁剪区域左上角Y坐标值
|
371
|
+
# @type Y: Integer
|
372
|
+
# @param Width: 裁剪区域的宽度,单位为像素
|
373
|
+
# @type Width: Integer
|
374
|
+
# @param Height: 裁剪区域的高度,单位为像素
|
375
|
+
# @type Height: Integer
|
376
|
+
# @param OriginalWidth: 原图宽度,单位为像素
|
377
|
+
# @type OriginalWidth: Integer
|
378
|
+
# @param OriginalHeight: 原图高度,单位为像素
|
379
|
+
# @type OriginalHeight: Integer
|
380
|
+
# @param CropResult: 0:抠图正常;
|
381
|
+
# 1:原图过长,指原图的高度是宽度的1.8倍以上;
|
382
|
+
# 2:原图过宽,指原图的宽度是高度的1.8倍以上;
|
383
|
+
# 3:抠图区域过长,指抠图的高度是主体备选框高度的1.6倍以上;
|
384
|
+
# 4:抠图区域过宽,指当没有检测到人脸时,抠图区域宽度是检测出的原图主体区域宽度的1.6倍以上;
|
385
|
+
# 5:纯色图,指裁剪区域视觉较为单一、缺乏主体部分 ;
|
386
|
+
# 6:宽高比异常,指Width : Height取值超出[1, 2.5]的范围;
|
387
|
+
|
388
|
+
# 以上是辅助决策的参考建议,可以根据业务需求选择采纳或忽视。
|
389
|
+
# @type CropResult: Integer
|
390
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
391
|
+
# @type RequestId: String
|
392
|
+
|
393
|
+
attr_accessor :X, :Y, :Width, :Height, :OriginalWidth, :OriginalHeight, :CropResult, :RequestId
|
394
|
+
|
395
|
+
def initialize(x=nil, y=nil, width=nil, height=nil, originalwidth=nil, originalheight=nil, cropresult=nil, requestid=nil)
|
396
|
+
@X = x
|
397
|
+
@Y = y
|
398
|
+
@Width = width
|
399
|
+
@Height = height
|
400
|
+
@OriginalWidth = originalwidth
|
401
|
+
@OriginalHeight = originalheight
|
402
|
+
@CropResult = cropresult
|
403
|
+
@RequestId = requestid
|
404
|
+
end
|
405
|
+
|
406
|
+
def deserialize(params)
|
407
|
+
@X = params['X']
|
408
|
+
@Y = params['Y']
|
409
|
+
@Width = params['Width']
|
410
|
+
@Height = params['Height']
|
411
|
+
@OriginalWidth = params['OriginalWidth']
|
412
|
+
@OriginalHeight = params['OriginalHeight']
|
413
|
+
@CropResult = params['CropResult']
|
414
|
+
@RequestId = params['RequestId']
|
415
|
+
end
|
416
|
+
end
|
417
|
+
|
418
|
+
# DeleteImages请求参数结构体
|
419
|
+
class DeleteImagesRequest < TencentCloud::Common::AbstractModel
|
420
|
+
# @param GroupId: 图库名称。
|
421
|
+
# @type GroupId: String
|
422
|
+
# @param EntityId: 物品ID。
|
423
|
+
# @type EntityId: String
|
424
|
+
# @param PicName: 图片名称,如果不指定本参数,则删除EntityId下所有的图片;否则删除指定的图。
|
425
|
+
# @type PicName: String
|
426
|
+
|
427
|
+
attr_accessor :GroupId, :EntityId, :PicName
|
428
|
+
|
429
|
+
def initialize(groupid=nil, entityid=nil, picname=nil)
|
430
|
+
@GroupId = groupid
|
431
|
+
@EntityId = entityid
|
432
|
+
@PicName = picname
|
433
|
+
end
|
434
|
+
|
435
|
+
def deserialize(params)
|
436
|
+
@GroupId = params['GroupId']
|
437
|
+
@EntityId = params['EntityId']
|
438
|
+
@PicName = params['PicName']
|
439
|
+
end
|
440
|
+
end
|
441
|
+
|
442
|
+
# DeleteImages返回参数结构体
|
443
|
+
class DeleteImagesResponse < TencentCloud::Common::AbstractModel
|
444
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
445
|
+
# @type RequestId: String
|
446
|
+
|
447
|
+
attr_accessor :RequestId
|
448
|
+
|
449
|
+
def initialize(requestid=nil)
|
450
|
+
@RequestId = requestid
|
451
|
+
end
|
452
|
+
|
453
|
+
def deserialize(params)
|
454
|
+
@RequestId = params['RequestId']
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
458
|
+
# DescribeGroups请求参数结构体
|
459
|
+
class DescribeGroupsRequest < TencentCloud::Common::AbstractModel
|
460
|
+
# @param Offset: 起始序号,默认值为0。
|
461
|
+
# @type Offset: Integer
|
462
|
+
# @param Limit: 返回数量,默认值为10,最大值为100。
|
463
|
+
# @type Limit: Integer
|
464
|
+
# @param GroupId: 图库ID,如果不为空,则返回指定库信息。
|
465
|
+
# @type GroupId: String
|
466
|
+
|
467
|
+
attr_accessor :Offset, :Limit, :GroupId
|
468
|
+
|
469
|
+
def initialize(offset=nil, limit=nil, groupid=nil)
|
470
|
+
@Offset = offset
|
471
|
+
@Limit = limit
|
472
|
+
@GroupId = groupid
|
473
|
+
end
|
474
|
+
|
475
|
+
def deserialize(params)
|
476
|
+
@Offset = params['Offset']
|
477
|
+
@Limit = params['Limit']
|
478
|
+
@GroupId = params['GroupId']
|
479
|
+
end
|
480
|
+
end
|
481
|
+
|
482
|
+
# DescribeGroups返回参数结构体
|
483
|
+
class DescribeGroupsResponse < TencentCloud::Common::AbstractModel
|
484
|
+
# @param Groups: 图库信息
|
485
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
486
|
+
# @type Groups: Array
|
487
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
488
|
+
# @type RequestId: String
|
489
|
+
|
490
|
+
attr_accessor :Groups, :RequestId
|
491
|
+
|
492
|
+
def initialize(groups=nil, requestid=nil)
|
493
|
+
@Groups = groups
|
494
|
+
@RequestId = requestid
|
495
|
+
end
|
496
|
+
|
497
|
+
def deserialize(params)
|
498
|
+
unless params['Groups'].nil?
|
499
|
+
@Groups = []
|
500
|
+
params['Groups'].each do |i|
|
501
|
+
groupinfo_tmp = GroupInfo.new
|
502
|
+
groupinfo_tmp.deserialize(i)
|
503
|
+
@Groups << groupinfo_tmp
|
504
|
+
end
|
505
|
+
end
|
506
|
+
@RequestId = params['RequestId']
|
507
|
+
end
|
508
|
+
end
|
509
|
+
|
510
|
+
# DescribeImages请求参数结构体
|
511
|
+
class DescribeImagesRequest < TencentCloud::Common::AbstractModel
|
512
|
+
# @param GroupId: 图库名称。
|
513
|
+
# @type GroupId: String
|
514
|
+
# @param EntityId: 物品ID。
|
515
|
+
# @type EntityId: String
|
516
|
+
# @param PicName: 图片名称。
|
517
|
+
# @type PicName: String
|
518
|
+
|
519
|
+
attr_accessor :GroupId, :EntityId, :PicName
|
520
|
+
|
521
|
+
def initialize(groupid=nil, entityid=nil, picname=nil)
|
522
|
+
@GroupId = groupid
|
523
|
+
@EntityId = entityid
|
524
|
+
@PicName = picname
|
525
|
+
end
|
526
|
+
|
527
|
+
def deserialize(params)
|
528
|
+
@GroupId = params['GroupId']
|
529
|
+
@EntityId = params['EntityId']
|
530
|
+
@PicName = params['PicName']
|
531
|
+
end
|
532
|
+
end
|
533
|
+
|
534
|
+
# DescribeImages返回参数结构体
|
535
|
+
class DescribeImagesResponse < TencentCloud::Common::AbstractModel
|
536
|
+
# @param GroupId: 图库名称。
|
537
|
+
# @type GroupId: String
|
538
|
+
# @param EntityId: 物品ID。
|
539
|
+
# @type EntityId: String
|
540
|
+
# @param ImageInfos: 图片信息。
|
541
|
+
# @type ImageInfos: Array
|
542
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
543
|
+
# @type RequestId: String
|
544
|
+
|
545
|
+
attr_accessor :GroupId, :EntityId, :ImageInfos, :RequestId
|
546
|
+
|
547
|
+
def initialize(groupid=nil, entityid=nil, imageinfos=nil, requestid=nil)
|
548
|
+
@GroupId = groupid
|
549
|
+
@EntityId = entityid
|
550
|
+
@ImageInfos = imageinfos
|
551
|
+
@RequestId = requestid
|
552
|
+
end
|
553
|
+
|
554
|
+
def deserialize(params)
|
555
|
+
@GroupId = params['GroupId']
|
556
|
+
@EntityId = params['EntityId']
|
557
|
+
unless params['ImageInfos'].nil?
|
558
|
+
@ImageInfos = []
|
559
|
+
params['ImageInfos'].each do |i|
|
560
|
+
imageinfo_tmp = ImageInfo.new
|
561
|
+
imageinfo_tmp.deserialize(i)
|
562
|
+
@ImageInfos << imageinfo_tmp
|
563
|
+
end
|
564
|
+
end
|
565
|
+
@RequestId = params['RequestId']
|
566
|
+
end
|
567
|
+
end
|
568
|
+
|
569
|
+
# DetectCelebrity请求参数结构体
|
570
|
+
class DetectCelebrityRequest < TencentCloud::Common::AbstractModel
|
571
|
+
# @param ImageUrl: 图片URL地址。
|
572
|
+
# 图片限制:
|
573
|
+
# • 图片格式:PNG、JPG、JPEG。
|
574
|
+
# • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
575
|
+
# 建议:
|
576
|
+
# • 图片像素:大于50*50像素,否则影响识别效果;
|
577
|
+
# • 长宽比:长边:短边<5;
|
578
|
+
# 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
579
|
+
# @type ImageUrl: String
|
580
|
+
# @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
581
|
+
# **注意:图片需要base64编码,并且要去掉编码头部。**
|
582
|
+
# @type ImageBase64: String
|
583
|
+
|
584
|
+
attr_accessor :ImageUrl, :ImageBase64
|
585
|
+
|
586
|
+
def initialize(imageurl=nil, imagebase64=nil)
|
587
|
+
@ImageUrl = imageurl
|
588
|
+
@ImageBase64 = imagebase64
|
589
|
+
end
|
590
|
+
|
591
|
+
def deserialize(params)
|
592
|
+
@ImageUrl = params['ImageUrl']
|
593
|
+
@ImageBase64 = params['ImageBase64']
|
594
|
+
end
|
595
|
+
end
|
596
|
+
|
597
|
+
# DetectCelebrity返回参数结构体
|
598
|
+
class DetectCelebrityResponse < TencentCloud::Common::AbstractModel
|
599
|
+
# @param Faces: 公众人物识别结果数组。如果检测不到人脸,返回为空;最多可以返回10个人脸识别结果。
|
600
|
+
# @type Faces: Array
|
601
|
+
# @param Threshold: 本服务在不同误识率水平下(将图片中的人物识别错误的比例)的推荐阈值,可以用于控制识别结果的精度。
|
602
|
+
# FalseRate1Percent, FalseRate5Permil, FalseRate1Permil分别代表误识率在百分之一、千分之五、千分之一情况下的推荐阈值。
|
603
|
+
# 因为阈值会存在变动,请勿将此处输出的固定值处理,而是每次取值与confidence对比,来判断本次的识别结果是否可信。
|
604
|
+
# 例如,如果您业务中可以接受的误识率是1%,则可以将所有confidence>=FalseRate1Percent的结论认为是正确的。
|
605
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
606
|
+
# @type Threshold: :class:`Tencentcloud::Tiia.v20190529.models.Threshold`
|
607
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
608
|
+
# @type RequestId: String
|
609
|
+
|
610
|
+
attr_accessor :Faces, :Threshold, :RequestId
|
611
|
+
|
612
|
+
def initialize(faces=nil, threshold=nil, requestid=nil)
|
613
|
+
@Faces = faces
|
614
|
+
@Threshold = threshold
|
615
|
+
@RequestId = requestid
|
616
|
+
end
|
617
|
+
|
618
|
+
def deserialize(params)
|
619
|
+
unless params['Faces'].nil?
|
620
|
+
@Faces = []
|
621
|
+
params['Faces'].each do |i|
|
622
|
+
face_tmp = Face.new
|
623
|
+
face_tmp.deserialize(i)
|
624
|
+
@Faces << face_tmp
|
625
|
+
end
|
626
|
+
end
|
627
|
+
unless params['Threshold'].nil?
|
628
|
+
@Threshold = Threshold.new
|
629
|
+
@Threshold.deserialize(params['Threshold'])
|
630
|
+
end
|
631
|
+
@RequestId = params['RequestId']
|
632
|
+
end
|
633
|
+
end
|
634
|
+
|
635
|
+
# DetectDisgust请求参数结构体
|
636
|
+
class DetectDisgustRequest < TencentCloud::Common::AbstractModel
|
637
|
+
# @param ImageUrl: 图片URL地址。
|
638
|
+
# 图片限制:
|
639
|
+
# • 图片格式:PNG、JPG、JPEG。
|
640
|
+
# • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
641
|
+
# 建议:
|
642
|
+
# • 图片像素:大于50*50像素,否则影响识别效果;
|
643
|
+
# • 长宽比:长边:短边<5;
|
644
|
+
# 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
645
|
+
# @type ImageUrl: String
|
646
|
+
# @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
647
|
+
# **注意:图片需要base64编码,并且要去掉编码头部。**
|
648
|
+
# @type ImageBase64: String
|
649
|
+
|
650
|
+
attr_accessor :ImageUrl, :ImageBase64
|
651
|
+
|
652
|
+
def initialize(imageurl=nil, imagebase64=nil)
|
653
|
+
@ImageUrl = imageurl
|
654
|
+
@ImageBase64 = imagebase64
|
655
|
+
end
|
656
|
+
|
657
|
+
def deserialize(params)
|
658
|
+
@ImageUrl = params['ImageUrl']
|
659
|
+
@ImageBase64 = params['ImageBase64']
|
660
|
+
end
|
661
|
+
end
|
662
|
+
|
663
|
+
# DetectDisgust返回参数结构体
|
664
|
+
class DetectDisgustResponse < TencentCloud::Common::AbstractModel
|
665
|
+
# @param Confidence: 对于图片中包含恶心内容的置信度,取值[0,1],一般超过0.5则表明可能是恶心图片。
|
666
|
+
# @type Confidence: Float
|
667
|
+
# @param Type: 与图像内容最相似的恶心内容的类别,包含腐烂、密集、畸形、血腥、蛇、虫子、牙齿等。
|
668
|
+
# @type Type: String
|
669
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
670
|
+
# @type RequestId: String
|
671
|
+
|
672
|
+
attr_accessor :Confidence, :Type, :RequestId
|
673
|
+
|
674
|
+
def initialize(confidence=nil, type=nil, requestid=nil)
|
675
|
+
@Confidence = confidence
|
676
|
+
@Type = type
|
677
|
+
@RequestId = requestid
|
678
|
+
end
|
679
|
+
|
680
|
+
def deserialize(params)
|
681
|
+
@Confidence = params['Confidence']
|
682
|
+
@Type = params['Type']
|
683
|
+
@RequestId = params['RequestId']
|
684
|
+
end
|
685
|
+
end
|
686
|
+
|
687
|
+
# DetectLabelBeta请求参数结构体
|
688
|
+
class DetectLabelBetaRequest < TencentCloud::Common::AbstractModel
|
689
|
+
# @param ImageUrl: 图片URL地址。
|
690
|
+
# 图片限制:
|
691
|
+
# • 图片格式:PNG、JPG、JPEG。
|
692
|
+
# • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
693
|
+
# 建议:
|
694
|
+
# • 图片像素:大于50*50像素,否则影响识别效果;
|
695
|
+
# • 长宽比:长边:短边<5;
|
696
|
+
# 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
697
|
+
# @type ImageUrl: String
|
698
|
+
# @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
699
|
+
# **注意:图片需要base64编码,并且要去掉编码头部。**
|
700
|
+
# @type ImageBase64: String
|
701
|
+
# @param Scenes: 本次调用支持的识别场景,可选值如下:
|
702
|
+
# WEB,针对网络图片优化;
|
703
|
+
# CAMERA,针对手机摄像头拍摄图片优化;
|
704
|
+
# ALBUM,针对手机相册、网盘产品优化;
|
705
|
+
# NEWS,针对新闻、资讯、广电等行业优化;
|
706
|
+
# NONECAM,非实拍图;
|
707
|
+
# LOCATION,主体位置识别;
|
708
|
+
# 如果不传此参数,则默认为WEB。
|
709
|
+
|
710
|
+
# 支持多场景(Scenes)一起检测。例如,使用 Scenes=["WEB", "CAMERA"],即对一张图片使用两个模型同时检测,输出两套识别结果。
|
711
|
+
# @type Scenes: Array
|
712
|
+
|
713
|
+
attr_accessor :ImageUrl, :ImageBase64, :Scenes
|
714
|
+
|
715
|
+
def initialize(imageurl=nil, imagebase64=nil, scenes=nil)
|
716
|
+
@ImageUrl = imageurl
|
717
|
+
@ImageBase64 = imagebase64
|
718
|
+
@Scenes = scenes
|
719
|
+
end
|
720
|
+
|
721
|
+
def deserialize(params)
|
722
|
+
@ImageUrl = params['ImageUrl']
|
723
|
+
@ImageBase64 = params['ImageBase64']
|
724
|
+
@Scenes = params['Scenes']
|
725
|
+
end
|
726
|
+
end
|
727
|
+
|
728
|
+
# DetectLabelBeta返回参数结构体
|
729
|
+
class DetectLabelBetaResponse < TencentCloud::Common::AbstractModel
|
730
|
+
# @param Labels: Web网络版标签结果数组。如未选择WEB场景,则为空。
|
731
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
732
|
+
# @type Labels: Array
|
733
|
+
# @param CameraLabels: Camera摄像头版标签结果数组。如未选择CAMERA场景,则为空。
|
734
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
735
|
+
# @type CameraLabels: Array
|
736
|
+
# @param AlbumLabels: Album相册版标签结果数组。如未选择ALBUM场景,则为空。
|
737
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
738
|
+
# @type AlbumLabels: Array
|
739
|
+
# @param NewsLabels: News新闻版标签结果数组。如未选择NEWS场景,则为空。
|
740
|
+
# 新闻版目前为测试阶段,暂不提供每个标签的一级、二级分类信息的输出。
|
741
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
742
|
+
# @type NewsLabels: Array
|
743
|
+
# @param NoneCamLabels: 非实拍标签
|
744
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
745
|
+
# @type NoneCamLabels: Array
|
746
|
+
# @param LocationLabels: 识别结果
|
747
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
748
|
+
# @type LocationLabels: Array
|
749
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
750
|
+
# @type RequestId: String
|
751
|
+
|
752
|
+
attr_accessor :Labels, :CameraLabels, :AlbumLabels, :NewsLabels, :NoneCamLabels, :LocationLabels, :RequestId
|
753
|
+
|
754
|
+
def initialize(labels=nil, cameralabels=nil, albumlabels=nil, newslabels=nil, nonecamlabels=nil, locationlabels=nil, requestid=nil)
|
755
|
+
@Labels = labels
|
756
|
+
@CameraLabels = cameralabels
|
757
|
+
@AlbumLabels = albumlabels
|
758
|
+
@NewsLabels = newslabels
|
759
|
+
@NoneCamLabels = nonecamlabels
|
760
|
+
@LocationLabels = locationlabels
|
761
|
+
@RequestId = requestid
|
762
|
+
end
|
763
|
+
|
764
|
+
def deserialize(params)
|
765
|
+
unless params['Labels'].nil?
|
766
|
+
@Labels = []
|
767
|
+
params['Labels'].each do |i|
|
768
|
+
detectlabelitem_tmp = DetectLabelItem.new
|
769
|
+
detectlabelitem_tmp.deserialize(i)
|
770
|
+
@Labels << detectlabelitem_tmp
|
771
|
+
end
|
772
|
+
end
|
773
|
+
unless params['CameraLabels'].nil?
|
774
|
+
@CameraLabels = []
|
775
|
+
params['CameraLabels'].each do |i|
|
776
|
+
detectlabelitem_tmp = DetectLabelItem.new
|
777
|
+
detectlabelitem_tmp.deserialize(i)
|
778
|
+
@CameraLabels << detectlabelitem_tmp
|
779
|
+
end
|
780
|
+
end
|
781
|
+
unless params['AlbumLabels'].nil?
|
782
|
+
@AlbumLabels = []
|
783
|
+
params['AlbumLabels'].each do |i|
|
784
|
+
detectlabelitem_tmp = DetectLabelItem.new
|
785
|
+
detectlabelitem_tmp.deserialize(i)
|
786
|
+
@AlbumLabels << detectlabelitem_tmp
|
787
|
+
end
|
788
|
+
end
|
789
|
+
unless params['NewsLabels'].nil?
|
790
|
+
@NewsLabels = []
|
791
|
+
params['NewsLabels'].each do |i|
|
792
|
+
detectlabelitem_tmp = DetectLabelItem.new
|
793
|
+
detectlabelitem_tmp.deserialize(i)
|
794
|
+
@NewsLabels << detectlabelitem_tmp
|
795
|
+
end
|
796
|
+
end
|
797
|
+
unless params['NoneCamLabels'].nil?
|
798
|
+
@NoneCamLabels = []
|
799
|
+
params['NoneCamLabels'].each do |i|
|
800
|
+
detectlabelitem_tmp = DetectLabelItem.new
|
801
|
+
detectlabelitem_tmp.deserialize(i)
|
802
|
+
@NoneCamLabels << detectlabelitem_tmp
|
803
|
+
end
|
804
|
+
end
|
805
|
+
unless params['LocationLabels'].nil?
|
806
|
+
@LocationLabels = []
|
807
|
+
params['LocationLabels'].each do |i|
|
808
|
+
product_tmp = Product.new
|
809
|
+
product_tmp.deserialize(i)
|
810
|
+
@LocationLabels << product_tmp
|
811
|
+
end
|
812
|
+
end
|
813
|
+
@RequestId = params['RequestId']
|
814
|
+
end
|
815
|
+
end
|
816
|
+
|
817
|
+
# 图像标签检测结果。
|
818
|
+
class DetectLabelItem < TencentCloud::Common::AbstractModel
|
819
|
+
# @param Name: 图片中的物体名称。
|
820
|
+
# @type Name: String
|
821
|
+
# @param Confidence: 算法对于Name的置信度,0-100之间,值越高,表示对于Name越确定。
|
822
|
+
# @type Confidence: Integer
|
823
|
+
# @param FirstCategory: 标签的一级分类
|
824
|
+
# @type FirstCategory: String
|
825
|
+
# @param SecondCategory: 标签的二级分类
|
826
|
+
# @type SecondCategory: String
|
827
|
+
|
828
|
+
attr_accessor :Name, :Confidence, :FirstCategory, :SecondCategory
|
829
|
+
|
830
|
+
def initialize(name=nil, confidence=nil, firstcategory=nil, secondcategory=nil)
|
831
|
+
@Name = name
|
832
|
+
@Confidence = confidence
|
833
|
+
@FirstCategory = firstcategory
|
834
|
+
@SecondCategory = secondcategory
|
835
|
+
end
|
836
|
+
|
837
|
+
def deserialize(params)
|
838
|
+
@Name = params['Name']
|
839
|
+
@Confidence = params['Confidence']
|
840
|
+
@FirstCategory = params['FirstCategory']
|
841
|
+
@SecondCategory = params['SecondCategory']
|
842
|
+
end
|
843
|
+
end
|
844
|
+
|
845
|
+
# DetectLabel请求参数结构体
|
846
|
+
class DetectLabelRequest < TencentCloud::Common::AbstractModel
|
847
|
+
# @param ImageUrl: 图片URL地址。
|
848
|
+
# 图片限制:
|
849
|
+
# • 图片格式:PNG、JPG、JPEG。
|
850
|
+
# • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
851
|
+
# 建议:
|
852
|
+
# • 图片像素:大于50*50像素,否则影响识别效果;
|
853
|
+
# • 长宽比:长边:短边<5;
|
854
|
+
# 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
855
|
+
# @type ImageUrl: String
|
856
|
+
# @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
857
|
+
# **注意:图片需要base64编码,并且要去掉编码头部。**
|
858
|
+
# @type ImageBase64: String
|
859
|
+
# @param Scenes: 本次调用支持的识别场景,可选值如下:
|
860
|
+
# WEB,针对网络图片优化;
|
861
|
+
# CAMERA,针对手机摄像头拍摄图片优化;
|
862
|
+
# ALBUM,针对手机相册、网盘产品优化;
|
863
|
+
# NEWS,针对新闻、资讯、广电等行业优化;
|
864
|
+
# 如果不传此参数,则默认为WEB。
|
865
|
+
|
866
|
+
# 支持多场景(Scenes)一起检测。例如,使用 Scenes=["WEB", "CAMERA"],即对一张图片使用两个模型同时检测,输出两套识别结果。
|
867
|
+
# @type Scenes: Array
|
868
|
+
|
869
|
+
attr_accessor :ImageUrl, :ImageBase64, :Scenes
|
870
|
+
|
871
|
+
def initialize(imageurl=nil, imagebase64=nil, scenes=nil)
|
872
|
+
@ImageUrl = imageurl
|
873
|
+
@ImageBase64 = imagebase64
|
874
|
+
@Scenes = scenes
|
875
|
+
end
|
876
|
+
|
877
|
+
def deserialize(params)
|
878
|
+
@ImageUrl = params['ImageUrl']
|
879
|
+
@ImageBase64 = params['ImageBase64']
|
880
|
+
@Scenes = params['Scenes']
|
881
|
+
end
|
882
|
+
end
|
883
|
+
|
884
|
+
# DetectLabel返回参数结构体
|
885
|
+
class DetectLabelResponse < TencentCloud::Common::AbstractModel
|
886
|
+
# @param Labels: Web网络版标签结果数组。如未选择WEB场景,则为空。
|
887
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
888
|
+
# @type Labels: Array
|
889
|
+
# @param CameraLabels: Camera摄像头版标签结果数组。如未选择CAMERA场景,则为空。
|
890
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
891
|
+
# @type CameraLabels: Array
|
892
|
+
# @param AlbumLabels: Album相册版标签结果数组。如未选择ALBUM场景,则为空。
|
893
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
894
|
+
# @type AlbumLabels: Array
|
895
|
+
# @param NewsLabels: News新闻版标签结果数组。如未选择NEWS场景,则为空。
|
896
|
+
# 新闻版目前为测试阶段,暂不提供每个标签的一级、二级分类信息的输出。
|
897
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
898
|
+
# @type NewsLabels: Array
|
899
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
900
|
+
# @type RequestId: String
|
901
|
+
|
902
|
+
attr_accessor :Labels, :CameraLabels, :AlbumLabels, :NewsLabels, :RequestId
|
903
|
+
|
904
|
+
def initialize(labels=nil, cameralabels=nil, albumlabels=nil, newslabels=nil, requestid=nil)
|
905
|
+
@Labels = labels
|
906
|
+
@CameraLabels = cameralabels
|
907
|
+
@AlbumLabels = albumlabels
|
908
|
+
@NewsLabels = newslabels
|
909
|
+
@RequestId = requestid
|
910
|
+
end
|
911
|
+
|
912
|
+
def deserialize(params)
|
913
|
+
unless params['Labels'].nil?
|
914
|
+
@Labels = []
|
915
|
+
params['Labels'].each do |i|
|
916
|
+
detectlabelitem_tmp = DetectLabelItem.new
|
917
|
+
detectlabelitem_tmp.deserialize(i)
|
918
|
+
@Labels << detectlabelitem_tmp
|
919
|
+
end
|
920
|
+
end
|
921
|
+
unless params['CameraLabels'].nil?
|
922
|
+
@CameraLabels = []
|
923
|
+
params['CameraLabels'].each do |i|
|
924
|
+
detectlabelitem_tmp = DetectLabelItem.new
|
925
|
+
detectlabelitem_tmp.deserialize(i)
|
926
|
+
@CameraLabels << detectlabelitem_tmp
|
927
|
+
end
|
928
|
+
end
|
929
|
+
unless params['AlbumLabels'].nil?
|
930
|
+
@AlbumLabels = []
|
931
|
+
params['AlbumLabels'].each do |i|
|
932
|
+
detectlabelitem_tmp = DetectLabelItem.new
|
933
|
+
detectlabelitem_tmp.deserialize(i)
|
934
|
+
@AlbumLabels << detectlabelitem_tmp
|
935
|
+
end
|
936
|
+
end
|
937
|
+
unless params['NewsLabels'].nil?
|
938
|
+
@NewsLabels = []
|
939
|
+
params['NewsLabels'].each do |i|
|
940
|
+
detectlabelitem_tmp = DetectLabelItem.new
|
941
|
+
detectlabelitem_tmp.deserialize(i)
|
942
|
+
@NewsLabels << detectlabelitem_tmp
|
943
|
+
end
|
944
|
+
end
|
945
|
+
@RequestId = params['RequestId']
|
946
|
+
end
|
947
|
+
end
|
948
|
+
|
949
|
+
# DetectMisbehavior请求参数结构体
|
950
|
+
class DetectMisbehaviorRequest < TencentCloud::Common::AbstractModel
|
951
|
+
# @param ImageUrl: 图片URL地址。
|
952
|
+
# 图片限制:
|
953
|
+
# • 图片格式:PNG、JPG、JPEG。
|
954
|
+
# • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
955
|
+
# 建议:
|
956
|
+
# • 图片像素:大于50*50像素,否则影响识别效果;
|
957
|
+
# • 长宽比:长边:短边<5;
|
958
|
+
# 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
959
|
+
# @type ImageUrl: String
|
960
|
+
# @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
961
|
+
# **注意:图片需要base64编码,并且要去掉编码头部。**
|
962
|
+
# @type ImageBase64: String
|
963
|
+
|
964
|
+
attr_accessor :ImageUrl, :ImageBase64
|
965
|
+
|
966
|
+
def initialize(imageurl=nil, imagebase64=nil)
|
967
|
+
@ImageUrl = imageurl
|
968
|
+
@ImageBase64 = imagebase64
|
969
|
+
end
|
970
|
+
|
971
|
+
def deserialize(params)
|
972
|
+
@ImageUrl = params['ImageUrl']
|
973
|
+
@ImageBase64 = params['ImageBase64']
|
974
|
+
end
|
975
|
+
end
|
976
|
+
|
977
|
+
# DetectMisbehavior返回参数结构体
|
978
|
+
class DetectMisbehaviorResponse < TencentCloud::Common::AbstractModel
|
979
|
+
# @param Confidence: 对于图片中包含不良行为的置信度,取值[0,1],一般超过0.5则表明可能包含不良行为内容;
|
980
|
+
# @type Confidence: Float
|
981
|
+
# @param Type: 图像中最可能包含的不良行为类别,包括赌博、打架斗殴、吸毒等。
|
982
|
+
# @type Type: String
|
983
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
984
|
+
# @type RequestId: String
|
985
|
+
|
986
|
+
attr_accessor :Confidence, :Type, :RequestId
|
987
|
+
|
988
|
+
def initialize(confidence=nil, type=nil, requestid=nil)
|
989
|
+
@Confidence = confidence
|
990
|
+
@Type = type
|
991
|
+
@RequestId = requestid
|
992
|
+
end
|
993
|
+
|
994
|
+
def deserialize(params)
|
995
|
+
@Confidence = params['Confidence']
|
996
|
+
@Type = params['Type']
|
997
|
+
@RequestId = params['RequestId']
|
998
|
+
end
|
999
|
+
end
|
1000
|
+
|
1001
|
+
# DetectProductBeta请求参数结构体
|
1002
|
+
class DetectProductBetaRequest < TencentCloud::Common::AbstractModel
|
1003
|
+
# @param ImageUrl: 图片限制:内测版仅支持jpg、jpeg,图片大小不超过1M,分辨率在25万到100万之间。
|
1004
|
+
# 建议先对图片进行压缩,以便提升处理速度。
|
1005
|
+
# @type ImageUrl: String
|
1006
|
+
# @param ImageBase64: 图片经过base64编码的内容。最大不超过1M,分辨率在25万到100万之间。
|
1007
|
+
# 与ImageUrl同时存在时优先使用ImageUrl字段。
|
1008
|
+
# @type ImageBase64: String
|
1009
|
+
# @param NeedLemma: 是否需要百科信息 1:是,0: 否,默认是0
|
1010
|
+
# @type NeedLemma: Integer
|
1011
|
+
|
1012
|
+
attr_accessor :ImageUrl, :ImageBase64, :NeedLemma
|
1013
|
+
|
1014
|
+
def initialize(imageurl=nil, imagebase64=nil, needlemma=nil)
|
1015
|
+
@ImageUrl = imageurl
|
1016
|
+
@ImageBase64 = imagebase64
|
1017
|
+
@NeedLemma = needlemma
|
1018
|
+
end
|
1019
|
+
|
1020
|
+
def deserialize(params)
|
1021
|
+
@ImageUrl = params['ImageUrl']
|
1022
|
+
@ImageBase64 = params['ImageBase64']
|
1023
|
+
@NeedLemma = params['NeedLemma']
|
1024
|
+
end
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
# DetectProductBeta返回参数结构体
|
1028
|
+
class DetectProductBetaResponse < TencentCloud::Common::AbstractModel
|
1029
|
+
# @param RegionDetected: 检测到的图片中的商品位置和品类预测。
|
1030
|
+
# 当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。
|
1031
|
+
# 最多可以输出__3组__检测结果。
|
1032
|
+
# @type RegionDetected: Array
|
1033
|
+
# @param ProductInfo: 图像识别出的商品的详细信息。
|
1034
|
+
# 当图像中检测到多个物品时,会对显著性最高的进行识别。
|
1035
|
+
# @type ProductInfo: :class:`Tencentcloud::Tiia.v20190529.models.ProductInfo`
|
1036
|
+
# @param ProductInfoList: 相似商品信息列表
|
1037
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1038
|
+
# @type ProductInfoList: Array
|
1039
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1040
|
+
# @type RequestId: String
|
1041
|
+
|
1042
|
+
attr_accessor :RegionDetected, :ProductInfo, :ProductInfoList, :RequestId
|
1043
|
+
|
1044
|
+
def initialize(regiondetected=nil, productinfo=nil, productinfolist=nil, requestid=nil)
|
1045
|
+
@RegionDetected = regiondetected
|
1046
|
+
@ProductInfo = productinfo
|
1047
|
+
@ProductInfoList = productinfolist
|
1048
|
+
@RequestId = requestid
|
1049
|
+
end
|
1050
|
+
|
1051
|
+
def deserialize(params)
|
1052
|
+
unless params['RegionDetected'].nil?
|
1053
|
+
@RegionDetected = []
|
1054
|
+
params['RegionDetected'].each do |i|
|
1055
|
+
regiondetected_tmp = RegionDetected.new
|
1056
|
+
regiondetected_tmp.deserialize(i)
|
1057
|
+
@RegionDetected << regiondetected_tmp
|
1058
|
+
end
|
1059
|
+
end
|
1060
|
+
unless params['ProductInfo'].nil?
|
1061
|
+
@ProductInfo = ProductInfo.new
|
1062
|
+
@ProductInfo.deserialize(params['ProductInfo'])
|
1063
|
+
end
|
1064
|
+
unless params['ProductInfoList'].nil?
|
1065
|
+
@ProductInfoList = []
|
1066
|
+
params['ProductInfoList'].each do |i|
|
1067
|
+
productinfo_tmp = ProductInfo.new
|
1068
|
+
productinfo_tmp.deserialize(i)
|
1069
|
+
@ProductInfoList << productinfo_tmp
|
1070
|
+
end
|
1071
|
+
end
|
1072
|
+
@RequestId = params['RequestId']
|
1073
|
+
end
|
1074
|
+
end
|
1075
|
+
|
1076
|
+
# DetectProduct请求参数结构体
|
1077
|
+
class DetectProductRequest < TencentCloud::Common::AbstractModel
|
1078
|
+
# @param ImageUrl: 图片URL地址。
|
1079
|
+
# 图片限制:
|
1080
|
+
# • 图片格式:PNG、JPG、JPEG。
|
1081
|
+
# • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
1082
|
+
# 建议:
|
1083
|
+
# • 图片像素:大于50*50像素,否则影响识别效果;
|
1084
|
+
# • 长宽比:长边:短边<5;
|
1085
|
+
# 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
1086
|
+
# @type ImageUrl: String
|
1087
|
+
# @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
1088
|
+
# **注意:图片需要base64编码,并且要去掉编码头部。**
|
1089
|
+
# @type ImageBase64: String
|
1090
|
+
|
1091
|
+
attr_accessor :ImageUrl, :ImageBase64
|
1092
|
+
|
1093
|
+
def initialize(imageurl=nil, imagebase64=nil)
|
1094
|
+
@ImageUrl = imageurl
|
1095
|
+
@ImageBase64 = imagebase64
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
def deserialize(params)
|
1099
|
+
@ImageUrl = params['ImageUrl']
|
1100
|
+
@ImageBase64 = params['ImageBase64']
|
1101
|
+
end
|
1102
|
+
end
|
1103
|
+
|
1104
|
+
# DetectProduct返回参数结构体
|
1105
|
+
class DetectProductResponse < TencentCloud::Common::AbstractModel
|
1106
|
+
# @param Products: 商品识别结果数组
|
1107
|
+
# @type Products: Array
|
1108
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1109
|
+
# @type RequestId: String
|
1110
|
+
|
1111
|
+
attr_accessor :Products, :RequestId
|
1112
|
+
|
1113
|
+
def initialize(products=nil, requestid=nil)
|
1114
|
+
@Products = products
|
1115
|
+
@RequestId = requestid
|
1116
|
+
end
|
1117
|
+
|
1118
|
+
def deserialize(params)
|
1119
|
+
unless params['Products'].nil?
|
1120
|
+
@Products = []
|
1121
|
+
params['Products'].each do |i|
|
1122
|
+
product_tmp = Product.new
|
1123
|
+
product_tmp.deserialize(i)
|
1124
|
+
@Products << product_tmp
|
1125
|
+
end
|
1126
|
+
end
|
1127
|
+
@RequestId = params['RequestId']
|
1128
|
+
end
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
# EnhanceImage请求参数结构体
|
1132
|
+
class EnhanceImageRequest < TencentCloud::Common::AbstractModel
|
1133
|
+
# @param ImageUrl: 图片URL地址。
|
1134
|
+
# 图片限制:
|
1135
|
+
# • 图片格式:PNG、JPG、JPEG。
|
1136
|
+
# • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
1137
|
+
# 建议:
|
1138
|
+
# • 图片像素:大于50*50像素,最大不超过250万像素,否则影响识别效果;
|
1139
|
+
# • 长宽比:长边:短边<5;
|
1140
|
+
# 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
1141
|
+
# @type ImageUrl: String
|
1142
|
+
# @param ImageBase64: 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
1143
|
+
# **注意:图片需要base64编码,并且要去掉编码头部。**
|
1144
|
+
# @type ImageBase64: String
|
1145
|
+
|
1146
|
+
attr_accessor :ImageUrl, :ImageBase64
|
1147
|
+
|
1148
|
+
def initialize(imageurl=nil, imagebase64=nil)
|
1149
|
+
@ImageUrl = imageurl
|
1150
|
+
@ImageBase64 = imagebase64
|
1151
|
+
end
|
1152
|
+
|
1153
|
+
def deserialize(params)
|
1154
|
+
@ImageUrl = params['ImageUrl']
|
1155
|
+
@ImageBase64 = params['ImageBase64']
|
1156
|
+
end
|
1157
|
+
end
|
1158
|
+
|
1159
|
+
# EnhanceImage返回参数结构体
|
1160
|
+
class EnhanceImageResponse < TencentCloud::Common::AbstractModel
|
1161
|
+
# @param EnhancedImage: 增强后图片的base64编码。
|
1162
|
+
# @type EnhancedImage: String
|
1163
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1164
|
+
# @type RequestId: String
|
1165
|
+
|
1166
|
+
attr_accessor :EnhancedImage, :RequestId
|
1167
|
+
|
1168
|
+
def initialize(enhancedimage=nil, requestid=nil)
|
1169
|
+
@EnhancedImage = enhancedimage
|
1170
|
+
@RequestId = requestid
|
1171
|
+
end
|
1172
|
+
|
1173
|
+
def deserialize(params)
|
1174
|
+
@EnhancedImage = params['EnhancedImage']
|
1175
|
+
@RequestId = params['RequestId']
|
1176
|
+
end
|
1177
|
+
end
|
1178
|
+
|
1179
|
+
# 公众人物识别人脸信息
|
1180
|
+
class Face < TencentCloud::Common::AbstractModel
|
1181
|
+
# @param Name: 与图片中人脸最相似的公众人物的名字。
|
1182
|
+
# @type Name: String
|
1183
|
+
# @param Labels: 公众人物身份标签的数组,一个公众人物可能有多个身份标签。
|
1184
|
+
# @type Labels: Array
|
1185
|
+
# @param BasicInfo: 对人物的简介。
|
1186
|
+
# @type BasicInfo: String
|
1187
|
+
# @param Confidence: 算法对于Name的置信度(图像中人脸与公众人物的相似度),0-100之间,值越高,表示对于Name越确定。
|
1188
|
+
# @type Confidence: Integer
|
1189
|
+
# @param X: 人脸区域左上角横坐标。
|
1190
|
+
# @type X: Integer
|
1191
|
+
# @param Y: 人脸区域左上角纵坐标。
|
1192
|
+
# @type Y: Integer
|
1193
|
+
# @param Width: 人脸区域宽度。
|
1194
|
+
# @type Width: Integer
|
1195
|
+
# @param Height: 人脸区域高度。
|
1196
|
+
# @type Height: Integer
|
1197
|
+
# @param ID: 公众人物的唯一编号,可以用于区分同名人物、一个人物不同称呼等情况。唯一编号为8个字符构成的字符串。
|
1198
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1199
|
+
# @type ID: String
|
1200
|
+
|
1201
|
+
attr_accessor :Name, :Labels, :BasicInfo, :Confidence, :X, :Y, :Width, :Height, :ID
|
1202
|
+
|
1203
|
+
def initialize(name=nil, labels=nil, basicinfo=nil, confidence=nil, x=nil, y=nil, width=nil, height=nil, id=nil)
|
1204
|
+
@Name = name
|
1205
|
+
@Labels = labels
|
1206
|
+
@BasicInfo = basicinfo
|
1207
|
+
@Confidence = confidence
|
1208
|
+
@X = x
|
1209
|
+
@Y = y
|
1210
|
+
@Width = width
|
1211
|
+
@Height = height
|
1212
|
+
@ID = id
|
1213
|
+
end
|
1214
|
+
|
1215
|
+
def deserialize(params)
|
1216
|
+
@Name = params['Name']
|
1217
|
+
unless params['Labels'].nil?
|
1218
|
+
@Labels = []
|
1219
|
+
params['Labels'].each do |i|
|
1220
|
+
labels_tmp = Labels.new
|
1221
|
+
labels_tmp.deserialize(i)
|
1222
|
+
@Labels << labels_tmp
|
1223
|
+
end
|
1224
|
+
end
|
1225
|
+
@BasicInfo = params['BasicInfo']
|
1226
|
+
@Confidence = params['Confidence']
|
1227
|
+
@X = params['X']
|
1228
|
+
@Y = params['Y']
|
1229
|
+
@Width = params['Width']
|
1230
|
+
@Height = params['Height']
|
1231
|
+
@ID = params['ID']
|
1232
|
+
end
|
1233
|
+
end
|
1234
|
+
|
1235
|
+
# 图库信息。
|
1236
|
+
class GroupInfo < TencentCloud::Common::AbstractModel
|
1237
|
+
# @param GroupId: 图库Id。
|
1238
|
+
# @type GroupId: String
|
1239
|
+
# @param GroupName: 图库名称。
|
1240
|
+
# @type GroupName: String
|
1241
|
+
# @param Brief: 图库简介。
|
1242
|
+
# @type Brief: String
|
1243
|
+
# @param MaxCapacity: 图库容量。
|
1244
|
+
# @type MaxCapacity: Integer
|
1245
|
+
# @param MaxQps: 该库的访问限频 。
|
1246
|
+
# @type MaxQps: Integer
|
1247
|
+
# @param GroupType: 图库类型:
|
1248
|
+
# 1: 通用图库,以用户输入图提取特征。
|
1249
|
+
# 2: 灰度图库,输入图和搜索图均转为灰度图提取特征。
|
1250
|
+
# @type GroupType: Integer
|
1251
|
+
# @param PicCount: 图库图片数量。
|
1252
|
+
# @type PicCount: Integer
|
1253
|
+
# @param CreateTime: 图库创建时间。
|
1254
|
+
# @type CreateTime: String
|
1255
|
+
# @param UpdateTime: 图库更新时间。
|
1256
|
+
# @type UpdateTime: String
|
1257
|
+
|
1258
|
+
attr_accessor :GroupId, :GroupName, :Brief, :MaxCapacity, :MaxQps, :GroupType, :PicCount, :CreateTime, :UpdateTime
|
1259
|
+
|
1260
|
+
def initialize(groupid=nil, groupname=nil, brief=nil, maxcapacity=nil, maxqps=nil, grouptype=nil, piccount=nil, createtime=nil, updatetime=nil)
|
1261
|
+
@GroupId = groupid
|
1262
|
+
@GroupName = groupname
|
1263
|
+
@Brief = brief
|
1264
|
+
@MaxCapacity = maxcapacity
|
1265
|
+
@MaxQps = maxqps
|
1266
|
+
@GroupType = grouptype
|
1267
|
+
@PicCount = piccount
|
1268
|
+
@CreateTime = createtime
|
1269
|
+
@UpdateTime = updatetime
|
1270
|
+
end
|
1271
|
+
|
1272
|
+
def deserialize(params)
|
1273
|
+
@GroupId = params['GroupId']
|
1274
|
+
@GroupName = params['GroupName']
|
1275
|
+
@Brief = params['Brief']
|
1276
|
+
@MaxCapacity = params['MaxCapacity']
|
1277
|
+
@MaxQps = params['MaxQps']
|
1278
|
+
@GroupType = params['GroupType']
|
1279
|
+
@PicCount = params['PicCount']
|
1280
|
+
@CreateTime = params['CreateTime']
|
1281
|
+
@UpdateTime = params['UpdateTime']
|
1282
|
+
end
|
1283
|
+
end
|
1284
|
+
|
1285
|
+
# 图片信息
|
1286
|
+
class ImageInfo < TencentCloud::Common::AbstractModel
|
1287
|
+
# @param EntityId: 图片名称。
|
1288
|
+
# @type EntityId: String
|
1289
|
+
# @param CustomContent: 用户自定义的内容。
|
1290
|
+
# @type CustomContent: String
|
1291
|
+
# @param Tags: 图片自定义标签,JSON格式。
|
1292
|
+
# @type Tags: String
|
1293
|
+
# @param PicName: 图片名称。
|
1294
|
+
# @type PicName: String
|
1295
|
+
# @param Score: 相似度。
|
1296
|
+
# @type Score: Integer
|
1297
|
+
|
1298
|
+
attr_accessor :EntityId, :CustomContent, :Tags, :PicName, :Score
|
1299
|
+
|
1300
|
+
def initialize(entityid=nil, customcontent=nil, tags=nil, picname=nil, score=nil)
|
1301
|
+
@EntityId = entityid
|
1302
|
+
@CustomContent = customcontent
|
1303
|
+
@Tags = tags
|
1304
|
+
@PicName = picname
|
1305
|
+
@Score = score
|
1306
|
+
end
|
1307
|
+
|
1308
|
+
def deserialize(params)
|
1309
|
+
@EntityId = params['EntityId']
|
1310
|
+
@CustomContent = params['CustomContent']
|
1311
|
+
@Tags = params['Tags']
|
1312
|
+
@PicName = params['PicName']
|
1313
|
+
@Score = params['Score']
|
1314
|
+
end
|
1315
|
+
end
|
1316
|
+
|
1317
|
+
# 名人识别的标签
|
1318
|
+
class Labels < TencentCloud::Common::AbstractModel
|
1319
|
+
# @param FirstLabel: 公众人物身份标签的一级分类,例如体育明星、娱乐明星、政治人物等;
|
1320
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1321
|
+
# @type FirstLabel: String
|
1322
|
+
# @param SecondLabel: 公众人物身份标签的二级分类,例如歌手(对应一级标签为“娱乐明星”);
|
1323
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1324
|
+
# @type SecondLabel: String
|
1325
|
+
|
1326
|
+
attr_accessor :FirstLabel, :SecondLabel
|
1327
|
+
|
1328
|
+
def initialize(firstlabel=nil, secondlabel=nil)
|
1329
|
+
@FirstLabel = firstlabel
|
1330
|
+
@SecondLabel = secondlabel
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
def deserialize(params)
|
1334
|
+
@FirstLabel = params['FirstLabel']
|
1335
|
+
@SecondLabel = params['SecondLabel']
|
1336
|
+
end
|
1337
|
+
end
|
1338
|
+
|
1339
|
+
# 百科词条信息
|
1340
|
+
class LemmaInfo < TencentCloud::Common::AbstractModel
|
1341
|
+
# @param LemmaTitle: 词条
|
1342
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1343
|
+
# @type LemmaTitle: String
|
1344
|
+
# @param LemmaAbstract: 词条描述
|
1345
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1346
|
+
# @type LemmaAbstract: String
|
1347
|
+
# @param Tag: 标签
|
1348
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1349
|
+
# @type Tag: String
|
1350
|
+
|
1351
|
+
attr_accessor :LemmaTitle, :LemmaAbstract, :Tag
|
1352
|
+
|
1353
|
+
def initialize(lemmatitle=nil, lemmaabstract=nil, tag=nil)
|
1354
|
+
@LemmaTitle = lemmatitle
|
1355
|
+
@LemmaAbstract = lemmaabstract
|
1356
|
+
@Tag = tag
|
1357
|
+
end
|
1358
|
+
|
1359
|
+
def deserialize(params)
|
1360
|
+
@LemmaTitle = params['LemmaTitle']
|
1361
|
+
@LemmaAbstract = params['LemmaAbstract']
|
1362
|
+
@Tag = params['Tag']
|
1363
|
+
end
|
1364
|
+
end
|
1365
|
+
|
1366
|
+
# 检测到的主体在图片中的矩形框位置(四个顶点坐标)
|
1367
|
+
class Location < TencentCloud::Common::AbstractModel
|
1368
|
+
# @param XMin: 位置矩形框的左上角横坐标
|
1369
|
+
# @type XMin: Integer
|
1370
|
+
# @param YMin: 位置矩形框的左上角纵坐标
|
1371
|
+
# @type YMin: Integer
|
1372
|
+
# @param XMax: 位置矩形框的右下角横坐标
|
1373
|
+
# @type XMax: Integer
|
1374
|
+
# @param YMax: 位置矩形框的右下角纵坐标
|
1375
|
+
# @type YMax: Integer
|
1376
|
+
|
1377
|
+
attr_accessor :XMin, :YMin, :XMax, :YMax
|
1378
|
+
|
1379
|
+
def initialize(xmin=nil, ymin=nil, xmax=nil, ymax=nil)
|
1380
|
+
@XMin = xmin
|
1381
|
+
@YMin = ymin
|
1382
|
+
@XMax = xmax
|
1383
|
+
@YMax = ymax
|
1384
|
+
end
|
1385
|
+
|
1386
|
+
def deserialize(params)
|
1387
|
+
@XMin = params['XMin']
|
1388
|
+
@YMin = params['YMin']
|
1389
|
+
@XMax = params['XMax']
|
1390
|
+
@YMax = params['YMax']
|
1391
|
+
end
|
1392
|
+
end
|
1393
|
+
|
1394
|
+
# 检测到的单个商品结构体
|
1395
|
+
class Product < TencentCloud::Common::AbstractModel
|
1396
|
+
# @param Name: 图片中商品的三级分类识别结果,选取所有三级分类中的置信度最大者
|
1397
|
+
# @type Name: String
|
1398
|
+
# @param Parents: 三级商品分类对应的一级分类和二级分类,两级之间用“-”(中划线)隔开,例如商品名称是“硬盘”,那么Parents输出为“电脑、办公-电脑配件”
|
1399
|
+
# @type Parents: String
|
1400
|
+
# @param Confidence: 算法对于Name的置信度,0-100之间,值越高,表示对于Name越确定
|
1401
|
+
# @type Confidence: Integer
|
1402
|
+
# @param XMin: 商品坐标X轴的最小值
|
1403
|
+
# @type XMin: Integer
|
1404
|
+
# @param YMin: 商品坐标Y轴的最小值
|
1405
|
+
# @type YMin: Integer
|
1406
|
+
# @param XMax: 商品坐标X轴的最大值
|
1407
|
+
# @type XMax: Integer
|
1408
|
+
# @param YMax: 商品坐标Y轴的最大值
|
1409
|
+
# @type YMax: Integer
|
1410
|
+
|
1411
|
+
attr_accessor :Name, :Parents, :Confidence, :XMin, :YMin, :XMax, :YMax
|
1412
|
+
|
1413
|
+
def initialize(name=nil, parents=nil, confidence=nil, xmin=nil, ymin=nil, xmax=nil, ymax=nil)
|
1414
|
+
@Name = name
|
1415
|
+
@Parents = parents
|
1416
|
+
@Confidence = confidence
|
1417
|
+
@XMin = xmin
|
1418
|
+
@YMin = ymin
|
1419
|
+
@XMax = xmax
|
1420
|
+
@YMax = ymax
|
1421
|
+
end
|
1422
|
+
|
1423
|
+
def deserialize(params)
|
1424
|
+
@Name = params['Name']
|
1425
|
+
@Parents = params['Parents']
|
1426
|
+
@Confidence = params['Confidence']
|
1427
|
+
@XMin = params['XMin']
|
1428
|
+
@YMin = params['YMin']
|
1429
|
+
@XMax = params['XMax']
|
1430
|
+
@YMax = params['YMax']
|
1431
|
+
end
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
# 图像识别出的商品的详细信息。
|
1435
|
+
# 当图像中检测到多个物品时,会对显著性最高的物品进行识别。
|
1436
|
+
class ProductInfo < TencentCloud::Common::AbstractModel
|
1437
|
+
# @param FindSKU: 1表示找到同款商品,以下字段为同款商品信息;
|
1438
|
+
# 0表示未找到同款商品, 具体商品信息为空(参考价格、名称、品牌等),仅提供商品类目和参考图片(商品库中找到的最相似图片,供参考)。
|
1439
|
+
# 是否找到同款的判断依据为Score分值,分值越大则同款的可能性越大。
|
1440
|
+
# @type FindSKU: Integer
|
1441
|
+
# @param Location: 本商品在图片中的坐标,表示为矩形框的四个顶点坐标。
|
1442
|
+
# @type Location: :class:`Tencentcloud::Tiia.v20190529.models.Location`
|
1443
|
+
# @param Name: 商品名称
|
1444
|
+
# @type Name: String
|
1445
|
+
# @param Brand: 商品品牌
|
1446
|
+
# @type Brand: String
|
1447
|
+
# @param Price: 参考价格,综合多个信息源,仅供参考。
|
1448
|
+
# @type Price: String
|
1449
|
+
# @param ProductCategory: 识别结果的商品类目。
|
1450
|
+
# 包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
|
1451
|
+
# 当类别为“非商品”时,除Location、Score和本字段之外的商品信息为空。
|
1452
|
+
# @type ProductCategory: String
|
1453
|
+
# @param Score: 输入图片中的主体物品和输出结果的相似度。分值越大,输出结果与输入图片是同款的可能性越高。
|
1454
|
+
# @type Score: Float
|
1455
|
+
# @param Image: 搜索到的商品配图URL。
|
1456
|
+
# @type Image: String
|
1457
|
+
# @param LemmaInfoList: 百科词条列表
|
1458
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1459
|
+
# @type LemmaInfoList: Array
|
1460
|
+
|
1461
|
+
attr_accessor :FindSKU, :Location, :Name, :Brand, :Price, :ProductCategory, :Score, :Image, :LemmaInfoList
|
1462
|
+
|
1463
|
+
def initialize(findsku=nil, location=nil, name=nil, brand=nil, price=nil, productcategory=nil, score=nil, image=nil, lemmainfolist=nil)
|
1464
|
+
@FindSKU = findsku
|
1465
|
+
@Location = location
|
1466
|
+
@Name = name
|
1467
|
+
@Brand = brand
|
1468
|
+
@Price = price
|
1469
|
+
@ProductCategory = productcategory
|
1470
|
+
@Score = score
|
1471
|
+
@Image = image
|
1472
|
+
@LemmaInfoList = lemmainfolist
|
1473
|
+
end
|
1474
|
+
|
1475
|
+
def deserialize(params)
|
1476
|
+
@FindSKU = params['FindSKU']
|
1477
|
+
unless params['Location'].nil?
|
1478
|
+
@Location = Location.new
|
1479
|
+
@Location.deserialize(params['Location'])
|
1480
|
+
end
|
1481
|
+
@Name = params['Name']
|
1482
|
+
@Brand = params['Brand']
|
1483
|
+
@Price = params['Price']
|
1484
|
+
@ProductCategory = params['ProductCategory']
|
1485
|
+
@Score = params['Score']
|
1486
|
+
@Image = params['Image']
|
1487
|
+
unless params['LemmaInfoList'].nil?
|
1488
|
+
@LemmaInfoList = []
|
1489
|
+
params['LemmaInfoList'].each do |i|
|
1490
|
+
lemmainfo_tmp = LemmaInfo.new
|
1491
|
+
lemmainfo_tmp.deserialize(i)
|
1492
|
+
@LemmaInfoList << lemmainfo_tmp
|
1493
|
+
end
|
1494
|
+
end
|
1495
|
+
end
|
1496
|
+
end
|
1497
|
+
|
1498
|
+
# RecognizeCar请求参数结构体
|
1499
|
+
class RecognizeCarRequest < TencentCloud::Common::AbstractModel
|
1500
|
+
# @param ImageUrl: 图片URL地址。
|
1501
|
+
# 图片限制:
|
1502
|
+
# • 图片格式:PNG、JPG、JPEG。
|
1503
|
+
# • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
1504
|
+
# 建议:
|
1505
|
+
# • 图片像素:大于50*50像素,否则影响识别效果;
|
1506
|
+
# • 长宽比:长边:短边<5;
|
1507
|
+
# 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
1508
|
+
# @type ImageUrl: String
|
1509
|
+
# @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
1510
|
+
# **注意:图片需要base64编码,并且要去掉编码头部。**
|
1511
|
+
# 支持的图片格式:PNG、JPG、JPEG、BMP,暂不支持GIF格式。支持的图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
1512
|
+
# @type ImageBase64: String
|
1513
|
+
|
1514
|
+
attr_accessor :ImageUrl, :ImageBase64
|
1515
|
+
|
1516
|
+
def initialize(imageurl=nil, imagebase64=nil)
|
1517
|
+
@ImageUrl = imageurl
|
1518
|
+
@ImageBase64 = imagebase64
|
1519
|
+
end
|
1520
|
+
|
1521
|
+
def deserialize(params)
|
1522
|
+
@ImageUrl = params['ImageUrl']
|
1523
|
+
@ImageBase64 = params['ImageBase64']
|
1524
|
+
end
|
1525
|
+
end
|
1526
|
+
|
1527
|
+
# RecognizeCar返回参数结构体
|
1528
|
+
class RecognizeCarResponse < TencentCloud::Common::AbstractModel
|
1529
|
+
# @param CarCoords: 汽车的四个矩形顶点坐标,如果图片中存在多辆车,则输出最大车辆的坐标。
|
1530
|
+
# @type CarCoords: Array
|
1531
|
+
# @param CarTags: 车辆属性识别的结果数组,如果识别到多辆车,则会输出每辆车的top1结果。
|
1532
|
+
# @type CarTags: Array
|
1533
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1534
|
+
# @type RequestId: String
|
1535
|
+
|
1536
|
+
attr_accessor :CarCoords, :CarTags, :RequestId
|
1537
|
+
|
1538
|
+
def initialize(carcoords=nil, cartags=nil, requestid=nil)
|
1539
|
+
@CarCoords = carcoords
|
1540
|
+
@CarTags = cartags
|
1541
|
+
@RequestId = requestid
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
def deserialize(params)
|
1545
|
+
unless params['CarCoords'].nil?
|
1546
|
+
@CarCoords = []
|
1547
|
+
params['CarCoords'].each do |i|
|
1548
|
+
coord_tmp = Coord.new
|
1549
|
+
coord_tmp.deserialize(i)
|
1550
|
+
@CarCoords << coord_tmp
|
1551
|
+
end
|
1552
|
+
end
|
1553
|
+
unless params['CarTags'].nil?
|
1554
|
+
@CarTags = []
|
1555
|
+
params['CarTags'].each do |i|
|
1556
|
+
cartagitem_tmp = CarTagItem.new
|
1557
|
+
cartagitem_tmp.deserialize(i)
|
1558
|
+
@CarTags << cartagitem_tmp
|
1559
|
+
end
|
1560
|
+
end
|
1561
|
+
@RequestId = params['RequestId']
|
1562
|
+
end
|
1563
|
+
end
|
1564
|
+
|
1565
|
+
# 检测到的图片中的商品位置和品类预测。
|
1566
|
+
# 当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。
|
1567
|
+
# 最多可以输出__3组__检测结果。
|
1568
|
+
class RegionDetected < TencentCloud::Common::AbstractModel
|
1569
|
+
# @param Category: 商品的品类预测结果。
|
1570
|
+
# 包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
|
1571
|
+
# @type Category: String
|
1572
|
+
# @param CategoryScore: 商品品类预测的置信度
|
1573
|
+
# @type CategoryScore: Float
|
1574
|
+
# @param Location: 检测到的主体在图片中的坐标,表示为矩形框的四个顶点坐标
|
1575
|
+
# @type Location: :class:`Tencentcloud::Tiia.v20190529.models.Location`
|
1576
|
+
|
1577
|
+
attr_accessor :Category, :CategoryScore, :Location
|
1578
|
+
|
1579
|
+
def initialize(category=nil, categoryscore=nil, location=nil)
|
1580
|
+
@Category = category
|
1581
|
+
@CategoryScore = categoryscore
|
1582
|
+
@Location = location
|
1583
|
+
end
|
1584
|
+
|
1585
|
+
def deserialize(params)
|
1586
|
+
@Category = params['Category']
|
1587
|
+
@CategoryScore = params['CategoryScore']
|
1588
|
+
unless params['Location'].nil?
|
1589
|
+
@Location = Location.new
|
1590
|
+
@Location.deserialize(params['Location'])
|
1591
|
+
end
|
1592
|
+
end
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
# SearchImage请求参数结构体
|
1596
|
+
class SearchImageRequest < TencentCloud::Common::AbstractModel
|
1597
|
+
# @param GroupId: 图库名称。
|
1598
|
+
# @type GroupId: String
|
1599
|
+
# @param ImageUrl: 图片的 Url 。对应图片 base64 编码后大小不可超过2M。
|
1600
|
+
# 图片分辨率不超过1920*1080。
|
1601
|
+
# Url、Image必须提供一个,如果都提供,只使用 Url。
|
1602
|
+
# 图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
|
1603
|
+
# 非腾讯云存储的Url速度和稳定性可能受一定影响。
|
1604
|
+
# 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
1605
|
+
# @type ImageUrl: String
|
1606
|
+
# @param ImageBase64: 图片 base64 数据,base64 编码后大小不可超过2M。
|
1607
|
+
# 图片分辨率不超过1920*1080。
|
1608
|
+
# 支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。
|
1609
|
+
# @type ImageBase64: String
|
1610
|
+
# @param MatchThreshold: 出参Score中,只有超过MatchThreshold值的结果才会返回。默认为0
|
1611
|
+
# @type MatchThreshold: Integer
|
1612
|
+
# @param Offset: 起始序号,默认值为0。
|
1613
|
+
# @type Offset: Integer
|
1614
|
+
# @param Limit: 返回数量,默认值为10,最大值为100。
|
1615
|
+
# @type Limit: Integer
|
1616
|
+
# @param Filter: 针对入库时提交的Tags信息进行条件过滤。支持>、>=、 <、 <=、=,!=,多个条件之间支持AND和OR进行连接。
|
1617
|
+
# @type Filter: String
|
1618
|
+
|
1619
|
+
attr_accessor :GroupId, :ImageUrl, :ImageBase64, :MatchThreshold, :Offset, :Limit, :Filter
|
1620
|
+
|
1621
|
+
def initialize(groupid=nil, imageurl=nil, imagebase64=nil, matchthreshold=nil, offset=nil, limit=nil, filter=nil)
|
1622
|
+
@GroupId = groupid
|
1623
|
+
@ImageUrl = imageurl
|
1624
|
+
@ImageBase64 = imagebase64
|
1625
|
+
@MatchThreshold = matchthreshold
|
1626
|
+
@Offset = offset
|
1627
|
+
@Limit = limit
|
1628
|
+
@Filter = filter
|
1629
|
+
end
|
1630
|
+
|
1631
|
+
def deserialize(params)
|
1632
|
+
@GroupId = params['GroupId']
|
1633
|
+
@ImageUrl = params['ImageUrl']
|
1634
|
+
@ImageBase64 = params['ImageBase64']
|
1635
|
+
@MatchThreshold = params['MatchThreshold']
|
1636
|
+
@Offset = params['Offset']
|
1637
|
+
@Limit = params['Limit']
|
1638
|
+
@Filter = params['Filter']
|
1639
|
+
end
|
1640
|
+
end
|
1641
|
+
|
1642
|
+
# SearchImage返回参数结构体
|
1643
|
+
class SearchImageResponse < TencentCloud::Common::AbstractModel
|
1644
|
+
# @param Count: 返回结果数量。
|
1645
|
+
# @type Count: Integer
|
1646
|
+
# @param ImageInfos: 图片信息。
|
1647
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1648
|
+
# @type ImageInfos: Array
|
1649
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1650
|
+
# @type RequestId: String
|
1651
|
+
|
1652
|
+
attr_accessor :Count, :ImageInfos, :RequestId
|
1653
|
+
|
1654
|
+
def initialize(count=nil, imageinfos=nil, requestid=nil)
|
1655
|
+
@Count = count
|
1656
|
+
@ImageInfos = imageinfos
|
1657
|
+
@RequestId = requestid
|
1658
|
+
end
|
1659
|
+
|
1660
|
+
def deserialize(params)
|
1661
|
+
@Count = params['Count']
|
1662
|
+
unless params['ImageInfos'].nil?
|
1663
|
+
@ImageInfos = []
|
1664
|
+
params['ImageInfos'].each do |i|
|
1665
|
+
imageinfo_tmp = ImageInfo.new
|
1666
|
+
imageinfo_tmp.deserialize(i)
|
1667
|
+
@ImageInfos << imageinfo_tmp
|
1668
|
+
end
|
1669
|
+
end
|
1670
|
+
@RequestId = params['RequestId']
|
1671
|
+
end
|
1672
|
+
end
|
1673
|
+
|
1674
|
+
# 本服务在不同误识率水平下(将图片中的人物识别错误的比例)的推荐阈值,可以用于控制识别结果的精度。
|
1675
|
+
# {FalseRate1Percent, FalseRate5Permil, FalseRate1Permil}分别代表误识率在百分之一、千分之五、千分之一情况下的推荐阈值。
|
1676
|
+
# 因为阈值会存在变动,请勿将此处输出的固定值处理,而是每次取值与confidence对比,来判断本次的识别结果是否可信。
|
1677
|
+
# 例如,如果您业务中可以接受的误识率是1%,则可以将所有confidence>=FalseRate1Percent的结论认为是正确的。
|
1678
|
+
class Threshold < TencentCloud::Common::AbstractModel
|
1679
|
+
# @param FalseRate1Percent: 误识率在百分之一时的推荐阈值。
|
1680
|
+
# @type FalseRate1Percent: Integer
|
1681
|
+
# @param FalseRate5Permil: 误识率在千分之五时的推荐阈值。
|
1682
|
+
# @type FalseRate5Permil: Integer
|
1683
|
+
# @param FalseRate1Permil: 误识率在千分之一时的推荐阈值。
|
1684
|
+
# @type FalseRate1Permil: Integer
|
1685
|
+
|
1686
|
+
attr_accessor :FalseRate1Percent, :FalseRate5Permil, :FalseRate1Permil
|
1687
|
+
|
1688
|
+
def initialize(falserate1percent=nil, falserate5permil=nil, falserate1permil=nil)
|
1689
|
+
@FalseRate1Percent = falserate1percent
|
1690
|
+
@FalseRate5Permil = falserate5permil
|
1691
|
+
@FalseRate1Permil = falserate1permil
|
1692
|
+
end
|
1693
|
+
|
1694
|
+
def deserialize(params)
|
1695
|
+
@FalseRate1Percent = params['FalseRate1Percent']
|
1696
|
+
@FalseRate5Permil = params['FalseRate5Permil']
|
1697
|
+
@FalseRate1Permil = params['FalseRate1Permil']
|
1698
|
+
end
|
1699
|
+
end
|
1700
|
+
|
1701
|
+
end
|
1702
|
+
end
|
1703
|
+
end
|
1704
|
+
|