tencentcloud-sdk-python-intl-en 3.0.1075__py2.py3-none-any.whl → 3.0.1077__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.
Potentially problematic release.
This version of tencentcloud-sdk-python-intl-en might be problematic. Click here for more details.
- tencentcloud/__init__.py +1 -1
- tencentcloud/advisor/v20200721/models.py +120 -0
- tencentcloud/aiart/v20221229/models.py +95 -0
- tencentcloud/ams/v20201229/models.py +432 -0
- tencentcloud/antiddos/v20200309/models.py +2806 -0
- tencentcloud/apigateway/v20180808/models.py +3945 -0
- tencentcloud/autoscaling/v20180419/autoscaling_client.py +16 -10
- tencentcloud/autoscaling/v20180419/errorcodes.py +3 -0
- tencentcloud/autoscaling/v20180419/models.py +2472 -7
- tencentcloud/batch/v20170312/models.py +1566 -0
- tencentcloud/billing/v20180709/models.py +2418 -0
- tencentcloud/cam/v20190116/models.py +1697 -0
- tencentcloud/captcha/v20190722/models.py +70 -0
- tencentcloud/car/v20220110/models.py +803 -0
- tencentcloud/cbs/v20170312/models.py +1245 -0
- tencentcloud/ccc/v20200210/models.py +1949 -1
- tencentcloud/cdb/v20170320/models.py +4821 -0
- tencentcloud/cdn/v20180606/models.py +4870 -8
- tencentcloud/cdwdoris/v20211228/models.py +3337 -0
- tencentcloud/cfg/v20210820/models.py +1194 -0
- tencentcloud/cfs/v20190719/models.py +1178 -0
- tencentcloud/cfw/v20190904/models.py +2378 -0
- tencentcloud/chdfs/v20201112/models.py +513 -0
- tencentcloud/ciam/v20210420/models.py +49 -0
- tencentcloud/ciam/v20220331/models.py +789 -0
- tencentcloud/ckafka/v20190819/models.py +2576 -0
- tencentcloud/clb/v20180317/models.py +3220 -1
- tencentcloud/cloudaudit/v20190319/models.py +519 -0
- tencentcloud/cls/v20201016/models.py +3652 -1
- tencentcloud/cmq/v20190304/models.py +571 -0
- tencentcloud/controlcenter/v20230110/models.py +15 -0
- tencentcloud/csip/v20221121/models.py +2881 -2
- tencentcloud/cvm/v20170312/models.py +2827 -0
- tencentcloud/cwp/v20180228/models.py +16412 -0
- tencentcloud/cynosdb/v20190107/models.py +4263 -0
- tencentcloud/dataintegration/v20220613/models.py +18 -0
- tencentcloud/dayu/v20180709/models.py +3541 -12
- tencentcloud/dbbrain/v20191016/models.py +1056 -0
- tencentcloud/dbbrain/v20210527/models.py +1763 -0
- tencentcloud/dc/v20180410/models.py +767 -0
- tencentcloud/dcdb/v20180411/models.py +2335 -0
- tencentcloud/dlc/v20210125/models.py +3985 -5
- tencentcloud/dms/v20200819/models.py +51 -0
- tencentcloud/dnspod/v20210323/models.py +1286 -0
- tencentcloud/domain/v20180808/models.py +855 -0
- tencentcloud/dts/v20180330/models.py +791 -0
- tencentcloud/dts/v20211206/models.py +2317 -1
- tencentcloud/eb/v20210416/models.py +858 -0
- tencentcloud/ecdn/v20191012/models.py +811 -0
- tencentcloud/ecm/v20190719/models.py +3972 -1
- tencentcloud/eiam/v20210420/models.py +1265 -0
- tencentcloud/emr/v20190103/models.py +2926 -7
- tencentcloud/es/v20180416/models.py +1523 -0
- tencentcloud/facefusion/v20220927/models.py +211 -0
- tencentcloud/faceid/v20180301/models.py +2071 -0
- tencentcloud/gaap/v20180529/models.py +3103 -8
- tencentcloud/gme/v20180711/models.py +388 -0
- tencentcloud/gpm/v20200820/models.py +674 -0
- tencentcloud/gse/v20191112/models.py +972 -0
- tencentcloud/iai/v20200303/models.py +1430 -0
- tencentcloud/ims/v20201229/models.py +329 -0
- tencentcloud/intlpartnersmgt/v20220928/models.py +988 -0
- tencentcloud/iotcloud/v20210408/models.py +585 -0
- tencentcloud/ip/v20210409/models.py +178 -0
- tencentcloud/kms/v20190118/models.py +869 -0
- tencentcloud/lcic/v20220817/models.py +1658 -0
- tencentcloud/lighthouse/v20200324/models.py +2088 -0
- tencentcloud/live/v20180801/models.py +4287 -0
- tencentcloud/mariadb/v20170312/models.py +1905 -0
- tencentcloud/mdc/v20200828/models.py +1104 -0
- tencentcloud/mdl/v20200326/models.py +1911 -1
- tencentcloud/mdp/v20200527/models.py +452 -0
- tencentcloud/mongodb/v20190725/models.py +1234 -0
- tencentcloud/monitor/v20180724/models.py +5798 -2
- tencentcloud/mps/v20190612/models.py +8135 -0
- tencentcloud/msp/v20180319/models.py +183 -0
- tencentcloud/ocr/v20181119/models.py +3160 -1
- tencentcloud/omics/v20221128/models.py +1086 -0
- tencentcloud/organization/v20181225/models.py +285 -0
- tencentcloud/organization/v20210331/models.py +2267 -0
- tencentcloud/postgres/v20170312/models.py +3248 -0
- tencentcloud/privatedns/v20201028/errorcodes.py +34 -1
- tencentcloud/privatedns/v20201028/models.py +1700 -0
- tencentcloud/privatedns/v20201028/privatedns_client.py +115 -0
- tencentcloud/redis/v20180412/models.py +3298 -3
- tencentcloud/rum/v20210622/models.py +2114 -0
- tencentcloud/scf/v20180416/models.py +1561 -0
- tencentcloud/ses/v20201002/models.py +649 -0
- tencentcloud/sms/v20190711/models.py +575 -0
- tencentcloud/sms/v20210111/models.py +593 -0
- tencentcloud/sqlserver/v20180328/models.py +2780 -0
- tencentcloud/ssl/v20191205/models.py +2267 -0
- tencentcloud/ssm/v20190923/models.py +675 -11
- tencentcloud/sts/v20180813/models.py +161 -0
- tencentcloud/tag/v20180813/models.py +784 -0
- tencentcloud/tat/v20201028/models.py +806 -0
- tencentcloud/tcaplusdb/v20190823/models.py +1860 -0
- tencentcloud/tchd/v20230306/models.py +41 -0
- tencentcloud/tcmpp/v20240801/models.py +3761 -1
- tencentcloud/tcr/v20190924/models.py +1851 -0
- tencentcloud/tcss/v20201101/models.py +12523 -0
- tencentcloud/tdid/v20210519/models.py +1258 -0
- tencentcloud/tdmq/v20200217/models.py +3495 -0
- tencentcloud/tem/v20201221/models.py +803 -0
- tencentcloud/tem/v20210701/models.py +2551 -1
- tencentcloud/teo/v20220106/models.py +4731 -0
- tencentcloud/teo/v20220901/models.py +6066 -0
- tencentcloud/tiw/v20190919/models.py +1678 -1
- tencentcloud/tke/v20180525/models.py +3662 -0
- tencentcloud/tms/v20201229/models.py +176 -0
- tencentcloud/tmt/v20180321/models.py +65 -0
- tencentcloud/trtc/v20190722/models.py +1698 -8
- tencentcloud/tts/v20190823/models.py +72 -0
- tencentcloud/vm/v20201229/models.py +568 -0
- tencentcloud/vm/v20210922/models.py +636 -0
- tencentcloud/vod/v20180717/models.py +13490 -1
- tencentcloud/vpc/v20170312/errorcodes.py +3 -0
- tencentcloud/vpc/v20170312/models.py +6622 -1
- tencentcloud/vpc/v20170312/vpc_client.py +23 -0
- tencentcloud/waf/v20180125/models.py +4814 -0
- tencentcloud/wedata/v20210820/models.py +12594 -0
- tencentcloud/yunjing/v20180228/models.py +1867 -0
- {tencentcloud_sdk_python_intl_en-3.0.1075.dist-info → tencentcloud_sdk_python_intl_en-3.0.1077.dist-info}/METADATA +1 -1
- {tencentcloud_sdk_python_intl_en-3.0.1075.dist-info → tencentcloud_sdk_python_intl_en-3.0.1077.dist-info}/RECORD +126 -126
- {tencentcloud_sdk_python_intl_en-3.0.1075.dist-info → tencentcloud_sdk_python_intl_en-3.0.1077.dist-info}/WHEEL +0 -0
- {tencentcloud_sdk_python_intl_en-3.0.1075.dist-info → tencentcloud_sdk_python_intl_en-3.0.1077.dist-info}/top_level.txt +0 -0
|
@@ -54,6 +54,9 @@ Note: as iOS 14 has been updated by Apple to allow users to manually enable or d
|
|
|
54
54
|
|
|
55
55
|
@property
|
|
56
56
|
def Ip(self):
|
|
57
|
+
"""This field indicates the IP address of the business user's device and supports recording both **IPv4 and IPv6** addresses. It needs to be used together with the `IpType` parameter.
|
|
58
|
+
:rtype: str
|
|
59
|
+
"""
|
|
57
60
|
return self._Ip
|
|
58
61
|
|
|
59
62
|
@Ip.setter
|
|
@@ -62,6 +65,9 @@ Note: as iOS 14 has been updated by Apple to allow users to manually enable or d
|
|
|
62
65
|
|
|
63
66
|
@property
|
|
64
67
|
def Mac(self):
|
|
68
|
+
"""This field indicates the MAC address of the business user, which makes it easier to identify and manage devices. Its format and value are the same as those of a standard MAC address.
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
65
71
|
return self._Mac
|
|
66
72
|
|
|
67
73
|
@Mac.setter
|
|
@@ -70,6 +76,9 @@ Note: as iOS 14 has been updated by Apple to allow users to manually enable or d
|
|
|
70
76
|
|
|
71
77
|
@property
|
|
72
78
|
def TokenId(self):
|
|
79
|
+
"""*In beta test. Stay tuned.*
|
|
80
|
+
:rtype: str
|
|
81
|
+
"""
|
|
73
82
|
return self._TokenId
|
|
74
83
|
|
|
75
84
|
@TokenId.setter
|
|
@@ -78,6 +87,9 @@ Note: as iOS 14 has been updated by Apple to allow users to manually enable or d
|
|
|
78
87
|
|
|
79
88
|
@property
|
|
80
89
|
def DeviceId(self):
|
|
90
|
+
"""*In beta test. Stay tuned.*
|
|
91
|
+
:rtype: str
|
|
92
|
+
"""
|
|
81
93
|
return self._DeviceId
|
|
82
94
|
|
|
83
95
|
@DeviceId.setter
|
|
@@ -86,6 +98,9 @@ Note: as iOS 14 has been updated by Apple to allow users to manually enable or d
|
|
|
86
98
|
|
|
87
99
|
@property
|
|
88
100
|
def IMEI(self):
|
|
101
|
+
"""This field indicates the international mobile equipment identity **(IMEI)** number of the business user's device, which can be used to identify each mobile communication device such as mobile phone for easier device identification and management.<br>Note: the format is **15–17 digits**.
|
|
102
|
+
:rtype: str
|
|
103
|
+
"""
|
|
89
104
|
return self._IMEI
|
|
90
105
|
|
|
91
106
|
@IMEI.setter
|
|
@@ -94,6 +109,10 @@ Note: as iOS 14 has been updated by Apple to allow users to manually enable or d
|
|
|
94
109
|
|
|
95
110
|
@property
|
|
96
111
|
def IDFA(self):
|
|
112
|
+
"""**For iOS devices**: this field indicates the identifier for advertisers **(IDFA)** of the business user, which is provided by Apple to identify the user and contains a hexadecimal string of 32 digits and letters.<br>
|
|
113
|
+
Note: as iOS 14 has been updated by Apple to allow users to manually enable or disable IDFA since 2021, the validity of this string may be reduced.
|
|
114
|
+
:rtype: str
|
|
115
|
+
"""
|
|
97
116
|
return self._IDFA
|
|
98
117
|
|
|
99
118
|
@IDFA.setter
|
|
@@ -102,6 +121,9 @@ Note: as iOS 14 has been updated by Apple to allow users to manually enable or d
|
|
|
102
121
|
|
|
103
122
|
@property
|
|
104
123
|
def IDFV(self):
|
|
124
|
+
"""**For iOS devices**: this field indicates the identifier for vendors **(IDFV)** of the business user, which is provided by Apple to identify the app vendor and contains a hexadecimal string of 32 digits and letters. It can be used to uniquely identify a device.
|
|
125
|
+
:rtype: str
|
|
126
|
+
"""
|
|
105
127
|
return self._IDFV
|
|
106
128
|
|
|
107
129
|
@IDFV.setter
|
|
@@ -110,6 +132,9 @@ Note: as iOS 14 has been updated by Apple to allow users to manually enable or d
|
|
|
110
132
|
|
|
111
133
|
@property
|
|
112
134
|
def IpType(self):
|
|
135
|
+
"""This field indicates the type of the recorded IP address. Valid values: **0** (IPv4 address), **1** (IPv6 address). It needs to be used together with the `IpType` parameter.
|
|
136
|
+
:rtype: int
|
|
137
|
+
"""
|
|
113
138
|
return self._IpType
|
|
114
139
|
|
|
115
140
|
@IpType.setter
|
|
@@ -171,6 +196,9 @@ class ImageModerationRequest(AbstractModel):
|
|
|
171
196
|
|
|
172
197
|
@property
|
|
173
198
|
def BizType(self):
|
|
199
|
+
"""This field indicates the specific number of the policy, which is used for API scheduling and can be configured in the CMS console. If the `Biztype` parameter is passed in, a moderation policy will be used based on the business scenario; otherwise, the default moderation policy will be used.<br>Note: `Biztype` can contain 3–32 digits, letters, and underscores; different `Biztype` values are associated with different business scenarios and moderation policies, so you need to verify the `Biztype` before calling this API.
|
|
200
|
+
:rtype: str
|
|
201
|
+
"""
|
|
174
202
|
return self._BizType
|
|
175
203
|
|
|
176
204
|
@BizType.setter
|
|
@@ -179,6 +207,9 @@ class ImageModerationRequest(AbstractModel):
|
|
|
179
207
|
|
|
180
208
|
@property
|
|
181
209
|
def DataId(self):
|
|
210
|
+
"""This field indicates the data ID assigned by you to the object to be detected for easier file identification and management.<br>It **can contain up to 64 letters, digits, and special symbols (_-@#)**.
|
|
211
|
+
:rtype: str
|
|
212
|
+
"""
|
|
182
213
|
return self._DataId
|
|
183
214
|
|
|
184
215
|
@DataId.setter
|
|
@@ -187,6 +218,9 @@ class ImageModerationRequest(AbstractModel):
|
|
|
187
218
|
|
|
188
219
|
@property
|
|
189
220
|
def FileContent(self):
|
|
221
|
+
"""This field indicates the Base64 encoding of the image to be detected. The image **size cannot exceed 5 MB**. **A resolution of 256x256 or higher is recommended**; otherwise, the recognition effect may be affected.<br>Note: **you must enter a value for either this field or `FileUrl`**.
|
|
222
|
+
:rtype: str
|
|
223
|
+
"""
|
|
190
224
|
return self._FileContent
|
|
191
225
|
|
|
192
226
|
@FileContent.setter
|
|
@@ -195,6 +229,9 @@ class ImageModerationRequest(AbstractModel):
|
|
|
195
229
|
|
|
196
230
|
@property
|
|
197
231
|
def FileUrl(self):
|
|
232
|
+
"""URL of the image to moderate. It supports PNG, JPG, JPEG, BMP, GIF AND WEBP files. The file **cannot exceed 5 MB** and the resolution should not below **256*246**. The default timeout period is 3 seconds. Note that **redirection URLs may be blocked by security policies**. In this case, an error message will return. For example, if an HTTP request gets the 302 code, the error `ResourceUnavailable.ImageDownloadError` is returned. <br>**Either `FileUrl` or `FileContent` must be specified.
|
|
233
|
+
:rtype: str
|
|
234
|
+
"""
|
|
198
235
|
return self._FileUrl
|
|
199
236
|
|
|
200
237
|
@FileUrl.setter
|
|
@@ -203,6 +240,9 @@ class ImageModerationRequest(AbstractModel):
|
|
|
203
240
|
|
|
204
241
|
@property
|
|
205
242
|
def Interval(self):
|
|
243
|
+
"""**For GIF/long image detection only**. This field indicates the GIF frame capturing frequency (the image interval for capturing a frame for detection). For long images, you should round the width:height ratio as the total number of images to be split. The default value is 0, where only the first frame of the GIF image will be detected, and the long image will not be split.<br>Note: the `Interval` and `MaxFrames` parameters need to be used in combination; for example, if `Interval` is `3` and `MaxFrames` is `400`, the GIF/long image will be detected once every two frames for up to 400 frames.
|
|
244
|
+
:rtype: int
|
|
245
|
+
"""
|
|
206
246
|
return self._Interval
|
|
207
247
|
|
|
208
248
|
@Interval.setter
|
|
@@ -211,6 +251,9 @@ class ImageModerationRequest(AbstractModel):
|
|
|
211
251
|
|
|
212
252
|
@property
|
|
213
253
|
def MaxFrames(self):
|
|
254
|
+
"""**For GIF/long image detection only**. This field indicates the maximum number of frames that can be captured. The default value is 1, where only the first frame of the input GIF image will be detected, and the long image will not be split (which may cause a processing timeout).<br>Note: the `Interval` and `MaxFrames` parameters need to be used in combination; for example, if `Interval` is `3` and `MaxFrames` is `400`, the GIF/long image will be detected once every two frames for up to 400 frames.
|
|
255
|
+
:rtype: int
|
|
256
|
+
"""
|
|
214
257
|
return self._MaxFrames
|
|
215
258
|
|
|
216
259
|
@MaxFrames.setter
|
|
@@ -219,6 +262,9 @@ class ImageModerationRequest(AbstractModel):
|
|
|
219
262
|
|
|
220
263
|
@property
|
|
221
264
|
def User(self):
|
|
265
|
+
"""This field indicates the information of the user that corresponds to the object to be detected. It can be passed in to identify the user involved in the violation.
|
|
266
|
+
:rtype: :class:`tencentcloud.ims.v20201229.models.User`
|
|
267
|
+
"""
|
|
222
268
|
return self._User
|
|
223
269
|
|
|
224
270
|
@User.setter
|
|
@@ -227,6 +273,9 @@ class ImageModerationRequest(AbstractModel):
|
|
|
227
273
|
|
|
228
274
|
@property
|
|
229
275
|
def Device(self):
|
|
276
|
+
"""This field indicates the information of the device that corresponds to the object to be detected. It can be passed in to identify the device involved in the violation.
|
|
277
|
+
:rtype: :class:`tencentcloud.ims.v20201229.models.Device`
|
|
278
|
+
"""
|
|
230
279
|
return self._Device
|
|
231
280
|
|
|
232
281
|
@Device.setter
|
|
@@ -316,6 +365,9 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
316
365
|
|
|
317
366
|
@property
|
|
318
367
|
def Suggestion(self):
|
|
368
|
+
"""This field is used to return the operation suggestion for the `Label` tag. When you get the determination result, the returned value indicates the operation suggested by the system. We recommend you handle different types of violations and suggestions according to your business needs. <br>Returned values: **Block**, **Review**, **Pass**.
|
|
369
|
+
:rtype: str
|
|
370
|
+
"""
|
|
319
371
|
return self._Suggestion
|
|
320
372
|
|
|
321
373
|
@Suggestion.setter
|
|
@@ -324,6 +376,9 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
324
376
|
|
|
325
377
|
@property
|
|
326
378
|
def Label(self):
|
|
379
|
+
"""This field is used to return the **maliciousness tag with the highest priority** in the detection result (LabelResults), which represents the moderation result suggested by the model. We recommend you handle different types of violations and suggestions according to your business needs. <br>Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.
|
|
380
|
+
:rtype: str
|
|
381
|
+
"""
|
|
327
382
|
return self._Label
|
|
328
383
|
|
|
329
384
|
@Label.setter
|
|
@@ -332,6 +387,9 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
332
387
|
|
|
333
388
|
@property
|
|
334
389
|
def SubLabel(self):
|
|
390
|
+
"""This field is used to return the subtag name under the maliciousness tag with the highest priority hit by the detection result, such as *Porn-SexBehavior*. If no subtag is hit, an empty string will be returned.
|
|
391
|
+
:rtype: str
|
|
392
|
+
"""
|
|
335
393
|
return self._SubLabel
|
|
336
394
|
|
|
337
395
|
@SubLabel.setter
|
|
@@ -340,6 +398,9 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
340
398
|
|
|
341
399
|
@property
|
|
342
400
|
def Score(self):
|
|
401
|
+
"""Confidence score of the under the current label. Value range: 0 (**the lowest confidence**) to 100 (**the highest confidence**). For example, *Porn 99* indicates that the image is highly likely to be pornographic, while *Porn 0* indicates that the image is not pornographic.
|
|
402
|
+
:rtype: int
|
|
403
|
+
"""
|
|
343
404
|
return self._Score
|
|
344
405
|
|
|
345
406
|
@Score.setter
|
|
@@ -348,6 +409,10 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
348
409
|
|
|
349
410
|
@property
|
|
350
411
|
def LabelResults(self):
|
|
412
|
+
"""This field is used to return the detailed recognition result for the maliciousness tag hit by the categorization model, such as porn, advertising, or any other offensive, unsafe, or inappropriate type of content.
|
|
413
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
414
|
+
:rtype: list of LabelResult
|
|
415
|
+
"""
|
|
351
416
|
return self._LabelResults
|
|
352
417
|
|
|
353
418
|
@LabelResults.setter
|
|
@@ -356,6 +421,10 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
356
421
|
|
|
357
422
|
@property
|
|
358
423
|
def ObjectResults(self):
|
|
424
|
+
"""This field is used to return the detailed detection result of the object detection model, including the tag name hit by the content such as object, advertising logo, or QR code, tag score, coordinate information, scenario recognition result, and operation suggestion. For more information on the returned value, see the description of the `ObjectResults` data structure.
|
|
425
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
426
|
+
:rtype: list of ObjectResult
|
|
427
|
+
"""
|
|
359
428
|
return self._ObjectResults
|
|
360
429
|
|
|
361
430
|
@ObjectResults.setter
|
|
@@ -364,6 +433,10 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
364
433
|
|
|
365
434
|
@property
|
|
366
435
|
def OcrResults(self):
|
|
436
|
+
"""This field is used to return the detailed text OCR result, including the text coordinate information, text recognition result, and operation suggestion. For more information on the returned value, see the description of the `OcrResults` data structure.
|
|
437
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
438
|
+
:rtype: list of OcrResult
|
|
439
|
+
"""
|
|
367
440
|
return self._OcrResults
|
|
368
441
|
|
|
369
442
|
@OcrResults.setter
|
|
@@ -372,6 +445,10 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
372
445
|
|
|
373
446
|
@property
|
|
374
447
|
def LibResults(self):
|
|
448
|
+
"""This field is used to return the result of recognition based on image risk libraries (blocklist and allowlist). For more information on the returned value, see the description of the `LibResults` data structure.<br>Note: currently, **you cannot customize image risk libraries**.
|
|
449
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
450
|
+
:rtype: list of LibResult
|
|
451
|
+
"""
|
|
375
452
|
return self._LibResults
|
|
376
453
|
|
|
377
454
|
@LibResults.setter
|
|
@@ -380,6 +457,9 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
380
457
|
|
|
381
458
|
@property
|
|
382
459
|
def DataId(self):
|
|
460
|
+
"""This field is used to return the `DataId` in the request parameters that correspond to the detected object.
|
|
461
|
+
:rtype: str
|
|
462
|
+
"""
|
|
383
463
|
return self._DataId
|
|
384
464
|
|
|
385
465
|
@DataId.setter
|
|
@@ -388,6 +468,9 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
388
468
|
|
|
389
469
|
@property
|
|
390
470
|
def BizType(self):
|
|
471
|
+
"""This field is used to return the `BizType` in the request parameters that correspond to the detected object.
|
|
472
|
+
:rtype: str
|
|
473
|
+
"""
|
|
391
474
|
return self._BizType
|
|
392
475
|
|
|
393
476
|
@BizType.setter
|
|
@@ -396,6 +479,10 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
396
479
|
|
|
397
480
|
@property
|
|
398
481
|
def Extra(self):
|
|
482
|
+
"""This field is used to return the additional information (Extra) configured based on your needs. If it is not configured, an empty value will be returned by default.<br>Note: the returned information varies by customer or `Biztype`. If you need to configure this field, submit a ticket or contact the aftersales service for assistance.
|
|
483
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
484
|
+
:rtype: str
|
|
485
|
+
"""
|
|
399
486
|
return self._Extra
|
|
400
487
|
|
|
401
488
|
@Extra.setter
|
|
@@ -404,6 +491,9 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
404
491
|
|
|
405
492
|
@property
|
|
406
493
|
def FileMD5(self):
|
|
494
|
+
"""This field is used to return the MD5 checksum of the detected object for easier verification of the file integrity.
|
|
495
|
+
:rtype: str
|
|
496
|
+
"""
|
|
407
497
|
return self._FileMD5
|
|
408
498
|
|
|
409
499
|
@FileMD5.setter
|
|
@@ -412,6 +502,10 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
412
502
|
|
|
413
503
|
@property
|
|
414
504
|
def RecognitionResults(self):
|
|
505
|
+
"""Image recognition result, including the hit tags, confidence and location.
|
|
506
|
+
Note: This field may return `null`, indicating that no valid values can be obtained.
|
|
507
|
+
:rtype: list of RecognitionResult
|
|
508
|
+
"""
|
|
415
509
|
return self._RecognitionResults
|
|
416
510
|
|
|
417
511
|
@RecognitionResults.setter
|
|
@@ -420,6 +514,9 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
420
514
|
|
|
421
515
|
@property
|
|
422
516
|
def RequestId(self):
|
|
517
|
+
"""The unique request ID, which is returned for each request. RequestId is required for locating a problem.
|
|
518
|
+
:rtype: str
|
|
519
|
+
"""
|
|
423
520
|
return self._RequestId
|
|
424
521
|
|
|
425
522
|
@RequestId.setter
|
|
@@ -492,6 +589,10 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
492
589
|
|
|
493
590
|
@property
|
|
494
591
|
def Id(self):
|
|
592
|
+
"""This field is used to return the ID of the recognized object for easier recognition and distinction.
|
|
593
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
594
|
+
:rtype: int
|
|
595
|
+
"""
|
|
495
596
|
return self._Id
|
|
496
597
|
|
|
497
598
|
@Id.setter
|
|
@@ -500,6 +601,10 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
500
601
|
|
|
501
602
|
@property
|
|
502
603
|
def Name(self):
|
|
604
|
+
"""This field is used to return the hit subtag name.
|
|
605
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
606
|
+
:rtype: str
|
|
607
|
+
"""
|
|
503
608
|
return self._Name
|
|
504
609
|
|
|
505
610
|
@Name.setter
|
|
@@ -508,6 +613,10 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
508
613
|
|
|
509
614
|
@property
|
|
510
615
|
def Score(self):
|
|
616
|
+
"""This field is used to return the hit score of the subtag. Value range: **0–100**; for example, *Porn-SexBehavior 99* indicates that the hit score of the *Porn-SexBehavior* tag for the recognized content is 99.
|
|
617
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
618
|
+
:rtype: int
|
|
619
|
+
"""
|
|
511
620
|
return self._Score
|
|
512
621
|
|
|
513
622
|
@Score.setter
|
|
@@ -559,6 +668,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
559
668
|
|
|
560
669
|
@property
|
|
561
670
|
def Scene(self):
|
|
671
|
+
"""This field is used to return the scenario result recognized by the model, such as advertising, pornographic, and harmful.
|
|
672
|
+
:rtype: str
|
|
673
|
+
"""
|
|
562
674
|
return self._Scene
|
|
563
675
|
|
|
564
676
|
@Scene.setter
|
|
@@ -567,6 +679,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
567
679
|
|
|
568
680
|
@property
|
|
569
681
|
def Suggestion(self):
|
|
682
|
+
"""This field is used to return the operation suggestion for the current maliciousness tag. When you get the determination result, the returned value indicates the operation suggested by the system. We recommend you handle different types of violations and suggestions according to your business needs. <br>Returned values: **Block**, **Review**, **Pass**.
|
|
683
|
+
:rtype: str
|
|
684
|
+
"""
|
|
570
685
|
return self._Suggestion
|
|
571
686
|
|
|
572
687
|
@Suggestion.setter
|
|
@@ -575,6 +690,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
575
690
|
|
|
576
691
|
@property
|
|
577
692
|
def Label(self):
|
|
693
|
+
"""This field is used to return the maliciousness tag in the detection result.<br>Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.
|
|
694
|
+
:rtype: str
|
|
695
|
+
"""
|
|
578
696
|
return self._Label
|
|
579
697
|
|
|
580
698
|
@Label.setter
|
|
@@ -583,6 +701,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
583
701
|
|
|
584
702
|
@property
|
|
585
703
|
def SubLabel(self):
|
|
704
|
+
"""This field is used to return the detection result for a subtag under the maliciousness tag, such as *Porn-SexBehavior*.
|
|
705
|
+
:rtype: str
|
|
706
|
+
"""
|
|
586
707
|
return self._SubLabel
|
|
587
708
|
|
|
588
709
|
@SubLabel.setter
|
|
@@ -591,6 +712,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
591
712
|
|
|
592
713
|
@property
|
|
593
714
|
def Score(self):
|
|
715
|
+
"""Confidence score of the under the current label. Value range: 0 (**the lowest confidence**) to 100 (**the highest confidence**). For example, *Porn 99* indicates that the image is highly likely to be pornographic, while *Porn 0* indicates that the image is not pornographic.
|
|
716
|
+
:rtype: int
|
|
717
|
+
"""
|
|
594
718
|
return self._Score
|
|
595
719
|
|
|
596
720
|
@Score.setter
|
|
@@ -599,6 +723,10 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
599
723
|
|
|
600
724
|
@property
|
|
601
725
|
def Details(self):
|
|
726
|
+
"""This field is used to return the details of the subtag hit by the categorization model, such as number, hit tag name, and score.
|
|
727
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
728
|
+
:rtype: list of LabelDetailItem
|
|
729
|
+
"""
|
|
602
730
|
return self._Details
|
|
603
731
|
|
|
604
732
|
@Details.setter
|
|
@@ -662,6 +790,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
662
790
|
|
|
663
791
|
@property
|
|
664
792
|
def Id(self):
|
|
793
|
+
"""This field is used to return the ID of the recognized object for easier recognition and distinction.
|
|
794
|
+
:rtype: int
|
|
795
|
+
"""
|
|
665
796
|
return self._Id
|
|
666
797
|
|
|
667
798
|
@Id.setter
|
|
@@ -670,6 +801,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
670
801
|
|
|
671
802
|
@property
|
|
672
803
|
def LibId(self):
|
|
804
|
+
"""This field is **valid only when `Label` is `Custom` (custom keyword)**. It is used to return the ID of the custom library for easier custom library management and configuration.
|
|
805
|
+
:rtype: str
|
|
806
|
+
"""
|
|
673
807
|
return self._LibId
|
|
674
808
|
|
|
675
809
|
@LibId.setter
|
|
@@ -678,6 +812,10 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
678
812
|
|
|
679
813
|
@property
|
|
680
814
|
def LibName(self):
|
|
815
|
+
"""This field is **valid only when `Label` is `Custom` (custom keyword)**. It is used to return the name of the custom library for easier custom library management and configuration.
|
|
816
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
817
|
+
:rtype: str
|
|
818
|
+
"""
|
|
681
819
|
return self._LibName
|
|
682
820
|
|
|
683
821
|
@LibName.setter
|
|
@@ -686,6 +824,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
686
824
|
|
|
687
825
|
@property
|
|
688
826
|
def ImageId(self):
|
|
827
|
+
"""This field is used to return the ID of the recognized image object for easier file management.
|
|
828
|
+
:rtype: str
|
|
829
|
+
"""
|
|
689
830
|
return self._ImageId
|
|
690
831
|
|
|
691
832
|
@ImageId.setter
|
|
@@ -694,6 +835,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
694
835
|
|
|
695
836
|
@property
|
|
696
837
|
def Label(self):
|
|
838
|
+
"""This field is used to return the maliciousness tag in the detection result.<br>Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.
|
|
839
|
+
:rtype: str
|
|
840
|
+
"""
|
|
697
841
|
return self._Label
|
|
698
842
|
|
|
699
843
|
@Label.setter
|
|
@@ -702,6 +846,10 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
702
846
|
|
|
703
847
|
@property
|
|
704
848
|
def Tag(self):
|
|
849
|
+
"""This field is used to return other custom tags to meet the needs in your customized scenarios. It can be skipped if you have no custom needs.
|
|
850
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
851
|
+
:rtype: str
|
|
852
|
+
"""
|
|
705
853
|
return self._Tag
|
|
706
854
|
|
|
707
855
|
@Tag.setter
|
|
@@ -710,6 +858,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
710
858
|
|
|
711
859
|
@property
|
|
712
860
|
def Score(self):
|
|
861
|
+
"""This field is used to return the hit score of the model. Value range: **0–100**; for example, *Porn 99* indicates that the hit score of the porn tag for the recognized content is 99.
|
|
862
|
+
:rtype: int
|
|
863
|
+
"""
|
|
713
864
|
return self._Score
|
|
714
865
|
|
|
715
866
|
@Score.setter
|
|
@@ -766,6 +917,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
766
917
|
|
|
767
918
|
@property
|
|
768
919
|
def Scene(self):
|
|
920
|
+
"""This field indicates the scenario recognition result of the model. Default value: Similar.
|
|
921
|
+
:rtype: str
|
|
922
|
+
"""
|
|
769
923
|
return self._Scene
|
|
770
924
|
|
|
771
925
|
@Scene.setter
|
|
@@ -774,6 +928,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
774
928
|
|
|
775
929
|
@property
|
|
776
930
|
def Suggestion(self):
|
|
931
|
+
"""This field is used to return the operation suggestion. When you get the determination result, the returned value indicates the operation suggested by the system. We recommend you handle different types of violations and suggestions according to your business needs. <br>Returned values: **Block**, **Review**, **Pass**.
|
|
932
|
+
:rtype: str
|
|
933
|
+
"""
|
|
777
934
|
return self._Suggestion
|
|
778
935
|
|
|
779
936
|
@Suggestion.setter
|
|
@@ -782,6 +939,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
782
939
|
|
|
783
940
|
@property
|
|
784
941
|
def Label(self):
|
|
942
|
+
"""This field is used to return the maliciousness tag in the detection result.<br>Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.
|
|
943
|
+
:rtype: str
|
|
944
|
+
"""
|
|
785
945
|
return self._Label
|
|
786
946
|
|
|
787
947
|
@Label.setter
|
|
@@ -790,6 +950,10 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
790
950
|
|
|
791
951
|
@property
|
|
792
952
|
def SubLabel(self):
|
|
953
|
+
"""This field is used to return the detection result for a subtag under the maliciousness tag, such as *Porn-SexBehavior*.
|
|
954
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
955
|
+
:rtype: str
|
|
956
|
+
"""
|
|
793
957
|
return self._SubLabel
|
|
794
958
|
|
|
795
959
|
@SubLabel.setter
|
|
@@ -798,6 +962,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
798
962
|
|
|
799
963
|
@property
|
|
800
964
|
def Score(self):
|
|
965
|
+
"""This field is used to return the recognition score of the image search model. Value range: **0–100**. It indicates the score for the similarity between the moderated image **and the samples in the library**. A higher score indicates that the content is more likely to hit a sample in the library of similar images.
|
|
966
|
+
:rtype: int
|
|
967
|
+
"""
|
|
801
968
|
return self._Score
|
|
802
969
|
|
|
803
970
|
@Score.setter
|
|
@@ -806,6 +973,10 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
806
973
|
|
|
807
974
|
@property
|
|
808
975
|
def Details(self):
|
|
976
|
+
"""This field is used to return the detailed result of the comparison with the blocklist/allowlist, such as number, library name, and maliciousness tag. For more information on the returned value, see the description of the [LibDetail](https://intl.cloud.tencent.com/document/product/1125/53274?from_cn_redirect=1#LibDetail) data structure.
|
|
977
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
978
|
+
:rtype: list of LibDetail
|
|
979
|
+
"""
|
|
809
980
|
return self._Details
|
|
810
981
|
|
|
811
982
|
@Details.setter
|
|
@@ -861,6 +1032,9 @@ class Location(AbstractModel):
|
|
|
861
1032
|
|
|
862
1033
|
@property
|
|
863
1034
|
def X(self):
|
|
1035
|
+
"""This parameter is used to return the pixel position of the **abscissa (X) of the top-left corner** of the detection frame. It can be combined with other parameters to uniquely determine the size and position of the detection frame.
|
|
1036
|
+
:rtype: float
|
|
1037
|
+
"""
|
|
864
1038
|
return self._X
|
|
865
1039
|
|
|
866
1040
|
@X.setter
|
|
@@ -869,6 +1043,9 @@ class Location(AbstractModel):
|
|
|
869
1043
|
|
|
870
1044
|
@property
|
|
871
1045
|
def Y(self):
|
|
1046
|
+
"""This parameter is used to return the pixel position of the **ordinate of the top-left corner** (Y) of the detection frame. It can be combined with other parameters to uniquely determine the size and position of the detection frame.
|
|
1047
|
+
:rtype: float
|
|
1048
|
+
"""
|
|
872
1049
|
return self._Y
|
|
873
1050
|
|
|
874
1051
|
@Y.setter
|
|
@@ -877,6 +1054,9 @@ class Location(AbstractModel):
|
|
|
877
1054
|
|
|
878
1055
|
@property
|
|
879
1056
|
def Width(self):
|
|
1057
|
+
"""This parameter is used to return the **width of the detection frame** (the length starting from the top-left corner and extending to the right on the X axis). It can be combined with other parameters to uniquely determine the size and position of the detection frame.
|
|
1058
|
+
:rtype: float
|
|
1059
|
+
"""
|
|
880
1060
|
return self._Width
|
|
881
1061
|
|
|
882
1062
|
@Width.setter
|
|
@@ -885,6 +1065,9 @@ class Location(AbstractModel):
|
|
|
885
1065
|
|
|
886
1066
|
@property
|
|
887
1067
|
def Height(self):
|
|
1068
|
+
"""This parameter is used to return the **height of the detection frame** (the length starting from the top-left corner and extending down the Y axis). It can be combined with other parameters to uniquely determine the size and position of the detection frame.
|
|
1069
|
+
:rtype: float
|
|
1070
|
+
"""
|
|
888
1071
|
return self._Height
|
|
889
1072
|
|
|
890
1073
|
@Height.setter
|
|
@@ -893,6 +1076,9 @@ class Location(AbstractModel):
|
|
|
893
1076
|
|
|
894
1077
|
@property
|
|
895
1078
|
def Rotate(self):
|
|
1079
|
+
"""This parameter is used to return the **rotation angle of the detection frame**. Valid values: **0–360** (**degrees**), and the direction is **counterclockwise rotation**. This parameter can be combined with the `X` and `Y` coordinate parameters to uniquely determine the specific position of the detection frame.
|
|
1080
|
+
:rtype: float
|
|
1081
|
+
"""
|
|
896
1082
|
return self._Rotate
|
|
897
1083
|
|
|
898
1084
|
@Rotate.setter
|
|
@@ -945,6 +1131,9 @@ class ObjectDetail(AbstractModel):
|
|
|
945
1131
|
|
|
946
1132
|
@property
|
|
947
1133
|
def Id(self):
|
|
1134
|
+
"""This parameter is used to return the ID of the recognized object for easier recognition and distinction.
|
|
1135
|
+
:rtype: int
|
|
1136
|
+
"""
|
|
948
1137
|
return self._Id
|
|
949
1138
|
|
|
950
1139
|
@Id.setter
|
|
@@ -953,6 +1142,9 @@ class ObjectDetail(AbstractModel):
|
|
|
953
1142
|
|
|
954
1143
|
@property
|
|
955
1144
|
def Name(self):
|
|
1145
|
+
"""This parameter is used to return the hit object tag.
|
|
1146
|
+
:rtype: str
|
|
1147
|
+
"""
|
|
956
1148
|
return self._Name
|
|
957
1149
|
|
|
958
1150
|
@Name.setter
|
|
@@ -961,6 +1153,9 @@ class ObjectDetail(AbstractModel):
|
|
|
961
1153
|
|
|
962
1154
|
@property
|
|
963
1155
|
def Value(self):
|
|
1156
|
+
"""This parameter is used to return the value or content of the object tag; for example, when the tag is *QR code (QrCode)*, this field will be the URL of the recognized QR code.
|
|
1157
|
+
:rtype: str
|
|
1158
|
+
"""
|
|
964
1159
|
return self._Value
|
|
965
1160
|
|
|
966
1161
|
@Value.setter
|
|
@@ -969,6 +1164,9 @@ class ObjectDetail(AbstractModel):
|
|
|
969
1164
|
|
|
970
1165
|
@property
|
|
971
1166
|
def Score(self):
|
|
1167
|
+
"""This parameter is used to return the hit score of the object tag. Valid values: **0–100**; for example, *QrCode 99* indicates that it is highly likely that the recognized content will hit the QR code tag.
|
|
1168
|
+
:rtype: int
|
|
1169
|
+
"""
|
|
972
1170
|
return self._Score
|
|
973
1171
|
|
|
974
1172
|
@Score.setter
|
|
@@ -977,6 +1175,9 @@ class ObjectDetail(AbstractModel):
|
|
|
977
1175
|
|
|
978
1176
|
@property
|
|
979
1177
|
def Location(self):
|
|
1178
|
+
"""This field is used to return the coordinate position (X and Y coordinates of the top-left corner, length, width, and rotation angle) of the object detection frame for quick location of the object information.
|
|
1179
|
+
:rtype: :class:`tencentcloud.ims.v20201229.models.Location`
|
|
1180
|
+
"""
|
|
980
1181
|
return self._Location
|
|
981
1182
|
|
|
982
1183
|
@Location.setter
|
|
@@ -985,6 +1186,9 @@ class ObjectDetail(AbstractModel):
|
|
|
985
1186
|
|
|
986
1187
|
@property
|
|
987
1188
|
def SubLabel(self):
|
|
1189
|
+
"""This parameter is used to return the hit object subtag.
|
|
1190
|
+
:rtype: str
|
|
1191
|
+
"""
|
|
988
1192
|
return self._SubLabel
|
|
989
1193
|
|
|
990
1194
|
@SubLabel.setter
|
|
@@ -1046,6 +1250,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1046
1250
|
|
|
1047
1251
|
@property
|
|
1048
1252
|
def Scene(self):
|
|
1253
|
+
"""This field is used to return the recognized object scenario result, such as QR code, logo, and image OCR.
|
|
1254
|
+
:rtype: str
|
|
1255
|
+
"""
|
|
1049
1256
|
return self._Scene
|
|
1050
1257
|
|
|
1051
1258
|
@Scene.setter
|
|
@@ -1054,6 +1261,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1054
1261
|
|
|
1055
1262
|
@property
|
|
1056
1263
|
def Suggestion(self):
|
|
1264
|
+
"""This field is used to return the operation suggestion for the current maliciousness tag. When you get the determination result, the returned value indicates the operation suggested by the system. We recommend you handle different types of violations and suggestions according to your business needs. <br>Returned values: **Block**, **Review**, **Pass**.
|
|
1265
|
+
:rtype: str
|
|
1266
|
+
"""
|
|
1057
1267
|
return self._Suggestion
|
|
1058
1268
|
|
|
1059
1269
|
@Suggestion.setter
|
|
@@ -1062,6 +1272,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1062
1272
|
|
|
1063
1273
|
@property
|
|
1064
1274
|
def Label(self):
|
|
1275
|
+
"""This field is used to return the maliciousness tag in the detection result, which represents the moderation result suggested by the model. We recommend you handle different types of violations and suggestions according to your business needs. <br>Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.
|
|
1276
|
+
:rtype: str
|
|
1277
|
+
"""
|
|
1065
1278
|
return self._Label
|
|
1066
1279
|
|
|
1067
1280
|
@Label.setter
|
|
@@ -1070,6 +1283,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1070
1283
|
|
|
1071
1284
|
@property
|
|
1072
1285
|
def SubLabel(self):
|
|
1286
|
+
"""This field is used to return the detection result for a subtag under the current maliciousness tag, such as *Porn-SexBehavior*.
|
|
1287
|
+
:rtype: str
|
|
1288
|
+
"""
|
|
1073
1289
|
return self._SubLabel
|
|
1074
1290
|
|
|
1075
1291
|
@SubLabel.setter
|
|
@@ -1078,6 +1294,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1078
1294
|
|
|
1079
1295
|
@property
|
|
1080
1296
|
def Score(self):
|
|
1297
|
+
"""This field is used to return the hit score of a subtag under the current maliciousness tag. Value range: **0–100**; for example, *Porn-SexBehavior 99* indicates that the hit score of the *Porn-SexBehavior* tag for the recognized content is 99.
|
|
1298
|
+
:rtype: int
|
|
1299
|
+
"""
|
|
1081
1300
|
return self._Score
|
|
1082
1301
|
|
|
1083
1302
|
@Score.setter
|
|
@@ -1086,6 +1305,10 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1086
1305
|
|
|
1087
1306
|
@property
|
|
1088
1307
|
def Names(self):
|
|
1308
|
+
"""This field is used to return the name of the recognized object.
|
|
1309
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
1310
|
+
:rtype: list of str
|
|
1311
|
+
"""
|
|
1089
1312
|
return self._Names
|
|
1090
1313
|
|
|
1091
1314
|
@Names.setter
|
|
@@ -1094,6 +1317,11 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1094
1317
|
|
|
1095
1318
|
@property
|
|
1096
1319
|
def Details(self):
|
|
1320
|
+
"""This field is used to return the details of the recognized object, such as number, hit tag name, and position coordinates. For more information on the returned value, see the description of the [ObjectDetail](https://intl.cloud.tencent.com/document/api/1125/53274?from_cn_redirect=1#ObjectDetail) data structure.
|
|
1321
|
+
|
|
1322
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
1323
|
+
:rtype: list of ObjectDetail
|
|
1324
|
+
"""
|
|
1097
1325
|
return self._Details
|
|
1098
1326
|
|
|
1099
1327
|
@Details.setter
|
|
@@ -1157,6 +1385,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1157
1385
|
|
|
1158
1386
|
@property
|
|
1159
1387
|
def Scene(self):
|
|
1388
|
+
"""This field indicates the recognition scenario. Default value: OCR (image OCR).
|
|
1389
|
+
:rtype: str
|
|
1390
|
+
"""
|
|
1160
1391
|
return self._Scene
|
|
1161
1392
|
|
|
1162
1393
|
@Scene.setter
|
|
@@ -1165,6 +1396,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1165
1396
|
|
|
1166
1397
|
@property
|
|
1167
1398
|
def Suggestion(self):
|
|
1399
|
+
"""This field is used to return the operation suggestion for the maliciousness tag with the highest priority. When you get the determination result, the returned value indicates the operation suggested by the system. We recommend you handle different types of violations and suggestions according to your business needs. <br>Returned values: **Block**, **Review**, **Pass**.
|
|
1400
|
+
:rtype: str
|
|
1401
|
+
"""
|
|
1168
1402
|
return self._Suggestion
|
|
1169
1403
|
|
|
1170
1404
|
@Suggestion.setter
|
|
@@ -1173,6 +1407,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1173
1407
|
|
|
1174
1408
|
@property
|
|
1175
1409
|
def Label(self):
|
|
1410
|
+
"""This field is used to return the maliciousness tag with the highest priority in the OCR detection result, which represents the moderation result suggested by the model. We recommend you handle different types of violations and suggestions according to your business needs. <br>Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.
|
|
1411
|
+
:rtype: str
|
|
1412
|
+
"""
|
|
1176
1413
|
return self._Label
|
|
1177
1414
|
|
|
1178
1415
|
@Label.setter
|
|
@@ -1181,6 +1418,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1181
1418
|
|
|
1182
1419
|
@property
|
|
1183
1420
|
def SubLabel(self):
|
|
1421
|
+
"""This field is used to return the detection result for a subtag under the current tag (Label), such as *Porn-SexBehavior*.
|
|
1422
|
+
:rtype: str
|
|
1423
|
+
"""
|
|
1184
1424
|
return self._SubLabel
|
|
1185
1425
|
|
|
1186
1426
|
@SubLabel.setter
|
|
@@ -1189,6 +1429,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1189
1429
|
|
|
1190
1430
|
@property
|
|
1191
1431
|
def Score(self):
|
|
1432
|
+
"""This field is used to return the confidence under the current tag (Label). Value range: 0 (**the lowest confidence**)–100 (**the highest confidence**), where a higher value indicates that the text is more likely to fall into the category of the current returned tag; for example, *Porn 99* indicates that the text is highly likely to be pornographic, while *Porn 0* indicates that the text is not pornographic.
|
|
1433
|
+
:rtype: int
|
|
1434
|
+
"""
|
|
1192
1435
|
return self._Score
|
|
1193
1436
|
|
|
1194
1437
|
@Score.setter
|
|
@@ -1197,6 +1440,10 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1197
1440
|
|
|
1198
1441
|
@property
|
|
1199
1442
|
def Details(self):
|
|
1443
|
+
"""This field is used to return the details of the OCR recognition result, such as text content, tag, and recognition frame position.
|
|
1444
|
+
Note: this field may return null, indicating that no valid values can be obtained.
|
|
1445
|
+
:rtype: list of OcrTextDetail
|
|
1446
|
+
"""
|
|
1200
1447
|
return self._Details
|
|
1201
1448
|
|
|
1202
1449
|
@Details.setter
|
|
@@ -1205,6 +1452,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
|
|
|
1205
1452
|
|
|
1206
1453
|
@property
|
|
1207
1454
|
def Text(self):
|
|
1455
|
+
"""This field is used to return the text information recognized by OCR.
|
|
1456
|
+
:rtype: str
|
|
1457
|
+
"""
|
|
1208
1458
|
return self._Text
|
|
1209
1459
|
|
|
1210
1460
|
@Text.setter
|
|
@@ -1273,6 +1523,9 @@ class OcrTextDetail(AbstractModel):
|
|
|
1273
1523
|
|
|
1274
1524
|
@property
|
|
1275
1525
|
def Text(self):
|
|
1526
|
+
"""This field is used to return the text content recognized by OCR.<br>Note: OCR can recognize text of **up to 5,000 bytes**.
|
|
1527
|
+
:rtype: str
|
|
1528
|
+
"""
|
|
1276
1529
|
return self._Text
|
|
1277
1530
|
|
|
1278
1531
|
@Text.setter
|
|
@@ -1281,6 +1534,9 @@ class OcrTextDetail(AbstractModel):
|
|
|
1281
1534
|
|
|
1282
1535
|
@property
|
|
1283
1536
|
def Label(self):
|
|
1537
|
+
"""This field is used to return the maliciousness tag in the detection result.<br>Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.
|
|
1538
|
+
:rtype: str
|
|
1539
|
+
"""
|
|
1284
1540
|
return self._Label
|
|
1285
1541
|
|
|
1286
1542
|
@Label.setter
|
|
@@ -1289,6 +1545,9 @@ class OcrTextDetail(AbstractModel):
|
|
|
1289
1545
|
|
|
1290
1546
|
@property
|
|
1291
1547
|
def LibId(self):
|
|
1548
|
+
"""This field is **valid only when `Label` is `Custom` (custom keyword)**. It is used to return the ID of the custom library for easier custom library management and configuration.
|
|
1549
|
+
:rtype: str
|
|
1550
|
+
"""
|
|
1292
1551
|
return self._LibId
|
|
1293
1552
|
|
|
1294
1553
|
@LibId.setter
|
|
@@ -1297,6 +1556,9 @@ class OcrTextDetail(AbstractModel):
|
|
|
1297
1556
|
|
|
1298
1557
|
@property
|
|
1299
1558
|
def LibName(self):
|
|
1559
|
+
"""This field is **valid only when `Label` is `Custom` (custom keyword)**. It is used to return the name of the custom library for easier custom library management and configuration.
|
|
1560
|
+
:rtype: str
|
|
1561
|
+
"""
|
|
1300
1562
|
return self._LibName
|
|
1301
1563
|
|
|
1302
1564
|
@LibName.setter
|
|
@@ -1305,6 +1567,9 @@ class OcrTextDetail(AbstractModel):
|
|
|
1305
1567
|
|
|
1306
1568
|
@property
|
|
1307
1569
|
def Keywords(self):
|
|
1570
|
+
"""This parameter is used to return the hit keyword under the current tag (label).
|
|
1571
|
+
:rtype: list of str
|
|
1572
|
+
"""
|
|
1308
1573
|
return self._Keywords
|
|
1309
1574
|
|
|
1310
1575
|
@Keywords.setter
|
|
@@ -1313,6 +1578,9 @@ class OcrTextDetail(AbstractModel):
|
|
|
1313
1578
|
|
|
1314
1579
|
@property
|
|
1315
1580
|
def Score(self):
|
|
1581
|
+
"""This parameter is used to return the model hit score of the current maliciousness tag. Value range: **0–100**, where a higher value indicates that the current scenario agrees more with the scenario represented by the maliciousness tag.
|
|
1582
|
+
:rtype: int
|
|
1583
|
+
"""
|
|
1316
1584
|
return self._Score
|
|
1317
1585
|
|
|
1318
1586
|
@Score.setter
|
|
@@ -1321,6 +1589,9 @@ class OcrTextDetail(AbstractModel):
|
|
|
1321
1589
|
|
|
1322
1590
|
@property
|
|
1323
1591
|
def Location(self):
|
|
1592
|
+
"""This parameter is used to return the position (X and Y coordinates of the top-left corner, length, width, and rotation angle) of the OCR detection frame in the image for quick location of the recognized text.
|
|
1593
|
+
:rtype: :class:`tencentcloud.ims.v20201229.models.Location`
|
|
1594
|
+
"""
|
|
1324
1595
|
return self._Location
|
|
1325
1596
|
|
|
1326
1597
|
@Location.setter
|
|
@@ -1329,6 +1600,9 @@ class OcrTextDetail(AbstractModel):
|
|
|
1329
1600
|
|
|
1330
1601
|
@property
|
|
1331
1602
|
def Rate(self):
|
|
1603
|
+
"""This parameter is used to return the confidence of the text OCR result. Valid values: **0** (**the lowest confidence**)–**100** (**the highest confidence**), where a higher value indicates that it is more likely that the image contains the recognized text; for example, *Hello 99* indicates that it is highly likely that the text in the OCR recognition frame is "Hello".
|
|
1604
|
+
:rtype: int
|
|
1605
|
+
"""
|
|
1332
1606
|
return self._Rate
|
|
1333
1607
|
|
|
1334
1608
|
@Rate.setter
|
|
@@ -1337,6 +1611,9 @@ class OcrTextDetail(AbstractModel):
|
|
|
1337
1611
|
|
|
1338
1612
|
@property
|
|
1339
1613
|
def SubLabel(self):
|
|
1614
|
+
"""This field is used to return the maliciousness subtag that corresponds to the detection result.
|
|
1615
|
+
:rtype: str
|
|
1616
|
+
"""
|
|
1340
1617
|
return self._SubLabel
|
|
1341
1618
|
|
|
1342
1619
|
@SubLabel.setter
|
|
@@ -1385,6 +1662,10 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
1385
1662
|
|
|
1386
1663
|
@property
|
|
1387
1664
|
def Label(self):
|
|
1665
|
+
"""Value: `Scene`
|
|
1666
|
+
Note: This field may return `null`, indicating that no valid values can be obtained.
|
|
1667
|
+
:rtype: str
|
|
1668
|
+
"""
|
|
1388
1669
|
return self._Label
|
|
1389
1670
|
|
|
1390
1671
|
@Label.setter
|
|
@@ -1393,6 +1674,10 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
1393
1674
|
|
|
1394
1675
|
@property
|
|
1395
1676
|
def Tags(self):
|
|
1677
|
+
"""Hit tags under the `Label`
|
|
1678
|
+
Note: This field may return `null`, indicating that no valid values can be obtained.
|
|
1679
|
+
:rtype: list of RecognitionTag
|
|
1680
|
+
"""
|
|
1396
1681
|
return self._Tags
|
|
1397
1682
|
|
|
1398
1683
|
@Tags.setter
|
|
@@ -1441,6 +1726,10 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
1441
1726
|
|
|
1442
1727
|
@property
|
|
1443
1728
|
def Name(self):
|
|
1729
|
+
"""Tag name
|
|
1730
|
+
Note: This field may return `null`, indicating that no valid values can be obtained.
|
|
1731
|
+
:rtype: str
|
|
1732
|
+
"""
|
|
1444
1733
|
return self._Name
|
|
1445
1734
|
|
|
1446
1735
|
@Name.setter
|
|
@@ -1449,6 +1738,10 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
1449
1738
|
|
|
1450
1739
|
@property
|
|
1451
1740
|
def Score(self):
|
|
1741
|
+
"""Confidence score. Value: 1 to 100.
|
|
1742
|
+
Note: This field may return `null`, indicating that no valid values can be obtained.
|
|
1743
|
+
:rtype: int
|
|
1744
|
+
"""
|
|
1452
1745
|
return self._Score
|
|
1453
1746
|
|
|
1454
1747
|
@Score.setter
|
|
@@ -1457,6 +1750,10 @@ Note: This field may return `null`, indicating that no valid values can be obtai
|
|
|
1457
1750
|
|
|
1458
1751
|
@property
|
|
1459
1752
|
def Location(self):
|
|
1753
|
+
"""Location information. It returns 0 if there is not location information.
|
|
1754
|
+
Note: This field may return `null`, indicating that no valid values can be obtained.
|
|
1755
|
+
:rtype: :class:`tencentcloud.ims.v20201229.models.Location`
|
|
1756
|
+
"""
|
|
1460
1757
|
return self._Location
|
|
1461
1758
|
|
|
1462
1759
|
@Location.setter
|
|
@@ -1523,6 +1820,9 @@ Note: you need to use a consistent mobile number format, such as area code forma
|
|
|
1523
1820
|
|
|
1524
1821
|
@property
|
|
1525
1822
|
def UserId(self):
|
|
1823
|
+
"""This field indicates the business user ID. After it is specified, the system can optimize the moderation result according to the violation history to facilitate determination when a suspicious violation risk exists.
|
|
1824
|
+
:rtype: str
|
|
1825
|
+
"""
|
|
1526
1826
|
return self._UserId
|
|
1527
1827
|
|
|
1528
1828
|
@UserId.setter
|
|
@@ -1531,6 +1831,9 @@ Note: you need to use a consistent mobile number format, such as area code forma
|
|
|
1531
1831
|
|
|
1532
1832
|
@property
|
|
1533
1833
|
def Nickname(self):
|
|
1834
|
+
"""This field indicates the nickname of the business user's account.
|
|
1835
|
+
:rtype: str
|
|
1836
|
+
"""
|
|
1534
1837
|
return self._Nickname
|
|
1535
1838
|
|
|
1536
1839
|
@Nickname.setter
|
|
@@ -1539,6 +1842,10 @@ Note: you need to use a consistent mobile number format, such as area code forma
|
|
|
1539
1842
|
|
|
1540
1843
|
@property
|
|
1541
1844
|
def AccountType(self):
|
|
1845
|
+
"""This field indicates the account type of the business user ID.<br>
|
|
1846
|
+
This field can be used together with the ID parameter (UserId) to uniquely identify the account.
|
|
1847
|
+
:rtype: str
|
|
1848
|
+
"""
|
|
1542
1849
|
return self._AccountType
|
|
1543
1850
|
|
|
1544
1851
|
@AccountType.setter
|
|
@@ -1547,6 +1854,10 @@ Note: you need to use a consistent mobile number format, such as area code forma
|
|
|
1547
1854
|
|
|
1548
1855
|
@property
|
|
1549
1856
|
def Gender(self):
|
|
1857
|
+
"""This field indicates the gender of the business user's account.<br>
|
|
1858
|
+
Valid values: **0** (default value): unknown; **1** (male); **2** (female).
|
|
1859
|
+
:rtype: int
|
|
1860
|
+
"""
|
|
1550
1861
|
return self._Gender
|
|
1551
1862
|
|
|
1552
1863
|
@Gender.setter
|
|
@@ -1555,6 +1866,10 @@ Note: you need to use a consistent mobile number format, such as area code forma
|
|
|
1555
1866
|
|
|
1556
1867
|
@property
|
|
1557
1868
|
def Age(self):
|
|
1869
|
+
"""This field indicates the age of the business user's account.<br>
|
|
1870
|
+
Valid values: integers between **0** (default value, which indicates unknown) and **custom age limit**.
|
|
1871
|
+
:rtype: int
|
|
1872
|
+
"""
|
|
1558
1873
|
return self._Age
|
|
1559
1874
|
|
|
1560
1875
|
@Age.setter
|
|
@@ -1563,6 +1878,10 @@ Note: you need to use a consistent mobile number format, such as area code forma
|
|
|
1563
1878
|
|
|
1564
1879
|
@property
|
|
1565
1880
|
def Level(self):
|
|
1881
|
+
"""This field indicates the level of the business user's account.<br>
|
|
1882
|
+
Valid values: **0** (default value): unknown; **1**: low level; **2**: medium level; **3**: high level. Currently, **the level is not customizable**.
|
|
1883
|
+
:rtype: int
|
|
1884
|
+
"""
|
|
1566
1885
|
return self._Level
|
|
1567
1886
|
|
|
1568
1887
|
@Level.setter
|
|
@@ -1571,6 +1890,10 @@ Note: you need to use a consistent mobile number format, such as area code forma
|
|
|
1571
1890
|
|
|
1572
1891
|
@property
|
|
1573
1892
|
def Phone(self):
|
|
1893
|
+
"""This field indicates the mobile number of the business user's account. It supports recording mobile numbers across the world.<br>
|
|
1894
|
+
Note: you need to use a consistent mobile number format, such as area code format (086/+86).
|
|
1895
|
+
:rtype: str
|
|
1896
|
+
"""
|
|
1574
1897
|
return self._Phone
|
|
1575
1898
|
|
|
1576
1899
|
@Phone.setter
|
|
@@ -1579,6 +1902,9 @@ Note: you need to use a consistent mobile number format, such as area code forma
|
|
|
1579
1902
|
|
|
1580
1903
|
@property
|
|
1581
1904
|
def Desc(self):
|
|
1905
|
+
"""This field indicates the profile of the business user. It can contain **up to 5,000 letters and special symbols**.
|
|
1906
|
+
:rtype: str
|
|
1907
|
+
"""
|
|
1582
1908
|
return self._Desc
|
|
1583
1909
|
|
|
1584
1910
|
@Desc.setter
|
|
@@ -1587,6 +1913,9 @@ Note: you need to use a consistent mobile number format, such as area code forma
|
|
|
1587
1913
|
|
|
1588
1914
|
@property
|
|
1589
1915
|
def HeadUrl(self):
|
|
1916
|
+
"""This field indicates the access URL of the business user's profile photo in PNG, JPG, JPEG, BMP, GIF, or WEBP format.<br>Note: the profile photo **cannot exceed 5 MB in size**. **A resolution of 256x256 or higher** is recommended. The image download time should be limited to 3 seconds; otherwise, a download timeout will be returned.
|
|
1917
|
+
:rtype: str
|
|
1918
|
+
"""
|
|
1590
1919
|
return self._HeadUrl
|
|
1591
1920
|
|
|
1592
1921
|
@HeadUrl.setter
|