tencentcloud-sdk-tiia 3.0.1073 → 3.0.1085
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/v20190529/client.rb +0 -27
- data/lib/v20190529/models.rb +0 -130
- 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: 35e1f81045bd18c15e4154642687a1ce856e3fda
|
4
|
+
data.tar.gz: b371f52ce081452e9895dcd452e5323540f362bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 59c8d9d876da4b4404f3b0d5e27071faaa5f9d8a8454bd937abaca65da39a93ce6b2e0f730360855ef2276efb6b90a256e67fd259ec3f4bfe90c0326a1a8ffe7
|
7
|
+
data.tar.gz: d9f170d6927a125b4f88f0094add3208acffafa7ee4ab78b4954d658ff396821ccd28f811f441b7c0c7e75b314bcd9d0395b23cc72d0fddb37834552b7faa478
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1085
|
data/lib/v20190529/client.rb
CHANGED
@@ -384,33 +384,6 @@ module TencentCloud
|
|
384
384
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
385
385
|
end
|
386
386
|
|
387
|
-
# 图像标签测试接口
|
388
|
-
|
389
|
-
# >
|
390
|
-
# - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
391
|
-
|
392
|
-
# @param request: Request instance for DetectLabelBeta.
|
393
|
-
# @type request: :class:`Tencentcloud::tiia::V20190529::DetectLabelBetaRequest`
|
394
|
-
# @rtype: :class:`Tencentcloud::tiia::V20190529::DetectLabelBetaResponse`
|
395
|
-
def DetectLabelBeta(request)
|
396
|
-
body = send_request('DetectLabelBeta', request.serialize)
|
397
|
-
response = JSON.parse(body)
|
398
|
-
if response['Response'].key?('Error') == false
|
399
|
-
model = DetectLabelBetaResponse.new
|
400
|
-
model.deserialize(response['Response'])
|
401
|
-
model
|
402
|
-
else
|
403
|
-
code = response['Response']['Error']['Code']
|
404
|
-
message = response['Response']['Error']['Message']
|
405
|
-
reqid = response['Response']['RequestId']
|
406
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
407
|
-
end
|
408
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
409
|
-
raise e
|
410
|
-
rescue StandardError => e
|
411
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
412
|
-
end
|
413
|
-
|
414
387
|
# 通用图像标签可识别数千种常见物体或场景,覆盖日常物品、场景、动物、植物、食物、饮品、交通工具等多个大类,返回主体的标签名称和所属细分类目等。
|
415
388
|
|
416
389
|
# >
|
data/lib/v20190529/models.rb
CHANGED
@@ -959,136 +959,6 @@ module TencentCloud
|
|
959
959
|
end
|
960
960
|
end
|
961
961
|
|
962
|
-
# DetectLabelBeta请求参数结构体
|
963
|
-
class DetectLabelBetaRequest < TencentCloud::Common::AbstractModel
|
964
|
-
# @param ImageUrl: 图片URL地址。
|
965
|
-
# 图片限制:
|
966
|
-
# • 图片格式:PNG、JPG、JPEG。
|
967
|
-
# • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
|
968
|
-
# 建议:
|
969
|
-
# • 图片像素:大于50*50像素,否则影响识别效果;
|
970
|
-
# • 长宽比:长边:短边<5;
|
971
|
-
# 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
|
972
|
-
# @type ImageUrl: String
|
973
|
-
# @param ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
|
974
|
-
# **注意:图片需要base64编码,并且要去掉编码头部。**
|
975
|
-
# @type ImageBase64: String
|
976
|
-
# @param Scenes: 本次调用支持的识别场景,可选值如下:
|
977
|
-
# WEB,针对网络图片优化;
|
978
|
-
# CAMERA,针对手机摄像头拍摄图片优化;
|
979
|
-
# ALBUM,针对手机相册、网盘产品优化;
|
980
|
-
# NEWS,针对新闻、资讯、广电等行业优化;
|
981
|
-
# NONECAM,非实拍图;
|
982
|
-
# LOCATION,主体位置识别;
|
983
|
-
# 如果不传此参数,则默认为WEB。
|
984
|
-
|
985
|
-
# 支持多场景(Scenes)一起检测。例如,使用 Scenes=["WEB", "CAMERA"],即对一张图片使用两个模型同时检测,输出两套识别结果。
|
986
|
-
# @type Scenes: Array
|
987
|
-
|
988
|
-
attr_accessor :ImageUrl, :ImageBase64, :Scenes
|
989
|
-
|
990
|
-
def initialize(imageurl=nil, imagebase64=nil, scenes=nil)
|
991
|
-
@ImageUrl = imageurl
|
992
|
-
@ImageBase64 = imagebase64
|
993
|
-
@Scenes = scenes
|
994
|
-
end
|
995
|
-
|
996
|
-
def deserialize(params)
|
997
|
-
@ImageUrl = params['ImageUrl']
|
998
|
-
@ImageBase64 = params['ImageBase64']
|
999
|
-
@Scenes = params['Scenes']
|
1000
|
-
end
|
1001
|
-
end
|
1002
|
-
|
1003
|
-
# DetectLabelBeta返回参数结构体
|
1004
|
-
class DetectLabelBetaResponse < TencentCloud::Common::AbstractModel
|
1005
|
-
# @param Labels: Web网络版标签结果数组。如未选择WEB场景,则为空。
|
1006
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1007
|
-
# @type Labels: Array
|
1008
|
-
# @param CameraLabels: Camera摄像头版标签结果数组。如未选择CAMERA场景,则为空。
|
1009
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1010
|
-
# @type CameraLabels: Array
|
1011
|
-
# @param AlbumLabels: Album相册版标签结果数组。如未选择ALBUM场景,则为空。
|
1012
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1013
|
-
# @type AlbumLabels: Array
|
1014
|
-
# @param NewsLabels: News新闻版标签结果数组。如未选择NEWS场景,则为空。
|
1015
|
-
# 新闻版目前为测试阶段,暂不提供每个标签的一级、二级分类信息的输出。
|
1016
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1017
|
-
# @type NewsLabels: Array
|
1018
|
-
# @param NoneCamLabels: 非实拍标签
|
1019
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1020
|
-
# @type NoneCamLabels: Array
|
1021
|
-
# @param LocationLabels: 识别结果
|
1022
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1023
|
-
# @type LocationLabels: Array
|
1024
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1025
|
-
# @type RequestId: String
|
1026
|
-
|
1027
|
-
attr_accessor :Labels, :CameraLabels, :AlbumLabels, :NewsLabels, :NoneCamLabels, :LocationLabels, :RequestId
|
1028
|
-
|
1029
|
-
def initialize(labels=nil, cameralabels=nil, albumlabels=nil, newslabels=nil, nonecamlabels=nil, locationlabels=nil, requestid=nil)
|
1030
|
-
@Labels = labels
|
1031
|
-
@CameraLabels = cameralabels
|
1032
|
-
@AlbumLabels = albumlabels
|
1033
|
-
@NewsLabels = newslabels
|
1034
|
-
@NoneCamLabels = nonecamlabels
|
1035
|
-
@LocationLabels = locationlabels
|
1036
|
-
@RequestId = requestid
|
1037
|
-
end
|
1038
|
-
|
1039
|
-
def deserialize(params)
|
1040
|
-
unless params['Labels'].nil?
|
1041
|
-
@Labels = []
|
1042
|
-
params['Labels'].each do |i|
|
1043
|
-
detectlabelitem_tmp = DetectLabelItem.new
|
1044
|
-
detectlabelitem_tmp.deserialize(i)
|
1045
|
-
@Labels << detectlabelitem_tmp
|
1046
|
-
end
|
1047
|
-
end
|
1048
|
-
unless params['CameraLabels'].nil?
|
1049
|
-
@CameraLabels = []
|
1050
|
-
params['CameraLabels'].each do |i|
|
1051
|
-
detectlabelitem_tmp = DetectLabelItem.new
|
1052
|
-
detectlabelitem_tmp.deserialize(i)
|
1053
|
-
@CameraLabels << detectlabelitem_tmp
|
1054
|
-
end
|
1055
|
-
end
|
1056
|
-
unless params['AlbumLabels'].nil?
|
1057
|
-
@AlbumLabels = []
|
1058
|
-
params['AlbumLabels'].each do |i|
|
1059
|
-
detectlabelitem_tmp = DetectLabelItem.new
|
1060
|
-
detectlabelitem_tmp.deserialize(i)
|
1061
|
-
@AlbumLabels << detectlabelitem_tmp
|
1062
|
-
end
|
1063
|
-
end
|
1064
|
-
unless params['NewsLabels'].nil?
|
1065
|
-
@NewsLabels = []
|
1066
|
-
params['NewsLabels'].each do |i|
|
1067
|
-
detectlabelitem_tmp = DetectLabelItem.new
|
1068
|
-
detectlabelitem_tmp.deserialize(i)
|
1069
|
-
@NewsLabels << detectlabelitem_tmp
|
1070
|
-
end
|
1071
|
-
end
|
1072
|
-
unless params['NoneCamLabels'].nil?
|
1073
|
-
@NoneCamLabels = []
|
1074
|
-
params['NoneCamLabels'].each do |i|
|
1075
|
-
detectlabelitem_tmp = DetectLabelItem.new
|
1076
|
-
detectlabelitem_tmp.deserialize(i)
|
1077
|
-
@NoneCamLabels << detectlabelitem_tmp
|
1078
|
-
end
|
1079
|
-
end
|
1080
|
-
unless params['LocationLabels'].nil?
|
1081
|
-
@LocationLabels = []
|
1082
|
-
params['LocationLabels'].each do |i|
|
1083
|
-
product_tmp = Product.new
|
1084
|
-
product_tmp.deserialize(i)
|
1085
|
-
@LocationLabels << product_tmp
|
1086
|
-
end
|
1087
|
-
end
|
1088
|
-
@RequestId = params['RequestId']
|
1089
|
-
end
|
1090
|
-
end
|
1091
|
-
|
1092
962
|
# 图像标签检测结果。
|
1093
963
|
class DetectLabelItem < TencentCloud::Common::AbstractModel
|
1094
964
|
# @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.
|
4
|
+
version: 3.0.1085
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|