tencentcloud-sdk-python 3.0.1420__py2.py3-none-any.whl → 3.0.1421__py2.py3-none-any.whl

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.
Files changed (155) hide show
  1. tencentcloud/__init__.py +1 -1
  2. tencentcloud/autoscaling/v20180419/models.py +15 -0
  3. tencentcloud/cdb/v20170320/cdb_client.py +1 -1
  4. tencentcloud/cdb/v20170320/models.py +8 -8
  5. tencentcloud/cdn/v20180606/models.py +4 -4
  6. tencentcloud/cdwdoris/v20211228/errorcodes.py +6 -0
  7. tencentcloud/cdwdoris/v20211228/models.py +244 -4
  8. tencentcloud/cfg/v20210820/models.py +40 -0
  9. tencentcloud/gs/v20191118/models.py +71 -0
  10. tencentcloud/igtm/v20231024/igtm_client.py +69 -0
  11. tencentcloud/igtm/v20231024/models.py +1202 -198
  12. tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +3 -1
  13. tencentcloud/ocr/v20181119/models.py +4 -18
  14. tencentcloud/ocr/v20181119/ocr_client.py +3 -1
  15. tencentcloud/omics/v20221128/models.py +60 -0
  16. tencentcloud/ses/v20201002/models.py +171 -0
  17. tencentcloud/tcb/v20180608/models.py +64 -10
  18. tencentcloud/tdmq/v20200217/models.py +15 -0
  19. tencentcloud/teo/v20220901/models.py +664 -2
  20. tencentcloud/teo/v20220901/teo_client.py +115 -0
  21. tencentcloud/vrs/v20200824/vrs_client.py +1 -1
  22. {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/METADATA +1 -1
  23. {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/RECORD +26 -155
  24. tencentcloud/cis/__init__.py +0 -0
  25. tencentcloud/cis/v20180408/__init__.py +0 -0
  26. tencentcloud/cis/v20180408/cis_client.py +0 -187
  27. tencentcloud/cis/v20180408/errorcodes.py +0 -21
  28. tencentcloud/cis/v20180408/models.py +0 -1688
  29. tencentcloud/dataintegration/__init__.py +0 -0
  30. tencentcloud/dataintegration/v20220613/__init__.py +0 -0
  31. tencentcloud/dataintegration/v20220613/dataintegration_client.py +0 -49
  32. tencentcloud/dataintegration/v20220613/errorcodes.py +0 -15
  33. tencentcloud/dataintegration/v20220613/models.py +0 -168
  34. tencentcloud/dtf/__init__.py +0 -0
  35. tencentcloud/dtf/v20200506/__init__.py +0 -0
  36. tencentcloud/dtf/v20200506/dtf_client.py +0 -49
  37. tencentcloud/dtf/v20200506/errorcodes.py +0 -21
  38. tencentcloud/dtf/v20200506/models.py +0 -538
  39. tencentcloud/gpm/__init__.py +0 -0
  40. tencentcloud/gpm/v20200820/__init__.py +0 -0
  41. tencentcloud/gpm/v20200820/errorcodes.py +0 -168
  42. tencentcloud/gpm/v20200820/gpm_client.py +0 -476
  43. tencentcloud/gpm/v20200820/models.py +0 -4255
  44. tencentcloud/gse/__init__.py +0 -0
  45. tencentcloud/gse/v20191112/__init__.py +0 -0
  46. tencentcloud/gse/v20191112/errorcodes.py +0 -90
  47. tencentcloud/gse/v20191112/gse_client.py +0 -1993
  48. tencentcloud/gse/v20191112/models.py +0 -15093
  49. tencentcloud/iecp/__init__.py +0 -0
  50. tencentcloud/iecp/v20210914/__init__.py +0 -0
  51. tencentcloud/iecp/v20210914/errorcodes.py +0 -75
  52. tencentcloud/iecp/v20210914/iecp_client.py +0 -1912
  53. tencentcloud/iecp/v20210914/models.py +0 -17466
  54. tencentcloud/iir/__init__.py +0 -0
  55. tencentcloud/iir/v20200417/__init__.py +0 -0
  56. tencentcloud/iir/v20200417/errorcodes.py +0 -48
  57. tencentcloud/iir/v20200417/iir_client.py +0 -53
  58. tencentcloud/iir/v20200417/models.py +0 -451
  59. tencentcloud/iottid/__init__.py +0 -0
  60. tencentcloud/iottid/v20190411/__init__.py +0 -0
  61. tencentcloud/iottid/v20190411/errorcodes.py +0 -54
  62. tencentcloud/iottid/v20190411/iottid_client.py +0 -233
  63. tencentcloud/iottid/v20190411/models.py +0 -1053
  64. tencentcloud/mgobe/__init__.py +0 -0
  65. tencentcloud/mgobe/v20190929/__init__.py +0 -0
  66. tencentcloud/mgobe/v20190929/errorcodes.py +0 -945
  67. tencentcloud/mgobe/v20190929/mgobe_client.py +0 -49
  68. tencentcloud/mgobe/v20190929/models.py +0 -97
  69. tencentcloud/mgobe/v20201014/__init__.py +0 -0
  70. tencentcloud/mgobe/v20201014/errorcodes.py +0 -948
  71. tencentcloud/mgobe/v20201014/mgobe_client.py +0 -201
  72. tencentcloud/mgobe/v20201014/models.py +0 -1361
  73. tencentcloud/mvj/__init__.py +0 -0
  74. tencentcloud/mvj/v20190926/__init__.py +0 -0
  75. tencentcloud/mvj/v20190926/errorcodes.py +0 -30
  76. tencentcloud/mvj/v20190926/models.py +0 -263
  77. tencentcloud/mvj/v20190926/mvj_client.py +0 -51
  78. tencentcloud/pds/__init__.py +0 -0
  79. tencentcloud/pds/v20210701/__init__.py +0 -0
  80. tencentcloud/pds/v20210701/errorcodes.py +0 -48
  81. tencentcloud/pds/v20210701/models.py +0 -346
  82. tencentcloud/pds/v20210701/pds_client.py +0 -72
  83. tencentcloud/smpn/__init__.py +0 -0
  84. tencentcloud/smpn/v20190822/__init__.py +0 -0
  85. tencentcloud/smpn/v20190822/errorcodes.py +0 -27
  86. tencentcloud/smpn/v20190822/models.py +0 -389
  87. tencentcloud/smpn/v20190822/smpn_client.py +0 -76
  88. tencentcloud/solar/__init__.py +0 -0
  89. tencentcloud/solar/v20181011/__init__.py +0 -0
  90. tencentcloud/solar/v20181011/errorcodes.py +0 -42
  91. tencentcloud/solar/v20181011/models.py +0 -3848
  92. tencentcloud/solar/v20181011/solar_client.py +0 -417
  93. tencentcloud/tan/__init__.py +0 -0
  94. tencentcloud/tan/v20220420/__init__.py +0 -0
  95. tencentcloud/tan/v20220420/errorcodes.py +0 -81
  96. tencentcloud/tan/v20220420/models.py +0 -112
  97. tencentcloud/tan/v20220420/tan_client.py +0 -51
  98. tencentcloud/tav/__init__.py +0 -0
  99. tencentcloud/tav/v20190118/__init__.py +0 -0
  100. tencentcloud/tav/v20190118/errorcodes.py +0 -15
  101. tencentcloud/tav/v20190118/models.py +0 -550
  102. tencentcloud/tav/v20190118/tav_client.py +0 -118
  103. tencentcloud/tbm/__init__.py +0 -0
  104. tencentcloud/tbm/v20180129/__init__.py +0 -0
  105. tencentcloud/tbm/v20180129/errorcodes.py +0 -39
  106. tencentcloud/tbm/v20180129/models.py +0 -2354
  107. tencentcloud/tbm/v20180129/tbm_client.py +0 -233
  108. tencentcloud/tcex/__init__.py +0 -0
  109. tencentcloud/tcex/v20200727/__init__.py +0 -0
  110. tencentcloud/tcex/v20200727/errorcodes.py +0 -51
  111. tencentcloud/tcex/v20200727/models.py +0 -374
  112. tencentcloud/tcex/v20200727/tcex_client.py +0 -76
  113. tencentcloud/tci/__init__.py +0 -0
  114. tencentcloud/tci/v20190318/__init__.py +0 -0
  115. tencentcloud/tci/v20190318/errorcodes.py +0 -237
  116. tencentcloud/tci/v20190318/models.py +0 -11569
  117. tencentcloud/tci/v20190318/tci_client.py +0 -1017
  118. tencentcloud/tic/__init__.py +0 -0
  119. tencentcloud/tic/v20201117/__init__.py +0 -0
  120. tencentcloud/tic/v20201117/errorcodes.py +0 -48
  121. tencentcloud/tic/v20201117/models.py +0 -1952
  122. tencentcloud/tic/v20201117/tic_client.py +0 -342
  123. tencentcloud/ticm/__init__.py +0 -0
  124. tencentcloud/ticm/v20181127/__init__.py +0 -0
  125. tencentcloud/ticm/v20181127/errorcodes.py +0 -36
  126. tencentcloud/ticm/v20181127/models.py +0 -3385
  127. tencentcloud/ticm/v20181127/ticm_client.py +0 -95
  128. tencentcloud/tics/__init__.py +0 -0
  129. tencentcloud/tics/v20181115/__init__.py +0 -0
  130. tencentcloud/tics/v20181115/errorcodes.py +0 -30
  131. tencentcloud/tics/v20181115/models.py +0 -1324
  132. tencentcloud/tics/v20181115/tics_client.py +0 -118
  133. tencentcloud/tiems/__init__.py +0 -0
  134. tencentcloud/tiems/v20190416/__init__.py +0 -0
  135. tencentcloud/tiems/v20190416/errorcodes.py +0 -36
  136. tencentcloud/tiems/v20190416/models.py +0 -6644
  137. tencentcloud/tiems/v20190416/tiems_client.py +0 -651
  138. tencentcloud/trdp/__init__.py +0 -0
  139. tencentcloud/trdp/v20220726/__init__.py +0 -0
  140. tencentcloud/trdp/v20220726/errorcodes.py +0 -30
  141. tencentcloud/trdp/v20220726/models.py +0 -1609
  142. tencentcloud/trdp/v20220726/trdp_client.py +0 -49
  143. tencentcloud/ump/__init__.py +0 -0
  144. tencentcloud/ump/v20200918/__init__.py +0 -0
  145. tencentcloud/ump/v20200918/errorcodes.py +0 -57
  146. tencentcloud/ump/v20200918/models.py +0 -4089
  147. tencentcloud/ump/v20200918/ump_client.py +0 -454
  148. tencentcloud/youmall/__init__.py +0 -0
  149. tencentcloud/youmall/v20180228/__init__.py +0 -0
  150. tencentcloud/youmall/v20180228/errorcodes.py +0 -93
  151. tencentcloud/youmall/v20180228/models.py +0 -8181
  152. tencentcloud/youmall/v20180228/youmall_client.py +0 -740
  153. {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/LICENSE +0 -0
  154. {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/WHEEL +0 -0
  155. {tencentcloud_sdk_python-3.0.1420.dist-info → tencentcloud_sdk_python-3.0.1421.dist-info}/top_level.txt +0 -0
File without changes
File without changes
@@ -1,48 +0,0 @@
1
- # -*- coding: utf8 -*-
2
- # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
-
17
- # 文件下载失败。
18
- FAILEDOPERATION_DOWNLOADERROR = 'FailedOperation.DownLoadError'
19
-
20
- # 图片解码失败。
21
- FAILEDOPERATION_IMAGEDECODEFAILED = 'FailedOperation.ImageDecodeFailed'
22
-
23
- # 不支持的图片文件。
24
- FAILEDOPERATION_IMAGENOTSUPPORTED = 'FailedOperation.ImageNotSupported'
25
-
26
- # 图片不满足检测要求。
27
- FAILEDOPERATION_IMAGEUNQUALIFIED = 'FailedOperation.ImageUnQualified'
28
-
29
- # 后端服务超时。
30
- FAILEDOPERATION_REQUESTTIMEOUT = 'FailedOperation.RequestTimeout'
31
-
32
- # 算法服务异常,请重试。
33
- FAILEDOPERATION_SERVERERROR = 'FailedOperation.ServerError'
34
-
35
- # 内部错误。
36
- FAILEDOPERATION_UNKNOWERROR = 'FailedOperation.UnKnowError'
37
-
38
- # 服务未开通。
39
- FAILEDOPERATION_UNOPENERROR = 'FailedOperation.UnOpenError'
40
-
41
- # 参数值错误。
42
- INVALIDPARAMETERVALUE_INVALIDPARAMETERVALUELIMIT = 'InvalidParameterValue.InvalidParameterValueLimit'
43
-
44
- # 文件太大。
45
- LIMITEXCEEDED_TOOLARGEFILEERROR = 'LimitExceeded.TooLargeFileError'
46
-
47
- # 计费状态未知,请确认是否已在控制台开通服务。
48
- RESOURCEUNAVAILABLE_NOTEXIST = 'ResourceUnavailable.NotExist'
@@ -1,53 +0,0 @@
1
- # -*- coding: utf8 -*-
2
- # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- import json
17
-
18
- from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
19
- from tencentcloud.common.abstract_client import AbstractClient
20
- from tencentcloud.iir.v20200417 import models
21
-
22
-
23
- class IirClient(AbstractClient):
24
- _apiVersion = '2020-04-17'
25
- _endpoint = 'iir.tencentcloudapi.com'
26
- _service = 'iir'
27
-
28
-
29
- def RecognizeProduct(self, request):
30
- """商品识别,使用微信扫一扫识物同款技术,基于人工智能技术、海量训练图片、亿级商品库,可以实现全覆盖、细粒度、高准确率的商品识别和商品推荐功能。 本服务可以识别出图片中的主体位置、主体商品类型,覆盖亿级SKU,输出具体商品的价格、型号等详细信息。 客户无需自建商品库,即可快速实现商品识别、拍照搜商品等功能。
31
-
32
- 目前“商品识别”为公测服务,需要申请、开通后方可使用。请在[服务开通申请表](https://cloud.tencent.com/apply/p/y1q2mnf0vdl) 中填写详细信息和需求,如果通过审核,我们将会在2个工作日内与您联系,并开通服务。 公测期间,本服务免费提供最高2QPS,收费模式和标准会在正式版上线前通过站内信、短信通知客户。如果需要提升并发,请与我们联系洽谈。
33
-
34
- 注意:本文档为公测版本,仅适用于功能体验和测试,正式业务接入请等待正式版。正式版的输入、输出可能会与公测版存在少量差异。
35
-
36
- :param request: Request instance for RecognizeProduct.
37
- :type request: :class:`tencentcloud.iir.v20200417.models.RecognizeProductRequest`
38
- :rtype: :class:`tencentcloud.iir.v20200417.models.RecognizeProductResponse`
39
-
40
- """
41
- try:
42
- params = request._serialize()
43
- headers = request.headers
44
- body = self.call("RecognizeProduct", params, headers=headers)
45
- response = json.loads(body)
46
- model = models.RecognizeProductResponse()
47
- model._deserialize(response["Response"])
48
- return model
49
- except Exception as e:
50
- if isinstance(e, TencentCloudSDKException):
51
- raise
52
- else:
53
- raise TencentCloudSDKException(type(e).__name__, str(e))
@@ -1,451 +0,0 @@
1
- # -*- coding: utf8 -*-
2
- # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
- import warnings
17
-
18
- from tencentcloud.common.abstract_model import AbstractModel
19
-
20
-
21
- class Location(AbstractModel):
22
- """检测到的主体在图片中的矩形框位置(四个顶点坐标)
23
-
24
- """
25
-
26
- def __init__(self):
27
- r"""
28
- :param _XMin: 位置矩形框的左上角横坐标
29
- :type XMin: int
30
- :param _YMin: 位置矩形框的左上角纵坐标
31
- :type YMin: int
32
- :param _XMax: 位置矩形框的右下角横坐标
33
- :type XMax: int
34
- :param _YMax: 位置矩形框的右下角纵坐标
35
- :type YMax: int
36
- """
37
- self._XMin = None
38
- self._YMin = None
39
- self._XMax = None
40
- self._YMax = None
41
-
42
- @property
43
- def XMin(self):
44
- """位置矩形框的左上角横坐标
45
- :rtype: int
46
- """
47
- return self._XMin
48
-
49
- @XMin.setter
50
- def XMin(self, XMin):
51
- self._XMin = XMin
52
-
53
- @property
54
- def YMin(self):
55
- """位置矩形框的左上角纵坐标
56
- :rtype: int
57
- """
58
- return self._YMin
59
-
60
- @YMin.setter
61
- def YMin(self, YMin):
62
- self._YMin = YMin
63
-
64
- @property
65
- def XMax(self):
66
- """位置矩形框的右下角横坐标
67
- :rtype: int
68
- """
69
- return self._XMax
70
-
71
- @XMax.setter
72
- def XMax(self, XMax):
73
- self._XMax = XMax
74
-
75
- @property
76
- def YMax(self):
77
- """位置矩形框的右下角纵坐标
78
- :rtype: int
79
- """
80
- return self._YMax
81
-
82
- @YMax.setter
83
- def YMax(self, YMax):
84
- self._YMax = YMax
85
-
86
-
87
- def _deserialize(self, params):
88
- self._XMin = params.get("XMin")
89
- self._YMin = params.get("YMin")
90
- self._XMax = params.get("XMax")
91
- self._YMax = params.get("YMax")
92
- memeber_set = set(params.keys())
93
- for name, value in vars(self).items():
94
- property_name = name[1:]
95
- if property_name in memeber_set:
96
- memeber_set.remove(property_name)
97
- if len(memeber_set) > 0:
98
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
99
-
100
-
101
-
102
- class ProductInfo(AbstractModel):
103
- """图像识别出的商品的详细信息。
104
- 当图像中检测到多个物品时,会对显著性最高的物品进行识别。
105
-
106
- """
107
-
108
- def __init__(self):
109
- r"""
110
- :param _FindSKU: 1表示找到同款商品,以下字段为同款商品信息;
111
- 0表示未找到同款商品, 具体商品信息为空(参考价格、名称、品牌等),仅提供商品类目。
112
- 是否找到同款的判断依据为Score分值,分值越大则同款的可能性越大。
113
- :type FindSKU: int
114
- :param _Location: 本商品在图片中的坐标,表示为矩形框的四个顶点坐标。
115
- :type Location: :class:`tencentcloud.iir.v20200417.models.Location`
116
- :param _Name: 商品名称
117
- :type Name: str
118
- :param _Brand: 商品品牌
119
- :type Brand: str
120
- :param _Price: 参考价格,综合多个信息源,仅供参考。
121
- :type Price: str
122
- :param _ProductCategory: 识别结果的商品类目。
123
- 包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
124
- 当类别为“非商品”时,除Location、Score和本字段之外的商品信息为空。
125
- :type ProductCategory: str
126
- :param _Score: 输入图片中的主体物品和输出结果的相似度。分值越大,输出结果与输入图片是同款的可能性越高。
127
- :type Score: float
128
- :param _Image: 搜索到的商品配图URL
129
- :type Image: str
130
- """
131
- self._FindSKU = None
132
- self._Location = None
133
- self._Name = None
134
- self._Brand = None
135
- self._Price = None
136
- self._ProductCategory = None
137
- self._Score = None
138
- self._Image = None
139
-
140
- @property
141
- def FindSKU(self):
142
- """1表示找到同款商品,以下字段为同款商品信息;
143
- 0表示未找到同款商品, 具体商品信息为空(参考价格、名称、品牌等),仅提供商品类目。
144
- 是否找到同款的判断依据为Score分值,分值越大则同款的可能性越大。
145
- :rtype: int
146
- """
147
- return self._FindSKU
148
-
149
- @FindSKU.setter
150
- def FindSKU(self, FindSKU):
151
- self._FindSKU = FindSKU
152
-
153
- @property
154
- def Location(self):
155
- """本商品在图片中的坐标,表示为矩形框的四个顶点坐标。
156
- :rtype: :class:`tencentcloud.iir.v20200417.models.Location`
157
- """
158
- return self._Location
159
-
160
- @Location.setter
161
- def Location(self, Location):
162
- self._Location = Location
163
-
164
- @property
165
- def Name(self):
166
- """商品名称
167
- :rtype: str
168
- """
169
- return self._Name
170
-
171
- @Name.setter
172
- def Name(self, Name):
173
- self._Name = Name
174
-
175
- @property
176
- def Brand(self):
177
- """商品品牌
178
- :rtype: str
179
- """
180
- return self._Brand
181
-
182
- @Brand.setter
183
- def Brand(self, Brand):
184
- self._Brand = Brand
185
-
186
- @property
187
- def Price(self):
188
- """参考价格,综合多个信息源,仅供参考。
189
- :rtype: str
190
- """
191
- return self._Price
192
-
193
- @Price.setter
194
- def Price(self, Price):
195
- self._Price = Price
196
-
197
- @property
198
- def ProductCategory(self):
199
- """识别结果的商品类目。
200
- 包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
201
- 当类别为“非商品”时,除Location、Score和本字段之外的商品信息为空。
202
- :rtype: str
203
- """
204
- return self._ProductCategory
205
-
206
- @ProductCategory.setter
207
- def ProductCategory(self, ProductCategory):
208
- self._ProductCategory = ProductCategory
209
-
210
- @property
211
- def Score(self):
212
- """输入图片中的主体物品和输出结果的相似度。分值越大,输出结果与输入图片是同款的可能性越高。
213
- :rtype: float
214
- """
215
- return self._Score
216
-
217
- @Score.setter
218
- def Score(self, Score):
219
- self._Score = Score
220
-
221
- @property
222
- def Image(self):
223
- """搜索到的商品配图URL
224
- :rtype: str
225
- """
226
- return self._Image
227
-
228
- @Image.setter
229
- def Image(self, Image):
230
- self._Image = Image
231
-
232
-
233
- def _deserialize(self, params):
234
- self._FindSKU = params.get("FindSKU")
235
- if params.get("Location") is not None:
236
- self._Location = Location()
237
- self._Location._deserialize(params.get("Location"))
238
- self._Name = params.get("Name")
239
- self._Brand = params.get("Brand")
240
- self._Price = params.get("Price")
241
- self._ProductCategory = params.get("ProductCategory")
242
- self._Score = params.get("Score")
243
- self._Image = params.get("Image")
244
- memeber_set = set(params.keys())
245
- for name, value in vars(self).items():
246
- property_name = name[1:]
247
- if property_name in memeber_set:
248
- memeber_set.remove(property_name)
249
- if len(memeber_set) > 0:
250
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
251
-
252
-
253
-
254
- class RecognizeProductRequest(AbstractModel):
255
- """RecognizeProduct请求参数结构体
256
-
257
- """
258
-
259
- def __init__(self):
260
- r"""
261
- :param _ImageUrl: 图片限制:内测版仅支持jpg、jpeg,图片大小不超过1M,分辨率在25万到100万之间。
262
- 建议先对图片进行压缩,以便提升处理速度。
263
- :type ImageUrl: str
264
- :param _ImageBase64: 图片经过base64编码的内容。最大不超过1M,分辨率在25万到100万之间。
265
- 与ImageUrl同时存在时优先使用ImageUrl字段。
266
- **注意:图片需要base64编码,并且要去掉编码头部。**
267
- :type ImageBase64: str
268
- """
269
- self._ImageUrl = None
270
- self._ImageBase64 = None
271
-
272
- @property
273
- def ImageUrl(self):
274
- """图片限制:内测版仅支持jpg、jpeg,图片大小不超过1M,分辨率在25万到100万之间。
275
- 建议先对图片进行压缩,以便提升处理速度。
276
- :rtype: str
277
- """
278
- return self._ImageUrl
279
-
280
- @ImageUrl.setter
281
- def ImageUrl(self, ImageUrl):
282
- self._ImageUrl = ImageUrl
283
-
284
- @property
285
- def ImageBase64(self):
286
- """图片经过base64编码的内容。最大不超过1M,分辨率在25万到100万之间。
287
- 与ImageUrl同时存在时优先使用ImageUrl字段。
288
- **注意:图片需要base64编码,并且要去掉编码头部。**
289
- :rtype: str
290
- """
291
- return self._ImageBase64
292
-
293
- @ImageBase64.setter
294
- def ImageBase64(self, ImageBase64):
295
- self._ImageBase64 = ImageBase64
296
-
297
-
298
- def _deserialize(self, params):
299
- self._ImageUrl = params.get("ImageUrl")
300
- self._ImageBase64 = params.get("ImageBase64")
301
- memeber_set = set(params.keys())
302
- for name, value in vars(self).items():
303
- property_name = name[1:]
304
- if property_name in memeber_set:
305
- memeber_set.remove(property_name)
306
- if len(memeber_set) > 0:
307
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
308
-
309
-
310
-
311
- class RecognizeProductResponse(AbstractModel):
312
- """RecognizeProduct返回参数结构体
313
-
314
- """
315
-
316
- def __init__(self):
317
- r"""
318
- :param _RegionDetected: 检测到的图片中的商品位置和品类预测。
319
- 当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。
320
- 最多可以输出__3组__检测结果。
321
- :type RegionDetected: list of RegionDetected
322
- :param _ProductInfo: 图像识别出的商品的详细信息。
323
- 当图像中检测到多个物品时,会对显著性最高的进行识别。
324
- :type ProductInfo: :class:`tencentcloud.iir.v20200417.models.ProductInfo`
325
- :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
326
- :type RequestId: str
327
- """
328
- self._RegionDetected = None
329
- self._ProductInfo = None
330
- self._RequestId = None
331
-
332
- @property
333
- def RegionDetected(self):
334
- """检测到的图片中的商品位置和品类预测。
335
- 当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。
336
- 最多可以输出__3组__检测结果。
337
- :rtype: list of RegionDetected
338
- """
339
- return self._RegionDetected
340
-
341
- @RegionDetected.setter
342
- def RegionDetected(self, RegionDetected):
343
- self._RegionDetected = RegionDetected
344
-
345
- @property
346
- def ProductInfo(self):
347
- """图像识别出的商品的详细信息。
348
- 当图像中检测到多个物品时,会对显著性最高的进行识别。
349
- :rtype: :class:`tencentcloud.iir.v20200417.models.ProductInfo`
350
- """
351
- return self._ProductInfo
352
-
353
- @ProductInfo.setter
354
- def ProductInfo(self, ProductInfo):
355
- self._ProductInfo = ProductInfo
356
-
357
- @property
358
- def RequestId(self):
359
- """唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
360
- :rtype: str
361
- """
362
- return self._RequestId
363
-
364
- @RequestId.setter
365
- def RequestId(self, RequestId):
366
- self._RequestId = RequestId
367
-
368
-
369
- def _deserialize(self, params):
370
- if params.get("RegionDetected") is not None:
371
- self._RegionDetected = []
372
- for item in params.get("RegionDetected"):
373
- obj = RegionDetected()
374
- obj._deserialize(item)
375
- self._RegionDetected.append(obj)
376
- if params.get("ProductInfo") is not None:
377
- self._ProductInfo = ProductInfo()
378
- self._ProductInfo._deserialize(params.get("ProductInfo"))
379
- self._RequestId = params.get("RequestId")
380
-
381
-
382
- class RegionDetected(AbstractModel):
383
- """检测到的图片中的商品位置和品类预测。
384
- 当图片中存在多个商品时,输出多组坐标,按照__显著性__排序(综合考虑面积、是否在中心、检测算法置信度)。
385
- 最多可以输出__3组__检测结果。
386
-
387
- """
388
-
389
- def __init__(self):
390
- r"""
391
- :param _Category: 商品的品类预测结果。
392
- 包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
393
- :type Category: str
394
- :param _CategoryScore: 商品品类预测的置信度
395
- :type CategoryScore: float
396
- :param _Location: 检测到的主体在图片中的坐标,表示为矩形框的四个顶点坐标
397
- :type Location: :class:`tencentcloud.iir.v20200417.models.Location`
398
- """
399
- self._Category = None
400
- self._CategoryScore = None
401
- self._Location = None
402
-
403
- @property
404
- def Category(self):
405
- """商品的品类预测结果。
406
- 包含:鞋、图书音像、箱包、美妆个护、服饰、家电数码、玩具乐器、食品饮料、珠宝、家居家装、药品、酒水、绿植园艺、其他商品、非商品等。
407
- :rtype: str
408
- """
409
- return self._Category
410
-
411
- @Category.setter
412
- def Category(self, Category):
413
- self._Category = Category
414
-
415
- @property
416
- def CategoryScore(self):
417
- """商品品类预测的置信度
418
- :rtype: float
419
- """
420
- return self._CategoryScore
421
-
422
- @CategoryScore.setter
423
- def CategoryScore(self, CategoryScore):
424
- self._CategoryScore = CategoryScore
425
-
426
- @property
427
- def Location(self):
428
- """检测到的主体在图片中的坐标,表示为矩形框的四个顶点坐标
429
- :rtype: :class:`tencentcloud.iir.v20200417.models.Location`
430
- """
431
- return self._Location
432
-
433
- @Location.setter
434
- def Location(self, Location):
435
- self._Location = Location
436
-
437
-
438
- def _deserialize(self, params):
439
- self._Category = params.get("Category")
440
- self._CategoryScore = params.get("CategoryScore")
441
- if params.get("Location") is not None:
442
- self._Location = Location()
443
- self._Location._deserialize(params.get("Location"))
444
- memeber_set = set(params.keys())
445
- for name, value in vars(self).items():
446
- property_name = name[1:]
447
- if property_name in memeber_set:
448
- memeber_set.remove(property_name)
449
- if len(memeber_set) > 0:
450
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
451
-
File without changes
File without changes
@@ -1,54 +0,0 @@
1
- # -*- coding: utf8 -*-
2
- # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
- #
4
- # Licensed under the Apache License, Version 2.0 (the "License");
5
- # you may not use this file except in compliance with the License.
6
- # You may obtain a copy of the License at
7
- #
8
- # http://www.apache.org/licenses/LICENSE-2.0
9
- #
10
- # Unless required by applicable law or agreed to in writing, software
11
- # distributed under the License is distributed on an "AS IS" BASIS,
12
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- # See the License for the specific language governing permissions and
14
- # limitations under the License.
15
-
16
-
17
- # 内部错误。
18
- INTERNALERROR = 'InternalError'
19
-
20
- # 参数错误。
21
- INVALIDPARAMETER = 'InvalidParameter'
22
-
23
- # 参数取值错误。
24
- INVALIDPARAMETERVALUE = 'InvalidParameterValue'
25
-
26
- # AppId错误。
27
- INVALIDPARAMETERVALUE_APPID = 'InvalidParameterValue.AppId'
28
-
29
- # 数量错误。
30
- INVALIDPARAMETERVALUE_COUNT = 'InvalidParameterValue.Count'
31
-
32
- # 验证数据错误。
33
- INVALIDPARAMETERVALUE_DATA = 'InvalidParameterValue.Data'
34
-
35
- # 输入字符串为空。
36
- INVALIDPARAMETERVALUE_EMPTYSTRING = 'InvalidParameterValue.EmptyString'
37
-
38
- # 超过数量限制。
39
- INVALIDPARAMETERVALUE_LIMIT = 'InvalidParameterValue.Limit'
40
-
41
- # 订单编号错误。
42
- INVALIDPARAMETERVALUE_ORDERID = 'InvalidParameterValue.OrderId'
43
-
44
- # 超过数量限制。
45
- INVALIDPARAMETERVALUE_OVERLIMIT = 'InvalidParameterValue.OverLimit'
46
-
47
- # 无权限操作。
48
- INVALIDPARAMETERVALUE_PERMISSIONDENIED = 'InvalidParameterValue.PermissionDenied'
49
-
50
- # 数量错误。
51
- INVALIDPARAMETERVALUE_QUANTITY = 'InvalidParameterValue.Quantity'
52
-
53
- # TID编码错误。
54
- INVALIDPARAMETERVALUE_TID = 'InvalidParameterValue.Tid'