tencentcloud-sdk-tiia 3.0.446 → 3.0.447

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5af6e3f308b8e6801f6a54a07a39f11c1a27b065
4
- data.tar.gz: 4e93dc08baec61fea39a891ea09f91a077525619
3
+ metadata.gz: a24b3305ad0cbcd942160b3e72d58d65457966a0
4
+ data.tar.gz: 7390bb1a1f06e465d24fc35fdcc1544a741ff954
5
5
  SHA512:
6
- metadata.gz: 02e031acda2abe9858ff89951ef26f5418b2a20d2f3e60662f930faf2c008c160b0193d8101a15cda0d3c86a82cfefb3ba5ac9218827bb12d1985a31158617b4
7
- data.tar.gz: 2eea4745c9b731df6801e9c6d543709454c5ce827cee37bcf3481a1278ec4b7081c3f8621e29664a146f966fdf00f56a8796e8ce44d1fb30e19e88d6a43505b6
6
+ metadata.gz: 433e9510ff4d03f324439f56968abf5b4d530a1a372a051e775407068782bb9f4aa83fcc3613be00533c67391d16ce8f53fc9997901d26216388b11dc53ef0e7
7
+ data.tar.gz: fcc622cc47e549035935960d8d0e3585f76a5abc34c576143f7980686b81f9f4dab6fe60756637e5b17a94d46d946cd82dab722ea1b03dd72190238067e99080
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.446
1
+ 3.0.447
@@ -393,6 +393,32 @@ module TencentCloud
393
393
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
394
394
  end
395
395
 
396
+ # 传入一张图片,识别出图片中是否存在宠物
397
+ # >
398
+ # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
399
+
400
+ # @param request: Request instance for DetectPet.
401
+ # @type request: :class:`Tencentcloud::tiia::V20190529::DetectPetRequest`
402
+ # @rtype: :class:`Tencentcloud::tiia::V20190529::DetectPetResponse`
403
+ def DetectPet(request)
404
+ body = send_request('DetectPet', request.serialize)
405
+ response = JSON.parse(body)
406
+ if response['Response'].key?('Error') == false
407
+ model = DetectPetResponse.new
408
+ model.deserialize(response['Response'])
409
+ model
410
+ else
411
+ code = response['Response']['Error']['Code']
412
+ message = response['Response']['Error']['Message']
413
+ reqid = response['Response']['RequestId']
414
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
415
+ end
416
+ rescue TencentCloud::Common::TencentCloudSDKException => e
417
+ raise e
418
+ rescue StandardError => e
419
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
420
+ end
421
+
396
422
  # 本接口支持识别图片中包含的商品,能够输出商品的品类名称、类别,还可以输出商品在图片中的位置。支持一张图片多个商品的识别。
397
423
  # >?
398
424
  # - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
@@ -1217,6 +1217,57 @@ module TencentCloud
1217
1217
  end
1218
1218
  end
1219
1219
 
1220
+ # DetectPet请求参数结构体
1221
+ class DetectPetRequest < TencentCloud::Common::AbstractModel
1222
+ # @param ImageUrl: 图片的URL地址。图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。
1223
+ # 非腾讯云存储的Url速度和稳定性可能受一定影响。
1224
+ # 图片大小的限制为4M,图片像素的限制为4k。
1225
+ # @type ImageUrl: String
1226
+ # @param ImageBase64: 图片经过base64编码的内容。与ImageUrl同时存在时优先使用ImageUrl字段。
1227
+ # 图片大小的限制为4M,图片像素的限制为4k。
1228
+ # **注意:图片需要base64编码,并且要去掉编码头部。**
1229
+ # @type ImageBase64: String
1230
+
1231
+ attr_accessor :ImageUrl, :ImageBase64
1232
+
1233
+ def initialize(imageurl=nil, imagebase64=nil)
1234
+ @ImageUrl = imageurl
1235
+ @ImageBase64 = imagebase64
1236
+ end
1237
+
1238
+ def deserialize(params)
1239
+ @ImageUrl = params['ImageUrl']
1240
+ @ImageBase64 = params['ImageBase64']
1241
+ end
1242
+ end
1243
+
1244
+ # DetectPet返回参数结构体
1245
+ class DetectPetResponse < TencentCloud::Common::AbstractModel
1246
+ # @param Pets: 识别出图片中的宠物信息列表。
1247
+ # @type Pets: Array
1248
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1249
+ # @type RequestId: String
1250
+
1251
+ attr_accessor :Pets, :RequestId
1252
+
1253
+ def initialize(pets=nil, requestid=nil)
1254
+ @Pets = pets
1255
+ @RequestId = requestid
1256
+ end
1257
+
1258
+ def deserialize(params)
1259
+ unless params['Pets'].nil?
1260
+ @Pets = []
1261
+ params['Pets'].each do |i|
1262
+ pet_tmp = Pet.new
1263
+ pet_tmp.deserialize(i)
1264
+ @Pets << pet_tmp
1265
+ end
1266
+ end
1267
+ @RequestId = params['RequestId']
1268
+ end
1269
+ end
1270
+
1220
1271
  # DetectProductBeta请求参数结构体
1221
1272
  class DetectProductBetaRequest < TencentCloud::Common::AbstractModel
1222
1273
  # @param ImageUrl: 图片限制:内测版仅支持jpg、jpeg,图片大小不超过1M,分辨率在25万到100万之间。
@@ -1639,6 +1690,33 @@ module TencentCloud
1639
1690
  end
1640
1691
  end
1641
1692
 
1693
+ # 宠物具体信息
1694
+ class Pet < TencentCloud::Common::AbstractModel
1695
+ # @param Name: 识别出的宠物类型(猫或者狗,暂不支持识别猫狗品种)。
1696
+ # @type Name: String
1697
+ # @param Score: 识别服务给识别目标打出的置信度,范围在0-100之间。值越高,表示目标为相应结果的可能性越高。
1698
+ # @type Score: Integer
1699
+ # @param Location: 识别目标在图片中的坐标。
1700
+ # @type Location: :class:`Tencentcloud::Tiia.v20190529.models.Rect`
1701
+
1702
+ attr_accessor :Name, :Score, :Location
1703
+
1704
+ def initialize(name=nil, score=nil, location=nil)
1705
+ @Name = name
1706
+ @Score = score
1707
+ @Location = location
1708
+ end
1709
+
1710
+ def deserialize(params)
1711
+ @Name = params['Name']
1712
+ @Score = params['Score']
1713
+ unless params['Location'].nil?
1714
+ @Location = Rect.new
1715
+ @Location.deserialize(params['Location'])
1716
+ end
1717
+ end
1718
+ end
1719
+
1642
1720
  # 检测到的单个商品结构体
1643
1721
  class Product < TencentCloud::Common::AbstractModel
1644
1722
  # @param Name: 图片中商品的三级分类识别结果,选取所有三级分类中的置信度最大者
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tiia
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.446
4
+ version: 3.0.447
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-11-07 00:00:00.000000000 Z
11
+ date: 2022-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common