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
@@ -1,3385 +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 Candidate(AbstractModel):
22
- """识别出人脸对应的候选人。
23
-
24
- """
25
-
26
- def __init__(self):
27
- r"""
28
- :param _Name: 识别出人脸对应的候选人数组。当前返回相似度最高的候选人。
29
- :type Name: str
30
- :param _Confidence: 相似度,0-100之间。
31
- :type Confidence: int
32
- """
33
- self._Name = None
34
- self._Confidence = None
35
-
36
- @property
37
- def Name(self):
38
- """识别出人脸对应的候选人数组。当前返回相似度最高的候选人。
39
- :rtype: str
40
- """
41
- return self._Name
42
-
43
- @Name.setter
44
- def Name(self, Name):
45
- self._Name = Name
46
-
47
- @property
48
- def Confidence(self):
49
- """相似度,0-100之间。
50
- :rtype: int
51
- """
52
- return self._Confidence
53
-
54
- @Confidence.setter
55
- def Confidence(self, Confidence):
56
- self._Confidence = Confidence
57
-
58
-
59
- def _deserialize(self, params):
60
- self._Name = params.get("Name")
61
- self._Confidence = params.get("Confidence")
62
- memeber_set = set(params.keys())
63
- for name, value in vars(self).items():
64
- property_name = name[1:]
65
- if property_name in memeber_set:
66
- memeber_set.remove(property_name)
67
- if len(memeber_set) > 0:
68
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
69
-
70
-
71
-
72
- class DescribeVideoTaskRequest(AbstractModel):
73
- """DescribeVideoTask请求参数结构体
74
-
75
- """
76
-
77
- def __init__(self):
78
- r"""
79
- :param _VodTaskId: 需要查询的视频审核的任务ID
80
- :type VodTaskId: str
81
- """
82
- self._VodTaskId = None
83
-
84
- @property
85
- def VodTaskId(self):
86
- """需要查询的视频审核的任务ID
87
- :rtype: str
88
- """
89
- return self._VodTaskId
90
-
91
- @VodTaskId.setter
92
- def VodTaskId(self, VodTaskId):
93
- self._VodTaskId = VodTaskId
94
-
95
-
96
- def _deserialize(self, params):
97
- self._VodTaskId = params.get("VodTaskId")
98
- memeber_set = set(params.keys())
99
- for name, value in vars(self).items():
100
- property_name = name[1:]
101
- if property_name in memeber_set:
102
- memeber_set.remove(property_name)
103
- if len(memeber_set) > 0:
104
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
105
-
106
-
107
-
108
- class DescribeVideoTaskResponse(AbstractModel):
109
- """DescribeVideoTask返回参数结构体
110
-
111
- """
112
-
113
- def __init__(self):
114
- r"""
115
- :param _Status: 任务状态,取值:
116
- WAITING:等待中;
117
- PROCESSING:处理中;
118
- FINISH:已完成。
119
- :type Status: str
120
- :param _BeginProcessTime: 任务开始执行的时间,采用 ISO 日期格式。
121
- :type BeginProcessTime: str
122
- :param _FinishTime: 任务执行完毕的时间,采用 ISO 日期格式。
123
- :type FinishTime: str
124
- :param _PornResult: 视频内容审核智能画面鉴黄任务的查询结果。
125
- :type PornResult: :class:`tencentcloud.ticm.v20181127.models.VodPornReviewResult`
126
- :param _TerrorismResult: 视频内容审核智能画面鉴恐任务的查询结果。
127
- :type TerrorismResult: :class:`tencentcloud.ticm.v20181127.models.VodTerrorismReviewResult`
128
- :param _PoliticalResult: 视频内容审核智能画面鉴政任务的查询结果。
129
- :type PoliticalResult: :class:`tencentcloud.ticm.v20181127.models.VodPoliticalReviewResult`
130
- :param _PoliticalOcrResult: 视频内容审核 Ocr 文字鉴政任务的查询结果。
131
- :type PoliticalOcrResult: :class:`tencentcloud.ticm.v20181127.models.VodPoliticalOcrReviewResult`
132
- :param _PornAsrResult: 视频内容审核 Asr 文字鉴黄任务的查询结果。
133
- :type PornAsrResult: :class:`tencentcloud.ticm.v20181127.models.VodPornAsrReviewResult`
134
- :param _PoliticalAsrResult: 视频内容审核 Asr 文字鉴政任务的查询结果。
135
- :type PoliticalAsrResult: :class:`tencentcloud.ticm.v20181127.models.VodPoliticalAsrReviewResult`
136
- :param _PornOcrResult: 视频内容审核 Ocr 文字鉴黄任务的查询结果。
137
- :type PornOcrResult: :class:`tencentcloud.ticm.v20181127.models.VodPornOcrResult`
138
- :param _MetaData: 原始视频的元信息。
139
- :type MetaData: :class:`tencentcloud.ticm.v20181127.models.VodMetaData`
140
- :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
141
- :type RequestId: str
142
- """
143
- self._Status = None
144
- self._BeginProcessTime = None
145
- self._FinishTime = None
146
- self._PornResult = None
147
- self._TerrorismResult = None
148
- self._PoliticalResult = None
149
- self._PoliticalOcrResult = None
150
- self._PornAsrResult = None
151
- self._PoliticalAsrResult = None
152
- self._PornOcrResult = None
153
- self._MetaData = None
154
- self._RequestId = None
155
-
156
- @property
157
- def Status(self):
158
- """任务状态,取值:
159
- WAITING:等待中;
160
- PROCESSING:处理中;
161
- FINISH:已完成。
162
- :rtype: str
163
- """
164
- return self._Status
165
-
166
- @Status.setter
167
- def Status(self, Status):
168
- self._Status = Status
169
-
170
- @property
171
- def BeginProcessTime(self):
172
- """任务开始执行的时间,采用 ISO 日期格式。
173
- :rtype: str
174
- """
175
- return self._BeginProcessTime
176
-
177
- @BeginProcessTime.setter
178
- def BeginProcessTime(self, BeginProcessTime):
179
- self._BeginProcessTime = BeginProcessTime
180
-
181
- @property
182
- def FinishTime(self):
183
- """任务执行完毕的时间,采用 ISO 日期格式。
184
- :rtype: str
185
- """
186
- return self._FinishTime
187
-
188
- @FinishTime.setter
189
- def FinishTime(self, FinishTime):
190
- self._FinishTime = FinishTime
191
-
192
- @property
193
- def PornResult(self):
194
- """视频内容审核智能画面鉴黄任务的查询结果。
195
- :rtype: :class:`tencentcloud.ticm.v20181127.models.VodPornReviewResult`
196
- """
197
- return self._PornResult
198
-
199
- @PornResult.setter
200
- def PornResult(self, PornResult):
201
- self._PornResult = PornResult
202
-
203
- @property
204
- def TerrorismResult(self):
205
- """视频内容审核智能画面鉴恐任务的查询结果。
206
- :rtype: :class:`tencentcloud.ticm.v20181127.models.VodTerrorismReviewResult`
207
- """
208
- return self._TerrorismResult
209
-
210
- @TerrorismResult.setter
211
- def TerrorismResult(self, TerrorismResult):
212
- self._TerrorismResult = TerrorismResult
213
-
214
- @property
215
- def PoliticalResult(self):
216
- """视频内容审核智能画面鉴政任务的查询结果。
217
- :rtype: :class:`tencentcloud.ticm.v20181127.models.VodPoliticalReviewResult`
218
- """
219
- return self._PoliticalResult
220
-
221
- @PoliticalResult.setter
222
- def PoliticalResult(self, PoliticalResult):
223
- self._PoliticalResult = PoliticalResult
224
-
225
- @property
226
- def PoliticalOcrResult(self):
227
- """视频内容审核 Ocr 文字鉴政任务的查询结果。
228
- :rtype: :class:`tencentcloud.ticm.v20181127.models.VodPoliticalOcrReviewResult`
229
- """
230
- return self._PoliticalOcrResult
231
-
232
- @PoliticalOcrResult.setter
233
- def PoliticalOcrResult(self, PoliticalOcrResult):
234
- self._PoliticalOcrResult = PoliticalOcrResult
235
-
236
- @property
237
- def PornAsrResult(self):
238
- """视频内容审核 Asr 文字鉴黄任务的查询结果。
239
- :rtype: :class:`tencentcloud.ticm.v20181127.models.VodPornAsrReviewResult`
240
- """
241
- return self._PornAsrResult
242
-
243
- @PornAsrResult.setter
244
- def PornAsrResult(self, PornAsrResult):
245
- self._PornAsrResult = PornAsrResult
246
-
247
- @property
248
- def PoliticalAsrResult(self):
249
- """视频内容审核 Asr 文字鉴政任务的查询结果。
250
- :rtype: :class:`tencentcloud.ticm.v20181127.models.VodPoliticalAsrReviewResult`
251
- """
252
- return self._PoliticalAsrResult
253
-
254
- @PoliticalAsrResult.setter
255
- def PoliticalAsrResult(self, PoliticalAsrResult):
256
- self._PoliticalAsrResult = PoliticalAsrResult
257
-
258
- @property
259
- def PornOcrResult(self):
260
- """视频内容审核 Ocr 文字鉴黄任务的查询结果。
261
- :rtype: :class:`tencentcloud.ticm.v20181127.models.VodPornOcrResult`
262
- """
263
- return self._PornOcrResult
264
-
265
- @PornOcrResult.setter
266
- def PornOcrResult(self, PornOcrResult):
267
- self._PornOcrResult = PornOcrResult
268
-
269
- @property
270
- def MetaData(self):
271
- """原始视频的元信息。
272
- :rtype: :class:`tencentcloud.ticm.v20181127.models.VodMetaData`
273
- """
274
- return self._MetaData
275
-
276
- @MetaData.setter
277
- def MetaData(self, MetaData):
278
- self._MetaData = MetaData
279
-
280
- @property
281
- def RequestId(self):
282
- """唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
283
- :rtype: str
284
- """
285
- return self._RequestId
286
-
287
- @RequestId.setter
288
- def RequestId(self, RequestId):
289
- self._RequestId = RequestId
290
-
291
-
292
- def _deserialize(self, params):
293
- self._Status = params.get("Status")
294
- self._BeginProcessTime = params.get("BeginProcessTime")
295
- self._FinishTime = params.get("FinishTime")
296
- if params.get("PornResult") is not None:
297
- self._PornResult = VodPornReviewResult()
298
- self._PornResult._deserialize(params.get("PornResult"))
299
- if params.get("TerrorismResult") is not None:
300
- self._TerrorismResult = VodTerrorismReviewResult()
301
- self._TerrorismResult._deserialize(params.get("TerrorismResult"))
302
- if params.get("PoliticalResult") is not None:
303
- self._PoliticalResult = VodPoliticalReviewResult()
304
- self._PoliticalResult._deserialize(params.get("PoliticalResult"))
305
- if params.get("PoliticalOcrResult") is not None:
306
- self._PoliticalOcrResult = VodPoliticalOcrReviewResult()
307
- self._PoliticalOcrResult._deserialize(params.get("PoliticalOcrResult"))
308
- if params.get("PornAsrResult") is not None:
309
- self._PornAsrResult = VodPornAsrReviewResult()
310
- self._PornAsrResult._deserialize(params.get("PornAsrResult"))
311
- if params.get("PoliticalAsrResult") is not None:
312
- self._PoliticalAsrResult = VodPoliticalAsrReviewResult()
313
- self._PoliticalAsrResult._deserialize(params.get("PoliticalAsrResult"))
314
- if params.get("PornOcrResult") is not None:
315
- self._PornOcrResult = VodPornOcrResult()
316
- self._PornOcrResult._deserialize(params.get("PornOcrResult"))
317
- if params.get("MetaData") is not None:
318
- self._MetaData = VodMetaData()
319
- self._MetaData._deserialize(params.get("MetaData"))
320
- self._RequestId = params.get("RequestId")
321
-
322
-
323
- class DisgustResult(AbstractModel):
324
- """恶心识别结果。
325
-
326
- """
327
-
328
- def __init__(self):
329
- r"""
330
- :param _Code: 该识别场景的错误码:
331
- 0表示成功,
332
- -1表示系统错误,
333
- -2表示引擎错误。
334
- :type Code: int
335
- :param _Msg: 错误码描述信息。
336
- :type Msg: str
337
- :param _Suggestion: 识别场景的审核结论:
338
- PASS:正常
339
- REVIEW:疑似
340
- BLOCK:违规
341
- :type Suggestion: str
342
- :param _Confidence: 图像恶心的分数,0-100之间,分数越高恶心几率越大。
343
- :type Confidence: int
344
- """
345
- self._Code = None
346
- self._Msg = None
347
- self._Suggestion = None
348
- self._Confidence = None
349
-
350
- @property
351
- def Code(self):
352
- """该识别场景的错误码:
353
- 0表示成功,
354
- -1表示系统错误,
355
- -2表示引擎错误。
356
- :rtype: int
357
- """
358
- return self._Code
359
-
360
- @Code.setter
361
- def Code(self, Code):
362
- self._Code = Code
363
-
364
- @property
365
- def Msg(self):
366
- """错误码描述信息。
367
- :rtype: str
368
- """
369
- return self._Msg
370
-
371
- @Msg.setter
372
- def Msg(self, Msg):
373
- self._Msg = Msg
374
-
375
- @property
376
- def Suggestion(self):
377
- """识别场景的审核结论:
378
- PASS:正常
379
- REVIEW:疑似
380
- BLOCK:违规
381
- :rtype: str
382
- """
383
- return self._Suggestion
384
-
385
- @Suggestion.setter
386
- def Suggestion(self, Suggestion):
387
- self._Suggestion = Suggestion
388
-
389
- @property
390
- def Confidence(self):
391
- """图像恶心的分数,0-100之间,分数越高恶心几率越大。
392
- :rtype: int
393
- """
394
- return self._Confidence
395
-
396
- @Confidence.setter
397
- def Confidence(self, Confidence):
398
- self._Confidence = Confidence
399
-
400
-
401
- def _deserialize(self, params):
402
- self._Code = params.get("Code")
403
- self._Msg = params.get("Msg")
404
- self._Suggestion = params.get("Suggestion")
405
- self._Confidence = params.get("Confidence")
406
- memeber_set = set(params.keys())
407
- for name, value in vars(self).items():
408
- property_name = name[1:]
409
- if property_name in memeber_set:
410
- memeber_set.remove(property_name)
411
- if len(memeber_set) > 0:
412
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
413
-
414
-
415
-
416
- class FaceRect(AbstractModel):
417
- """识别出的人脸在图片中的位置。
418
-
419
- """
420
-
421
- def __init__(self):
422
- r"""
423
- :param _X: 人脸区域左上角横坐标。
424
- :type X: int
425
- :param _Y: 人脸区域左上角纵坐标。
426
- :type Y: int
427
- :param _Width: 人脸区域宽度。
428
- :type Width: int
429
- :param _Height: 人脸区域高度。
430
- :type Height: int
431
- """
432
- self._X = None
433
- self._Y = None
434
- self._Width = None
435
- self._Height = None
436
-
437
- @property
438
- def X(self):
439
- """人脸区域左上角横坐标。
440
- :rtype: int
441
- """
442
- return self._X
443
-
444
- @X.setter
445
- def X(self, X):
446
- self._X = X
447
-
448
- @property
449
- def Y(self):
450
- """人脸区域左上角纵坐标。
451
- :rtype: int
452
- """
453
- return self._Y
454
-
455
- @Y.setter
456
- def Y(self, Y):
457
- self._Y = Y
458
-
459
- @property
460
- def Width(self):
461
- """人脸区域宽度。
462
- :rtype: int
463
- """
464
- return self._Width
465
-
466
- @Width.setter
467
- def Width(self, Width):
468
- self._Width = Width
469
-
470
- @property
471
- def Height(self):
472
- """人脸区域高度。
473
- :rtype: int
474
- """
475
- return self._Height
476
-
477
- @Height.setter
478
- def Height(self, Height):
479
- self._Height = Height
480
-
481
-
482
- def _deserialize(self, params):
483
- self._X = params.get("X")
484
- self._Y = params.get("Y")
485
- self._Width = params.get("Width")
486
- self._Height = params.get("Height")
487
- memeber_set = set(params.keys())
488
- for name, value in vars(self).items():
489
- property_name = name[1:]
490
- if property_name in memeber_set:
491
- memeber_set.remove(property_name)
492
- if len(memeber_set) > 0:
493
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
494
-
495
-
496
-
497
- class FaceResult(AbstractModel):
498
- """人脸识别结果。
499
-
500
- """
501
-
502
- def __init__(self):
503
- r"""
504
- :param _FaceRect: 检测出的人脸框位置。
505
- :type FaceRect: :class:`tencentcloud.ticm.v20181127.models.FaceRect`
506
- :param _Candidates: 候选人列表。当前返回相似度最高的候选人。
507
- :type Candidates: list of Candidate
508
- """
509
- self._FaceRect = None
510
- self._Candidates = None
511
-
512
- @property
513
- def FaceRect(self):
514
- """检测出的人脸框位置。
515
- :rtype: :class:`tencentcloud.ticm.v20181127.models.FaceRect`
516
- """
517
- return self._FaceRect
518
-
519
- @FaceRect.setter
520
- def FaceRect(self, FaceRect):
521
- self._FaceRect = FaceRect
522
-
523
- @property
524
- def Candidates(self):
525
- """候选人列表。当前返回相似度最高的候选人。
526
- :rtype: list of Candidate
527
- """
528
- return self._Candidates
529
-
530
- @Candidates.setter
531
- def Candidates(self, Candidates):
532
- self._Candidates = Candidates
533
-
534
-
535
- def _deserialize(self, params):
536
- if params.get("FaceRect") is not None:
537
- self._FaceRect = FaceRect()
538
- self._FaceRect._deserialize(params.get("FaceRect"))
539
- if params.get("Candidates") is not None:
540
- self._Candidates = []
541
- for item in params.get("Candidates"):
542
- obj = Candidate()
543
- obj._deserialize(item)
544
- self._Candidates.append(obj)
545
- memeber_set = set(params.keys())
546
- for name, value in vars(self).items():
547
- property_name = name[1:]
548
- if property_name in memeber_set:
549
- memeber_set.remove(property_name)
550
- if len(memeber_set) > 0:
551
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
552
-
553
-
554
-
555
- class ImageModerationRequest(AbstractModel):
556
- """ImageModeration请求参数结构体
557
-
558
- """
559
-
560
- def __init__(self):
561
- r"""
562
- :param _Scenes: 本次调用支持的识别场景,可选值如下:
563
- 1. PORN,即色情识别
564
- 2. TERRORISM,即暴恐识别
565
- 3. POLITICS,即政治敏感识别
566
-
567
- 支持多场景(Scenes)一起检测。例如,使用 Scenes=["PORN", "TERRORISM"],即对一张图片同时进行色情识别和暴恐识别。
568
- :type Scenes: list of str
569
- :param _ImageUrl: 图片URL地址。
570
- 图片限制:
571
- • 图片格式:PNG、JPG、JPEG。
572
- • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
573
- • 图片像素:大于50*50像素,否则影响识别效果;
574
- • 长宽比:长边:短边<5;
575
- 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
576
- :type ImageUrl: str
577
- :param _Config: 预留字段,后期用于展示更多识别信息。
578
- :type Config: str
579
- :param _Extra: 透传字段,透传简单信息。
580
- :type Extra: str
581
- :param _ImageBase64: 图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
582
- :type ImageBase64: str
583
- """
584
- self._Scenes = None
585
- self._ImageUrl = None
586
- self._Config = None
587
- self._Extra = None
588
- self._ImageBase64 = None
589
-
590
- @property
591
- def Scenes(self):
592
- """本次调用支持的识别场景,可选值如下:
593
- 1. PORN,即色情识别
594
- 2. TERRORISM,即暴恐识别
595
- 3. POLITICS,即政治敏感识别
596
-
597
- 支持多场景(Scenes)一起检测。例如,使用 Scenes=["PORN", "TERRORISM"],即对一张图片同时进行色情识别和暴恐识别。
598
- :rtype: list of str
599
- """
600
- return self._Scenes
601
-
602
- @Scenes.setter
603
- def Scenes(self, Scenes):
604
- self._Scenes = Scenes
605
-
606
- @property
607
- def ImageUrl(self):
608
- """图片URL地址。
609
- 图片限制:
610
- • 图片格式:PNG、JPG、JPEG。
611
- • 图片大小:所下载图片经Base64编码后不超过4M。图片下载时间不超过3秒。
612
- • 图片像素:大于50*50像素,否则影响识别效果;
613
- • 长宽比:长边:短边<5;
614
- 接口响应时间会受到图片下载时间的影响,建议使用更可靠的存储服务,推荐将图片存储在腾讯云COS。
615
- :rtype: str
616
- """
617
- return self._ImageUrl
618
-
619
- @ImageUrl.setter
620
- def ImageUrl(self, ImageUrl):
621
- self._ImageUrl = ImageUrl
622
-
623
- @property
624
- def Config(self):
625
- """预留字段,后期用于展示更多识别信息。
626
- :rtype: str
627
- """
628
- return self._Config
629
-
630
- @Config.setter
631
- def Config(self, Config):
632
- self._Config = Config
633
-
634
- @property
635
- def Extra(self):
636
- """透传字段,透传简单信息。
637
- :rtype: str
638
- """
639
- return self._Extra
640
-
641
- @Extra.setter
642
- def Extra(self, Extra):
643
- self._Extra = Extra
644
-
645
- @property
646
- def ImageBase64(self):
647
- """图片经过base64编码的内容。最大不超过4M。与ImageUrl同时存在时优先使用ImageUrl字段。
648
- :rtype: str
649
- """
650
- return self._ImageBase64
651
-
652
- @ImageBase64.setter
653
- def ImageBase64(self, ImageBase64):
654
- self._ImageBase64 = ImageBase64
655
-
656
-
657
- def _deserialize(self, params):
658
- self._Scenes = params.get("Scenes")
659
- self._ImageUrl = params.get("ImageUrl")
660
- self._Config = params.get("Config")
661
- self._Extra = params.get("Extra")
662
- self._ImageBase64 = params.get("ImageBase64")
663
- memeber_set = set(params.keys())
664
- for name, value in vars(self).items():
665
- property_name = name[1:]
666
- if property_name in memeber_set:
667
- memeber_set.remove(property_name)
668
- if len(memeber_set) > 0:
669
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
670
-
671
-
672
-
673
- class ImageModerationResponse(AbstractModel):
674
- """ImageModeration返回参数结构体
675
-
676
- """
677
-
678
- def __init__(self):
679
- r"""
680
- :param _Suggestion: 识别场景的审核结论:
681
- PASS:正常
682
- REVIEW:疑似
683
- BLOCK:违规
684
- :type Suggestion: str
685
- :param _PornResult: 色情识别结果。
686
- 注意:此字段可能返回 null,表示取不到有效值。
687
- :type PornResult: :class:`tencentcloud.ticm.v20181127.models.PornResult`
688
- :param _TerrorismResult: 暴恐识别结果。
689
- 注意:此字段可能返回 null,表示取不到有效值。
690
- :type TerrorismResult: :class:`tencentcloud.ticm.v20181127.models.TerrorismResult`
691
- :param _PoliticsResult: 政治敏感识别结果。
692
- 注意:此字段可能返回 null,表示取不到有效值。
693
- :type PoliticsResult: :class:`tencentcloud.ticm.v20181127.models.PoliticsResult`
694
- :param _Extra: 透传字段,透传简单信息。
695
- :type Extra: str
696
- :param _DisgustResult: 恶心内容识别结果。
697
- 注意:此字段可能返回 null,表示取不到有效值。
698
- :type DisgustResult: :class:`tencentcloud.ticm.v20181127.models.DisgustResult`
699
- :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
700
- :type RequestId: str
701
- """
702
- self._Suggestion = None
703
- self._PornResult = None
704
- self._TerrorismResult = None
705
- self._PoliticsResult = None
706
- self._Extra = None
707
- self._DisgustResult = None
708
- self._RequestId = None
709
-
710
- @property
711
- def Suggestion(self):
712
- """识别场景的审核结论:
713
- PASS:正常
714
- REVIEW:疑似
715
- BLOCK:违规
716
- :rtype: str
717
- """
718
- return self._Suggestion
719
-
720
- @Suggestion.setter
721
- def Suggestion(self, Suggestion):
722
- self._Suggestion = Suggestion
723
-
724
- @property
725
- def PornResult(self):
726
- """色情识别结果。
727
- 注意:此字段可能返回 null,表示取不到有效值。
728
- :rtype: :class:`tencentcloud.ticm.v20181127.models.PornResult`
729
- """
730
- return self._PornResult
731
-
732
- @PornResult.setter
733
- def PornResult(self, PornResult):
734
- self._PornResult = PornResult
735
-
736
- @property
737
- def TerrorismResult(self):
738
- """暴恐识别结果。
739
- 注意:此字段可能返回 null,表示取不到有效值。
740
- :rtype: :class:`tencentcloud.ticm.v20181127.models.TerrorismResult`
741
- """
742
- return self._TerrorismResult
743
-
744
- @TerrorismResult.setter
745
- def TerrorismResult(self, TerrorismResult):
746
- self._TerrorismResult = TerrorismResult
747
-
748
- @property
749
- def PoliticsResult(self):
750
- """政治敏感识别结果。
751
- 注意:此字段可能返回 null,表示取不到有效值。
752
- :rtype: :class:`tencentcloud.ticm.v20181127.models.PoliticsResult`
753
- """
754
- return self._PoliticsResult
755
-
756
- @PoliticsResult.setter
757
- def PoliticsResult(self, PoliticsResult):
758
- self._PoliticsResult = PoliticsResult
759
-
760
- @property
761
- def Extra(self):
762
- """透传字段,透传简单信息。
763
- :rtype: str
764
- """
765
- return self._Extra
766
-
767
- @Extra.setter
768
- def Extra(self, Extra):
769
- self._Extra = Extra
770
-
771
- @property
772
- def DisgustResult(self):
773
- """恶心内容识别结果。
774
- 注意:此字段可能返回 null,表示取不到有效值。
775
- :rtype: :class:`tencentcloud.ticm.v20181127.models.DisgustResult`
776
- """
777
- return self._DisgustResult
778
-
779
- @DisgustResult.setter
780
- def DisgustResult(self, DisgustResult):
781
- self._DisgustResult = DisgustResult
782
-
783
- @property
784
- def RequestId(self):
785
- """唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
786
- :rtype: str
787
- """
788
- return self._RequestId
789
-
790
- @RequestId.setter
791
- def RequestId(self, RequestId):
792
- self._RequestId = RequestId
793
-
794
-
795
- def _deserialize(self, params):
796
- self._Suggestion = params.get("Suggestion")
797
- if params.get("PornResult") is not None:
798
- self._PornResult = PornResult()
799
- self._PornResult._deserialize(params.get("PornResult"))
800
- if params.get("TerrorismResult") is not None:
801
- self._TerrorismResult = TerrorismResult()
802
- self._TerrorismResult._deserialize(params.get("TerrorismResult"))
803
- if params.get("PoliticsResult") is not None:
804
- self._PoliticsResult = PoliticsResult()
805
- self._PoliticsResult._deserialize(params.get("PoliticsResult"))
806
- self._Extra = params.get("Extra")
807
- if params.get("DisgustResult") is not None:
808
- self._DisgustResult = DisgustResult()
809
- self._DisgustResult._deserialize(params.get("DisgustResult"))
810
- self._RequestId = params.get("RequestId")
811
-
812
-
813
- class PoliticsResult(AbstractModel):
814
- """政治敏感识别结果。
815
-
816
- """
817
-
818
- def __init__(self):
819
- r"""
820
- :param _Code: 该识别场景的错误码:
821
- 0表示成功,
822
- -1表示系统错误,
823
- -2表示引擎错误,
824
- -1400表示图片解码失败,
825
- -1401表示图片不符合规范。
826
- :type Code: int
827
- :param _Msg: 错误码描述信息。
828
- :type Msg: str
829
- :param _Suggestion: 识别场景的审核结论:
830
- PASS:正常
831
- REVIEW:疑似
832
- BLOCK:违规
833
- :type Suggestion: str
834
- :param _Confidence: 图像涉政的分数,0-100之间,分数越高涉政几率越大。
835
- Type为DNA时:
836
- 0到75,Suggestion建议为PASS
837
- 75到90,Suggestion建议为REVIEW
838
- 90到100,Suggestion建议为BLOCK
839
- Type为FACE时:
840
- 0到55,Suggestion建议为PASS
841
- 55到60,Suggestion建议为REVIEW
842
- 60到100,Suggestion建议为BLOCK
843
- :type Confidence: int
844
- :param _FaceResults: Type取值为‘FACE’时,人脸识别的结果列表。基于图片中实际检测到的人脸数,返回数组最大值不超过5个。
845
- :type FaceResults: list of FaceResult
846
- :param _Type: 取值'DNA' 或‘FACE’。DNA表示结论和置信度来自图像指纹,FACE表示结论和置信度来自人脸识别。
847
- :type Type: str
848
- :param _AdvancedInfo: 鉴政识别返回的详细标签后期开放。
849
- :type AdvancedInfo: str
850
- """
851
- self._Code = None
852
- self._Msg = None
853
- self._Suggestion = None
854
- self._Confidence = None
855
- self._FaceResults = None
856
- self._Type = None
857
- self._AdvancedInfo = None
858
-
859
- @property
860
- def Code(self):
861
- """该识别场景的错误码:
862
- 0表示成功,
863
- -1表示系统错误,
864
- -2表示引擎错误,
865
- -1400表示图片解码失败,
866
- -1401表示图片不符合规范。
867
- :rtype: int
868
- """
869
- return self._Code
870
-
871
- @Code.setter
872
- def Code(self, Code):
873
- self._Code = Code
874
-
875
- @property
876
- def Msg(self):
877
- """错误码描述信息。
878
- :rtype: str
879
- """
880
- return self._Msg
881
-
882
- @Msg.setter
883
- def Msg(self, Msg):
884
- self._Msg = Msg
885
-
886
- @property
887
- def Suggestion(self):
888
- """识别场景的审核结论:
889
- PASS:正常
890
- REVIEW:疑似
891
- BLOCK:违规
892
- :rtype: str
893
- """
894
- return self._Suggestion
895
-
896
- @Suggestion.setter
897
- def Suggestion(self, Suggestion):
898
- self._Suggestion = Suggestion
899
-
900
- @property
901
- def Confidence(self):
902
- """图像涉政的分数,0-100之间,分数越高涉政几率越大。
903
- Type为DNA时:
904
- 0到75,Suggestion建议为PASS
905
- 75到90,Suggestion建议为REVIEW
906
- 90到100,Suggestion建议为BLOCK
907
- Type为FACE时:
908
- 0到55,Suggestion建议为PASS
909
- 55到60,Suggestion建议为REVIEW
910
- 60到100,Suggestion建议为BLOCK
911
- :rtype: int
912
- """
913
- return self._Confidence
914
-
915
- @Confidence.setter
916
- def Confidence(self, Confidence):
917
- self._Confidence = Confidence
918
-
919
- @property
920
- def FaceResults(self):
921
- """Type取值为‘FACE’时,人脸识别的结果列表。基于图片中实际检测到的人脸数,返回数组最大值不超过5个。
922
- :rtype: list of FaceResult
923
- """
924
- return self._FaceResults
925
-
926
- @FaceResults.setter
927
- def FaceResults(self, FaceResults):
928
- self._FaceResults = FaceResults
929
-
930
- @property
931
- def Type(self):
932
- """取值'DNA' 或‘FACE’。DNA表示结论和置信度来自图像指纹,FACE表示结论和置信度来自人脸识别。
933
- :rtype: str
934
- """
935
- return self._Type
936
-
937
- @Type.setter
938
- def Type(self, Type):
939
- self._Type = Type
940
-
941
- @property
942
- def AdvancedInfo(self):
943
- """鉴政识别返回的详细标签后期开放。
944
- :rtype: str
945
- """
946
- return self._AdvancedInfo
947
-
948
- @AdvancedInfo.setter
949
- def AdvancedInfo(self, AdvancedInfo):
950
- self._AdvancedInfo = AdvancedInfo
951
-
952
-
953
- def _deserialize(self, params):
954
- self._Code = params.get("Code")
955
- self._Msg = params.get("Msg")
956
- self._Suggestion = params.get("Suggestion")
957
- self._Confidence = params.get("Confidence")
958
- if params.get("FaceResults") is not None:
959
- self._FaceResults = []
960
- for item in params.get("FaceResults"):
961
- obj = FaceResult()
962
- obj._deserialize(item)
963
- self._FaceResults.append(obj)
964
- self._Type = params.get("Type")
965
- self._AdvancedInfo = params.get("AdvancedInfo")
966
- memeber_set = set(params.keys())
967
- for name, value in vars(self).items():
968
- property_name = name[1:]
969
- if property_name in memeber_set:
970
- memeber_set.remove(property_name)
971
- if len(memeber_set) > 0:
972
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
973
-
974
-
975
-
976
- class PornResult(AbstractModel):
977
- """色情识别结果。
978
-
979
- """
980
-
981
- def __init__(self):
982
- r"""
983
- :param _Code: 该识别场景的错误码:
984
- 0表示成功,
985
- -1表示系统错误,
986
- -2表示引擎错误,
987
- -1400表示图片解码失败。
988
- :type Code: int
989
- :param _Msg: 错误码描述信息。
990
- :type Msg: str
991
- :param _Suggestion: 识别场景的审核结论:
992
- PASS:正常
993
- REVIEW:疑似
994
- BLOCK:违规
995
- :type Suggestion: str
996
- :param _Confidence: 算法对于Suggestion的置信度,0-100之间,值越高,表示对于Suggestion越确定。
997
- :type Confidence: int
998
- :param _AdvancedInfo: 预留字段,后期用于展示更多识别信息。
999
- :type AdvancedInfo: str
1000
- :param _Type: 取值'LABEL‘,LABEL表示结论和置信度来自标签分类。
1001
- :type Type: str
1002
- """
1003
- self._Code = None
1004
- self._Msg = None
1005
- self._Suggestion = None
1006
- self._Confidence = None
1007
- self._AdvancedInfo = None
1008
- self._Type = None
1009
-
1010
- @property
1011
- def Code(self):
1012
- """该识别场景的错误码:
1013
- 0表示成功,
1014
- -1表示系统错误,
1015
- -2表示引擎错误,
1016
- -1400表示图片解码失败。
1017
- :rtype: int
1018
- """
1019
- return self._Code
1020
-
1021
- @Code.setter
1022
- def Code(self, Code):
1023
- self._Code = Code
1024
-
1025
- @property
1026
- def Msg(self):
1027
- """错误码描述信息。
1028
- :rtype: str
1029
- """
1030
- return self._Msg
1031
-
1032
- @Msg.setter
1033
- def Msg(self, Msg):
1034
- self._Msg = Msg
1035
-
1036
- @property
1037
- def Suggestion(self):
1038
- """识别场景的审核结论:
1039
- PASS:正常
1040
- REVIEW:疑似
1041
- BLOCK:违规
1042
- :rtype: str
1043
- """
1044
- return self._Suggestion
1045
-
1046
- @Suggestion.setter
1047
- def Suggestion(self, Suggestion):
1048
- self._Suggestion = Suggestion
1049
-
1050
- @property
1051
- def Confidence(self):
1052
- """算法对于Suggestion的置信度,0-100之间,值越高,表示对于Suggestion越确定。
1053
- :rtype: int
1054
- """
1055
- return self._Confidence
1056
-
1057
- @Confidence.setter
1058
- def Confidence(self, Confidence):
1059
- self._Confidence = Confidence
1060
-
1061
- @property
1062
- def AdvancedInfo(self):
1063
- """预留字段,后期用于展示更多识别信息。
1064
- :rtype: str
1065
- """
1066
- return self._AdvancedInfo
1067
-
1068
- @AdvancedInfo.setter
1069
- def AdvancedInfo(self, AdvancedInfo):
1070
- self._AdvancedInfo = AdvancedInfo
1071
-
1072
- @property
1073
- def Type(self):
1074
- """取值'LABEL‘,LABEL表示结论和置信度来自标签分类。
1075
- :rtype: str
1076
- """
1077
- return self._Type
1078
-
1079
- @Type.setter
1080
- def Type(self, Type):
1081
- self._Type = Type
1082
-
1083
-
1084
- def _deserialize(self, params):
1085
- self._Code = params.get("Code")
1086
- self._Msg = params.get("Msg")
1087
- self._Suggestion = params.get("Suggestion")
1088
- self._Confidence = params.get("Confidence")
1089
- self._AdvancedInfo = params.get("AdvancedInfo")
1090
- self._Type = params.get("Type")
1091
- memeber_set = set(params.keys())
1092
- for name, value in vars(self).items():
1093
- property_name = name[1:]
1094
- if property_name in memeber_set:
1095
- memeber_set.remove(property_name)
1096
- if len(memeber_set) > 0:
1097
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1098
-
1099
-
1100
-
1101
- class TerrorismResult(AbstractModel):
1102
- """暴恐识别结果。
1103
-
1104
- """
1105
-
1106
- def __init__(self):
1107
- r"""
1108
- :param _Code: 该识别场景的错误码:
1109
- 0表示成功,
1110
- -1表示系统错误,
1111
- -2表示引擎错误,
1112
- -1400表示图片解码失败。
1113
- :type Code: int
1114
- :param _Msg: 错误码描述信息。
1115
- :type Msg: str
1116
- :param _Suggestion: 识别场景的审核结论:
1117
- PASS:正常
1118
- REVIEW:疑似
1119
- BLOCK:违规
1120
- :type Suggestion: str
1121
- :param _Confidence: 图像涉恐的分数,0-100之间,分数越高涉恐几率越大。
1122
- Type为LABEL时:
1123
- 0到86,Suggestion建议为PASS
1124
- 86到91,Suggestion建议为REVIEW
1125
- 91到100,Suggestion建议为BLOCK
1126
- Type为FACE时:
1127
- 0到55,Suggestion建议为PASS
1128
- 55到60,Suggestion建议为REVIEW
1129
- 60到100,Suggestion建议为BLOCK
1130
- :type Confidence: int
1131
- :param _FaceResults: Type取值为‘FACE’时,人脸识别的结果列表。基于图片中实际检测到的人脸数,返回数组最大值不超过5个。
1132
- :type FaceResults: list of FaceResult
1133
- :param _AdvancedInfo: 暴恐识别返回的详细标签后期开放。
1134
- :type AdvancedInfo: str
1135
- :param _Type: 取值'LABEL' 或‘FACE’,LABEL表示结论和置信度来自标签分类,FACE表示结论和置信度来自人脸识别。
1136
- :type Type: str
1137
- """
1138
- self._Code = None
1139
- self._Msg = None
1140
- self._Suggestion = None
1141
- self._Confidence = None
1142
- self._FaceResults = None
1143
- self._AdvancedInfo = None
1144
- self._Type = None
1145
-
1146
- @property
1147
- def Code(self):
1148
- """该识别场景的错误码:
1149
- 0表示成功,
1150
- -1表示系统错误,
1151
- -2表示引擎错误,
1152
- -1400表示图片解码失败。
1153
- :rtype: int
1154
- """
1155
- return self._Code
1156
-
1157
- @Code.setter
1158
- def Code(self, Code):
1159
- self._Code = Code
1160
-
1161
- @property
1162
- def Msg(self):
1163
- """错误码描述信息。
1164
- :rtype: str
1165
- """
1166
- return self._Msg
1167
-
1168
- @Msg.setter
1169
- def Msg(self, Msg):
1170
- self._Msg = Msg
1171
-
1172
- @property
1173
- def Suggestion(self):
1174
- """识别场景的审核结论:
1175
- PASS:正常
1176
- REVIEW:疑似
1177
- BLOCK:违规
1178
- :rtype: str
1179
- """
1180
- return self._Suggestion
1181
-
1182
- @Suggestion.setter
1183
- def Suggestion(self, Suggestion):
1184
- self._Suggestion = Suggestion
1185
-
1186
- @property
1187
- def Confidence(self):
1188
- """图像涉恐的分数,0-100之间,分数越高涉恐几率越大。
1189
- Type为LABEL时:
1190
- 0到86,Suggestion建议为PASS
1191
- 86到91,Suggestion建议为REVIEW
1192
- 91到100,Suggestion建议为BLOCK
1193
- Type为FACE时:
1194
- 0到55,Suggestion建议为PASS
1195
- 55到60,Suggestion建议为REVIEW
1196
- 60到100,Suggestion建议为BLOCK
1197
- :rtype: int
1198
- """
1199
- return self._Confidence
1200
-
1201
- @Confidence.setter
1202
- def Confidence(self, Confidence):
1203
- self._Confidence = Confidence
1204
-
1205
- @property
1206
- def FaceResults(self):
1207
- """Type取值为‘FACE’时,人脸识别的结果列表。基于图片中实际检测到的人脸数,返回数组最大值不超过5个。
1208
- :rtype: list of FaceResult
1209
- """
1210
- return self._FaceResults
1211
-
1212
- @FaceResults.setter
1213
- def FaceResults(self, FaceResults):
1214
- self._FaceResults = FaceResults
1215
-
1216
- @property
1217
- def AdvancedInfo(self):
1218
- """暴恐识别返回的详细标签后期开放。
1219
- :rtype: str
1220
- """
1221
- return self._AdvancedInfo
1222
-
1223
- @AdvancedInfo.setter
1224
- def AdvancedInfo(self, AdvancedInfo):
1225
- self._AdvancedInfo = AdvancedInfo
1226
-
1227
- @property
1228
- def Type(self):
1229
- """取值'LABEL' 或‘FACE’,LABEL表示结论和置信度来自标签分类,FACE表示结论和置信度来自人脸识别。
1230
- :rtype: str
1231
- """
1232
- return self._Type
1233
-
1234
- @Type.setter
1235
- def Type(self, Type):
1236
- self._Type = Type
1237
-
1238
-
1239
- def _deserialize(self, params):
1240
- self._Code = params.get("Code")
1241
- self._Msg = params.get("Msg")
1242
- self._Suggestion = params.get("Suggestion")
1243
- self._Confidence = params.get("Confidence")
1244
- if params.get("FaceResults") is not None:
1245
- self._FaceResults = []
1246
- for item in params.get("FaceResults"):
1247
- obj = FaceResult()
1248
- obj._deserialize(item)
1249
- self._FaceResults.append(obj)
1250
- self._AdvancedInfo = params.get("AdvancedInfo")
1251
- self._Type = params.get("Type")
1252
- memeber_set = set(params.keys())
1253
- for name, value in vars(self).items():
1254
- property_name = name[1:]
1255
- if property_name in memeber_set:
1256
- memeber_set.remove(property_name)
1257
- if len(memeber_set) > 0:
1258
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1259
-
1260
-
1261
-
1262
- class VideoModerationRequest(AbstractModel):
1263
- """VideoModeration请求参数结构体
1264
-
1265
- """
1266
-
1267
- def __init__(self):
1268
- r"""
1269
- :param _VideoUrl: 需要审核的视频的URL地址
1270
- :type VideoUrl: str
1271
- :param _DeveloperId: 开发者标识
1272
- :type DeveloperId: str
1273
- :param _CBUrl: 审核完成后回调地址
1274
- :type CBUrl: str
1275
- :param _Extra: 透传字段,透传简单信息。
1276
- :type Extra: str
1277
- """
1278
- self._VideoUrl = None
1279
- self._DeveloperId = None
1280
- self._CBUrl = None
1281
- self._Extra = None
1282
-
1283
- @property
1284
- def VideoUrl(self):
1285
- """需要审核的视频的URL地址
1286
- :rtype: str
1287
- """
1288
- return self._VideoUrl
1289
-
1290
- @VideoUrl.setter
1291
- def VideoUrl(self, VideoUrl):
1292
- self._VideoUrl = VideoUrl
1293
-
1294
- @property
1295
- def DeveloperId(self):
1296
- """开发者标识
1297
- :rtype: str
1298
- """
1299
- return self._DeveloperId
1300
-
1301
- @DeveloperId.setter
1302
- def DeveloperId(self, DeveloperId):
1303
- self._DeveloperId = DeveloperId
1304
-
1305
- @property
1306
- def CBUrl(self):
1307
- """审核完成后回调地址
1308
- :rtype: str
1309
- """
1310
- return self._CBUrl
1311
-
1312
- @CBUrl.setter
1313
- def CBUrl(self, CBUrl):
1314
- self._CBUrl = CBUrl
1315
-
1316
- @property
1317
- def Extra(self):
1318
- """透传字段,透传简单信息。
1319
- :rtype: str
1320
- """
1321
- return self._Extra
1322
-
1323
- @Extra.setter
1324
- def Extra(self, Extra):
1325
- self._Extra = Extra
1326
-
1327
-
1328
- def _deserialize(self, params):
1329
- self._VideoUrl = params.get("VideoUrl")
1330
- self._DeveloperId = params.get("DeveloperId")
1331
- self._CBUrl = params.get("CBUrl")
1332
- self._Extra = params.get("Extra")
1333
- memeber_set = set(params.keys())
1334
- for name, value in vars(self).items():
1335
- property_name = name[1:]
1336
- if property_name in memeber_set:
1337
- memeber_set.remove(property_name)
1338
- if len(memeber_set) > 0:
1339
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1340
-
1341
-
1342
-
1343
- class VideoModerationResponse(AbstractModel):
1344
- """VideoModeration返回参数结构体
1345
-
1346
- """
1347
-
1348
- def __init__(self):
1349
- r"""
1350
- :param _VodTaskId: 视频审核任务ID
1351
- :type VodTaskId: str
1352
- :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1353
- :type RequestId: str
1354
- """
1355
- self._VodTaskId = None
1356
- self._RequestId = None
1357
-
1358
- @property
1359
- def VodTaskId(self):
1360
- """视频审核任务ID
1361
- :rtype: str
1362
- """
1363
- return self._VodTaskId
1364
-
1365
- @VodTaskId.setter
1366
- def VodTaskId(self, VodTaskId):
1367
- self._VodTaskId = VodTaskId
1368
-
1369
- @property
1370
- def RequestId(self):
1371
- """唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1372
- :rtype: str
1373
- """
1374
- return self._RequestId
1375
-
1376
- @RequestId.setter
1377
- def RequestId(self, RequestId):
1378
- self._RequestId = RequestId
1379
-
1380
-
1381
- def _deserialize(self, params):
1382
- self._VodTaskId = params.get("VodTaskId")
1383
- self._RequestId = params.get("RequestId")
1384
-
1385
-
1386
- class VodAsrTextSegmentItem(AbstractModel):
1387
- """内容审核 Asr 文字审核嫌疑片段
1388
-
1389
- """
1390
-
1391
- def __init__(self):
1392
- r"""
1393
- :param _StartTimeOffset: 嫌疑片段起始的偏移时间,单位:秒。
1394
- 注意:此字段可能返回 null,表示取不到有效值。
1395
- :type StartTimeOffset: float
1396
- :param _EndTimeOffset: 嫌疑片段结束的偏移时间,单位:秒。
1397
- 注意:此字段可能返回 null,表示取不到有效值。
1398
- :type EndTimeOffset: float
1399
- :param _Confidence: 嫌疑片段置信度。
1400
- 注意:此字段可能返回 null,表示取不到有效值。
1401
- :type Confidence: float
1402
- :param _Suggestion: 嫌疑片段审核结果建议,取值范围:
1403
- pass。
1404
- review。
1405
- block。
1406
-
1407
- 注意:此字段可能返回 null,表示取不到有效值。
1408
- :type Suggestion: str
1409
- :param _KeywordSet: 嫌疑关键词列表。
1410
- 注意:此字段可能返回 null,表示取不到有效值。
1411
- :type KeywordSet: list of str
1412
- """
1413
- self._StartTimeOffset = None
1414
- self._EndTimeOffset = None
1415
- self._Confidence = None
1416
- self._Suggestion = None
1417
- self._KeywordSet = None
1418
-
1419
- @property
1420
- def StartTimeOffset(self):
1421
- """嫌疑片段起始的偏移时间,单位:秒。
1422
- 注意:此字段可能返回 null,表示取不到有效值。
1423
- :rtype: float
1424
- """
1425
- return self._StartTimeOffset
1426
-
1427
- @StartTimeOffset.setter
1428
- def StartTimeOffset(self, StartTimeOffset):
1429
- self._StartTimeOffset = StartTimeOffset
1430
-
1431
- @property
1432
- def EndTimeOffset(self):
1433
- """嫌疑片段结束的偏移时间,单位:秒。
1434
- 注意:此字段可能返回 null,表示取不到有效值。
1435
- :rtype: float
1436
- """
1437
- return self._EndTimeOffset
1438
-
1439
- @EndTimeOffset.setter
1440
- def EndTimeOffset(self, EndTimeOffset):
1441
- self._EndTimeOffset = EndTimeOffset
1442
-
1443
- @property
1444
- def Confidence(self):
1445
- """嫌疑片段置信度。
1446
- 注意:此字段可能返回 null,表示取不到有效值。
1447
- :rtype: float
1448
- """
1449
- return self._Confidence
1450
-
1451
- @Confidence.setter
1452
- def Confidence(self, Confidence):
1453
- self._Confidence = Confidence
1454
-
1455
- @property
1456
- def Suggestion(self):
1457
- """嫌疑片段审核结果建议,取值范围:
1458
- pass。
1459
- review。
1460
- block。
1461
-
1462
- 注意:此字段可能返回 null,表示取不到有效值。
1463
- :rtype: str
1464
- """
1465
- return self._Suggestion
1466
-
1467
- @Suggestion.setter
1468
- def Suggestion(self, Suggestion):
1469
- self._Suggestion = Suggestion
1470
-
1471
- @property
1472
- def KeywordSet(self):
1473
- """嫌疑关键词列表。
1474
- 注意:此字段可能返回 null,表示取不到有效值。
1475
- :rtype: list of str
1476
- """
1477
- return self._KeywordSet
1478
-
1479
- @KeywordSet.setter
1480
- def KeywordSet(self, KeywordSet):
1481
- self._KeywordSet = KeywordSet
1482
-
1483
-
1484
- def _deserialize(self, params):
1485
- self._StartTimeOffset = params.get("StartTimeOffset")
1486
- self._EndTimeOffset = params.get("EndTimeOffset")
1487
- self._Confidence = params.get("Confidence")
1488
- self._Suggestion = params.get("Suggestion")
1489
- self._KeywordSet = params.get("KeywordSet")
1490
- memeber_set = set(params.keys())
1491
- for name, value in vars(self).items():
1492
- property_name = name[1:]
1493
- if property_name in memeber_set:
1494
- memeber_set.remove(property_name)
1495
- if len(memeber_set) > 0:
1496
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1497
-
1498
-
1499
-
1500
- class VodAudioStreamItem(AbstractModel):
1501
- """文件音频流信息
1502
-
1503
- """
1504
-
1505
- def __init__(self):
1506
- r"""
1507
- :param _Bitrate: 音频流的码率,单位:bps。
1508
- 注意:此字段可能返回 null,表示取不到有效值。
1509
- :type Bitrate: int
1510
- :param _SamplingRate: 音频流的采样率,单位:hz。
1511
- 注意:此字段可能返回 null,表示取不到有效值。
1512
- :type SamplingRate: int
1513
- :param _Codec: 音频流的编码格式,例如 aac。
1514
- 注意:此字段可能返回 null,表示取不到有效值。
1515
- :type Codec: str
1516
- """
1517
- self._Bitrate = None
1518
- self._SamplingRate = None
1519
- self._Codec = None
1520
-
1521
- @property
1522
- def Bitrate(self):
1523
- """音频流的码率,单位:bps。
1524
- 注意:此字段可能返回 null,表示取不到有效值。
1525
- :rtype: int
1526
- """
1527
- return self._Bitrate
1528
-
1529
- @Bitrate.setter
1530
- def Bitrate(self, Bitrate):
1531
- self._Bitrate = Bitrate
1532
-
1533
- @property
1534
- def SamplingRate(self):
1535
- """音频流的采样率,单位:hz。
1536
- 注意:此字段可能返回 null,表示取不到有效值。
1537
- :rtype: int
1538
- """
1539
- return self._SamplingRate
1540
-
1541
- @SamplingRate.setter
1542
- def SamplingRate(self, SamplingRate):
1543
- self._SamplingRate = SamplingRate
1544
-
1545
- @property
1546
- def Codec(self):
1547
- """音频流的编码格式,例如 aac。
1548
- 注意:此字段可能返回 null,表示取不到有效值。
1549
- :rtype: str
1550
- """
1551
- return self._Codec
1552
-
1553
- @Codec.setter
1554
- def Codec(self, Codec):
1555
- self._Codec = Codec
1556
-
1557
-
1558
- def _deserialize(self, params):
1559
- self._Bitrate = params.get("Bitrate")
1560
- self._SamplingRate = params.get("SamplingRate")
1561
- self._Codec = params.get("Codec")
1562
- memeber_set = set(params.keys())
1563
- for name, value in vars(self).items():
1564
- property_name = name[1:]
1565
- if property_name in memeber_set:
1566
- memeber_set.remove(property_name)
1567
- if len(memeber_set) > 0:
1568
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1569
-
1570
-
1571
-
1572
- class VodMetaData(AbstractModel):
1573
- """媒体文件元信息。
1574
-
1575
- """
1576
-
1577
- def __init__(self):
1578
- r"""
1579
- :param _Size: 上传的媒体文件大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。
1580
- 注意:此字段可能返回 null,表示取不到有效值。
1581
- :type Size: int
1582
- :param _Container: 容器类型,例如 m4a,mp4 等。
1583
- 注意:此字段可能返回 null,表示取不到有效值。
1584
- :type Container: str
1585
- :param _Bitrate: 视频流码率平均值与音频流码率平均值之和,单位:bps。
1586
- 注意:此字段可能返回 null,表示取不到有效值。
1587
- :type Bitrate: int
1588
- :param _Height: 视频流高度的最大值,单位:px。
1589
- 注意:此字段可能返回 null,表示取不到有效值。
1590
- :type Height: int
1591
- :param _Width: 视频流宽度的最大值,单位:px。
1592
- 注意:此字段可能返回 null,表示取不到有效值。
1593
- :type Width: int
1594
- :param _Duration: 视频时长,单位:秒。
1595
- 注意:此字段可能返回 null,表示取不到有效值。
1596
- :type Duration: float
1597
- :param _Rotate: 视频拍摄时的选择角度,单位:度。
1598
- 注意:此字段可能返回 null,表示取不到有效值。
1599
- :type Rotate: int
1600
- :param _VideoStreamSet: 视频流信息。
1601
- 注意:此字段可能返回 null,表示取不到有效值。
1602
- :type VideoStreamSet: list of VodVideoStreamItem
1603
- :param _AudioStreamSet: 音频流信息。
1604
- 注意:此字段可能返回 null,表示取不到有效值。
1605
- :type AudioStreamSet: list of VodAudioStreamItem
1606
- :param _VideoDuration: 视频时长,单位:秒。
1607
- 注意:此字段可能返回 null,表示取不到有效值。
1608
- :type VideoDuration: float
1609
- :param _AudioDuration: 音频时长,单位:秒。
1610
- 注意:此字段可能返回 null,表示取不到有效值。
1611
- :type AudioDuration: float
1612
- """
1613
- self._Size = None
1614
- self._Container = None
1615
- self._Bitrate = None
1616
- self._Height = None
1617
- self._Width = None
1618
- self._Duration = None
1619
- self._Rotate = None
1620
- self._VideoStreamSet = None
1621
- self._AudioStreamSet = None
1622
- self._VideoDuration = None
1623
- self._AudioDuration = None
1624
-
1625
- @property
1626
- def Size(self):
1627
- """上传的媒体文件大小(视频为 HLS 时,大小是 m3u8 和 ts 文件大小的总和),单位:字节。
1628
- 注意:此字段可能返回 null,表示取不到有效值。
1629
- :rtype: int
1630
- """
1631
- return self._Size
1632
-
1633
- @Size.setter
1634
- def Size(self, Size):
1635
- self._Size = Size
1636
-
1637
- @property
1638
- def Container(self):
1639
- """容器类型,例如 m4a,mp4 等。
1640
- 注意:此字段可能返回 null,表示取不到有效值。
1641
- :rtype: str
1642
- """
1643
- return self._Container
1644
-
1645
- @Container.setter
1646
- def Container(self, Container):
1647
- self._Container = Container
1648
-
1649
- @property
1650
- def Bitrate(self):
1651
- """视频流码率平均值与音频流码率平均值之和,单位:bps。
1652
- 注意:此字段可能返回 null,表示取不到有效值。
1653
- :rtype: int
1654
- """
1655
- return self._Bitrate
1656
-
1657
- @Bitrate.setter
1658
- def Bitrate(self, Bitrate):
1659
- self._Bitrate = Bitrate
1660
-
1661
- @property
1662
- def Height(self):
1663
- """视频流高度的最大值,单位:px。
1664
- 注意:此字段可能返回 null,表示取不到有效值。
1665
- :rtype: int
1666
- """
1667
- return self._Height
1668
-
1669
- @Height.setter
1670
- def Height(self, Height):
1671
- self._Height = Height
1672
-
1673
- @property
1674
- def Width(self):
1675
- """视频流宽度的最大值,单位:px。
1676
- 注意:此字段可能返回 null,表示取不到有效值。
1677
- :rtype: int
1678
- """
1679
- return self._Width
1680
-
1681
- @Width.setter
1682
- def Width(self, Width):
1683
- self._Width = Width
1684
-
1685
- @property
1686
- def Duration(self):
1687
- """视频时长,单位:秒。
1688
- 注意:此字段可能返回 null,表示取不到有效值。
1689
- :rtype: float
1690
- """
1691
- return self._Duration
1692
-
1693
- @Duration.setter
1694
- def Duration(self, Duration):
1695
- self._Duration = Duration
1696
-
1697
- @property
1698
- def Rotate(self):
1699
- """视频拍摄时的选择角度,单位:度。
1700
- 注意:此字段可能返回 null,表示取不到有效值。
1701
- :rtype: int
1702
- """
1703
- return self._Rotate
1704
-
1705
- @Rotate.setter
1706
- def Rotate(self, Rotate):
1707
- self._Rotate = Rotate
1708
-
1709
- @property
1710
- def VideoStreamSet(self):
1711
- """视频流信息。
1712
- 注意:此字段可能返回 null,表示取不到有效值。
1713
- :rtype: list of VodVideoStreamItem
1714
- """
1715
- return self._VideoStreamSet
1716
-
1717
- @VideoStreamSet.setter
1718
- def VideoStreamSet(self, VideoStreamSet):
1719
- self._VideoStreamSet = VideoStreamSet
1720
-
1721
- @property
1722
- def AudioStreamSet(self):
1723
- """音频流信息。
1724
- 注意:此字段可能返回 null,表示取不到有效值。
1725
- :rtype: list of VodAudioStreamItem
1726
- """
1727
- return self._AudioStreamSet
1728
-
1729
- @AudioStreamSet.setter
1730
- def AudioStreamSet(self, AudioStreamSet):
1731
- self._AudioStreamSet = AudioStreamSet
1732
-
1733
- @property
1734
- def VideoDuration(self):
1735
- """视频时长,单位:秒。
1736
- 注意:此字段可能返回 null,表示取不到有效值。
1737
- :rtype: float
1738
- """
1739
- return self._VideoDuration
1740
-
1741
- @VideoDuration.setter
1742
- def VideoDuration(self, VideoDuration):
1743
- self._VideoDuration = VideoDuration
1744
-
1745
- @property
1746
- def AudioDuration(self):
1747
- """音频时长,单位:秒。
1748
- 注意:此字段可能返回 null,表示取不到有效值。
1749
- :rtype: float
1750
- """
1751
- return self._AudioDuration
1752
-
1753
- @AudioDuration.setter
1754
- def AudioDuration(self, AudioDuration):
1755
- self._AudioDuration = AudioDuration
1756
-
1757
-
1758
- def _deserialize(self, params):
1759
- self._Size = params.get("Size")
1760
- self._Container = params.get("Container")
1761
- self._Bitrate = params.get("Bitrate")
1762
- self._Height = params.get("Height")
1763
- self._Width = params.get("Width")
1764
- self._Duration = params.get("Duration")
1765
- self._Rotate = params.get("Rotate")
1766
- if params.get("VideoStreamSet") is not None:
1767
- self._VideoStreamSet = []
1768
- for item in params.get("VideoStreamSet"):
1769
- obj = VodVideoStreamItem()
1770
- obj._deserialize(item)
1771
- self._VideoStreamSet.append(obj)
1772
- if params.get("AudioStreamSet") is not None:
1773
- self._AudioStreamSet = []
1774
- for item in params.get("AudioStreamSet"):
1775
- obj = VodAudioStreamItem()
1776
- obj._deserialize(item)
1777
- self._AudioStreamSet.append(obj)
1778
- self._VideoDuration = params.get("VideoDuration")
1779
- self._AudioDuration = params.get("AudioDuration")
1780
- memeber_set = set(params.keys())
1781
- for name, value in vars(self).items():
1782
- property_name = name[1:]
1783
- if property_name in memeber_set:
1784
- memeber_set.remove(property_name)
1785
- if len(memeber_set) > 0:
1786
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1787
-
1788
-
1789
-
1790
- class VodOcrTextSegmentItem(AbstractModel):
1791
- """内容审核 Ocr 文字审核嫌疑片段
1792
-
1793
- """
1794
-
1795
- def __init__(self):
1796
- r"""
1797
- :param _StartTimeOffset: 嫌疑片段起始的偏移时间,单位:秒。
1798
- 注意:此字段可能返回 null,表示取不到有效值。
1799
- :type StartTimeOffset: float
1800
- :param _EndTimeOffset: 嫌疑片段结束的偏移时间,单位:秒。
1801
- 注意:此字段可能返回 null,表示取不到有效值。
1802
- :type EndTimeOffset: float
1803
- :param _Confidence: 嫌疑片段置信度。
1804
- 注意:此字段可能返回 null,表示取不到有效值。
1805
- :type Confidence: float
1806
- :param _Suggestion: 嫌疑片段审核结果建议,取值范围:
1807
- pass。
1808
- review。
1809
- block。
1810
-
1811
- 注意:此字段可能返回 null,表示取不到有效值。
1812
- :type Suggestion: str
1813
- :param _KeywordSet: 嫌疑关键词列表。
1814
- 注意:此字段可能返回 null,表示取不到有效值。
1815
- :type KeywordSet: list of str
1816
- :param _AreaCoordSet: 嫌疑文字出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
1817
- 注意:此字段可能返回 null,表示取不到有效值。
1818
- :type AreaCoordSet: list of int
1819
- """
1820
- self._StartTimeOffset = None
1821
- self._EndTimeOffset = None
1822
- self._Confidence = None
1823
- self._Suggestion = None
1824
- self._KeywordSet = None
1825
- self._AreaCoordSet = None
1826
-
1827
- @property
1828
- def StartTimeOffset(self):
1829
- """嫌疑片段起始的偏移时间,单位:秒。
1830
- 注意:此字段可能返回 null,表示取不到有效值。
1831
- :rtype: float
1832
- """
1833
- return self._StartTimeOffset
1834
-
1835
- @StartTimeOffset.setter
1836
- def StartTimeOffset(self, StartTimeOffset):
1837
- self._StartTimeOffset = StartTimeOffset
1838
-
1839
- @property
1840
- def EndTimeOffset(self):
1841
- """嫌疑片段结束的偏移时间,单位:秒。
1842
- 注意:此字段可能返回 null,表示取不到有效值。
1843
- :rtype: float
1844
- """
1845
- return self._EndTimeOffset
1846
-
1847
- @EndTimeOffset.setter
1848
- def EndTimeOffset(self, EndTimeOffset):
1849
- self._EndTimeOffset = EndTimeOffset
1850
-
1851
- @property
1852
- def Confidence(self):
1853
- """嫌疑片段置信度。
1854
- 注意:此字段可能返回 null,表示取不到有效值。
1855
- :rtype: float
1856
- """
1857
- return self._Confidence
1858
-
1859
- @Confidence.setter
1860
- def Confidence(self, Confidence):
1861
- self._Confidence = Confidence
1862
-
1863
- @property
1864
- def Suggestion(self):
1865
- """嫌疑片段审核结果建议,取值范围:
1866
- pass。
1867
- review。
1868
- block。
1869
-
1870
- 注意:此字段可能返回 null,表示取不到有效值。
1871
- :rtype: str
1872
- """
1873
- return self._Suggestion
1874
-
1875
- @Suggestion.setter
1876
- def Suggestion(self, Suggestion):
1877
- self._Suggestion = Suggestion
1878
-
1879
- @property
1880
- def KeywordSet(self):
1881
- """嫌疑关键词列表。
1882
- 注意:此字段可能返回 null,表示取不到有效值。
1883
- :rtype: list of str
1884
- """
1885
- return self._KeywordSet
1886
-
1887
- @KeywordSet.setter
1888
- def KeywordSet(self, KeywordSet):
1889
- self._KeywordSet = KeywordSet
1890
-
1891
- @property
1892
- def AreaCoordSet(self):
1893
- """嫌疑文字出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
1894
- 注意:此字段可能返回 null,表示取不到有效值。
1895
- :rtype: list of int
1896
- """
1897
- return self._AreaCoordSet
1898
-
1899
- @AreaCoordSet.setter
1900
- def AreaCoordSet(self, AreaCoordSet):
1901
- self._AreaCoordSet = AreaCoordSet
1902
-
1903
-
1904
- def _deserialize(self, params):
1905
- self._StartTimeOffset = params.get("StartTimeOffset")
1906
- self._EndTimeOffset = params.get("EndTimeOffset")
1907
- self._Confidence = params.get("Confidence")
1908
- self._Suggestion = params.get("Suggestion")
1909
- self._KeywordSet = params.get("KeywordSet")
1910
- self._AreaCoordSet = params.get("AreaCoordSet")
1911
- memeber_set = set(params.keys())
1912
- for name, value in vars(self).items():
1913
- property_name = name[1:]
1914
- if property_name in memeber_set:
1915
- memeber_set.remove(property_name)
1916
- if len(memeber_set) > 0:
1917
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
1918
-
1919
-
1920
-
1921
- class VodPoliticalAsrReviewResult(AbstractModel):
1922
- """内容审核 Asr 文字鉴政、敏感任务结果类型
1923
-
1924
- """
1925
-
1926
- def __init__(self):
1927
- r"""
1928
- :param _Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
1929
- :type Status: str
1930
- :param _Code: 错误码,0:成功,其他值:失败。
1931
- 注意:此字段可能返回 null,表示取不到有效值。
1932
- :type Code: int
1933
- :param _Msg: 错误信息。
1934
- 注意:此字段可能返回 null,表示取不到有效值。
1935
- :type Msg: str
1936
- :param _Confidence: 嫌疑片段审核结果建议,取值范围:
1937
- pass。
1938
- review。
1939
- block。
1940
-
1941
- Asr 文字涉政、敏感评分,分值为0到100。
1942
- 注意:此字段可能返回 null,表示取不到有效值。
1943
- :type Confidence: float
1944
- :param _Suggestion: Asr 文字涉政、敏感结果建议,取值范围:
1945
- pass。
1946
- review。
1947
- block。
1948
-
1949
- 注意:此字段可能返回 null,表示取不到有效值。
1950
- :type Suggestion: str
1951
- :param _SegmentSet: Asr 文字有涉政、敏感嫌疑的视频片段列表。
1952
- 注意:此字段可能返回 null,表示取不到有效值。
1953
- :type SegmentSet: list of VodAsrTextSegmentItem
1954
- """
1955
- self._Status = None
1956
- self._Code = None
1957
- self._Msg = None
1958
- self._Confidence = None
1959
- self._Suggestion = None
1960
- self._SegmentSet = None
1961
-
1962
- @property
1963
- def Status(self):
1964
- """任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
1965
- :rtype: str
1966
- """
1967
- return self._Status
1968
-
1969
- @Status.setter
1970
- def Status(self, Status):
1971
- self._Status = Status
1972
-
1973
- @property
1974
- def Code(self):
1975
- """错误码,0:成功,其他值:失败。
1976
- 注意:此字段可能返回 null,表示取不到有效值。
1977
- :rtype: int
1978
- """
1979
- return self._Code
1980
-
1981
- @Code.setter
1982
- def Code(self, Code):
1983
- self._Code = Code
1984
-
1985
- @property
1986
- def Msg(self):
1987
- """错误信息。
1988
- 注意:此字段可能返回 null,表示取不到有效值。
1989
- :rtype: str
1990
- """
1991
- return self._Msg
1992
-
1993
- @Msg.setter
1994
- def Msg(self, Msg):
1995
- self._Msg = Msg
1996
-
1997
- @property
1998
- def Confidence(self):
1999
- """嫌疑片段审核结果建议,取值范围:
2000
- pass。
2001
- review。
2002
- block。
2003
-
2004
- Asr 文字涉政、敏感评分,分值为0到100。
2005
- 注意:此字段可能返回 null,表示取不到有效值。
2006
- :rtype: float
2007
- """
2008
- return self._Confidence
2009
-
2010
- @Confidence.setter
2011
- def Confidence(self, Confidence):
2012
- self._Confidence = Confidence
2013
-
2014
- @property
2015
- def Suggestion(self):
2016
- """Asr 文字涉政、敏感结果建议,取值范围:
2017
- pass。
2018
- review。
2019
- block。
2020
-
2021
- 注意:此字段可能返回 null,表示取不到有效值。
2022
- :rtype: str
2023
- """
2024
- return self._Suggestion
2025
-
2026
- @Suggestion.setter
2027
- def Suggestion(self, Suggestion):
2028
- self._Suggestion = Suggestion
2029
-
2030
- @property
2031
- def SegmentSet(self):
2032
- """Asr 文字有涉政、敏感嫌疑的视频片段列表。
2033
- 注意:此字段可能返回 null,表示取不到有效值。
2034
- :rtype: list of VodAsrTextSegmentItem
2035
- """
2036
- return self._SegmentSet
2037
-
2038
- @SegmentSet.setter
2039
- def SegmentSet(self, SegmentSet):
2040
- self._SegmentSet = SegmentSet
2041
-
2042
-
2043
- def _deserialize(self, params):
2044
- self._Status = params.get("Status")
2045
- self._Code = params.get("Code")
2046
- self._Msg = params.get("Msg")
2047
- self._Confidence = params.get("Confidence")
2048
- self._Suggestion = params.get("Suggestion")
2049
- if params.get("SegmentSet") is not None:
2050
- self._SegmentSet = []
2051
- for item in params.get("SegmentSet"):
2052
- obj = VodAsrTextSegmentItem()
2053
- obj._deserialize(item)
2054
- self._SegmentSet.append(obj)
2055
- memeber_set = set(params.keys())
2056
- for name, value in vars(self).items():
2057
- property_name = name[1:]
2058
- if property_name in memeber_set:
2059
- memeber_set.remove(property_name)
2060
- if len(memeber_set) > 0:
2061
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2062
-
2063
-
2064
-
2065
- class VodPoliticalOcrReviewResult(AbstractModel):
2066
- """内容审核 Ocr 文字鉴政、敏感任务结果类型
2067
-
2068
- """
2069
-
2070
- def __init__(self):
2071
- r"""
2072
- :param _Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
2073
- :type Status: str
2074
- :param _Code: 错误码,0:成功,其他值:失败。
2075
- 注意:此字段可能返回 null,表示取不到有效值。
2076
- :type Code: int
2077
- :param _Msg: 错误信息。
2078
- 注意:此字段可能返回 null,表示取不到有效值。
2079
- :type Msg: str
2080
- :param _Confidence: Ocr 文字涉政、敏感评分,分值为0到100。
2081
- :type Confidence: float
2082
- :param _Suggestion: Ocr 文字涉政、敏感结果建议,取值范围:
2083
- pass。
2084
- review。
2085
- block。
2086
- :type Suggestion: str
2087
- :param _SegmentSet: Ocr 文字有涉政、敏感嫌疑的视频片段列表。
2088
- 注意:此字段可能返回 null,表示取不到有效值。
2089
- :type SegmentSet: list of VodOcrTextSegmentItem
2090
- """
2091
- self._Status = None
2092
- self._Code = None
2093
- self._Msg = None
2094
- self._Confidence = None
2095
- self._Suggestion = None
2096
- self._SegmentSet = None
2097
-
2098
- @property
2099
- def Status(self):
2100
- """任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
2101
- :rtype: str
2102
- """
2103
- return self._Status
2104
-
2105
- @Status.setter
2106
- def Status(self, Status):
2107
- self._Status = Status
2108
-
2109
- @property
2110
- def Code(self):
2111
- """错误码,0:成功,其他值:失败。
2112
- 注意:此字段可能返回 null,表示取不到有效值。
2113
- :rtype: int
2114
- """
2115
- return self._Code
2116
-
2117
- @Code.setter
2118
- def Code(self, Code):
2119
- self._Code = Code
2120
-
2121
- @property
2122
- def Msg(self):
2123
- """错误信息。
2124
- 注意:此字段可能返回 null,表示取不到有效值。
2125
- :rtype: str
2126
- """
2127
- return self._Msg
2128
-
2129
- @Msg.setter
2130
- def Msg(self, Msg):
2131
- self._Msg = Msg
2132
-
2133
- @property
2134
- def Confidence(self):
2135
- """Ocr 文字涉政、敏感评分,分值为0到100。
2136
- :rtype: float
2137
- """
2138
- return self._Confidence
2139
-
2140
- @Confidence.setter
2141
- def Confidence(self, Confidence):
2142
- self._Confidence = Confidence
2143
-
2144
- @property
2145
- def Suggestion(self):
2146
- """Ocr 文字涉政、敏感结果建议,取值范围:
2147
- pass。
2148
- review。
2149
- block。
2150
- :rtype: str
2151
- """
2152
- return self._Suggestion
2153
-
2154
- @Suggestion.setter
2155
- def Suggestion(self, Suggestion):
2156
- self._Suggestion = Suggestion
2157
-
2158
- @property
2159
- def SegmentSet(self):
2160
- """Ocr 文字有涉政、敏感嫌疑的视频片段列表。
2161
- 注意:此字段可能返回 null,表示取不到有效值。
2162
- :rtype: list of VodOcrTextSegmentItem
2163
- """
2164
- return self._SegmentSet
2165
-
2166
- @SegmentSet.setter
2167
- def SegmentSet(self, SegmentSet):
2168
- self._SegmentSet = SegmentSet
2169
-
2170
-
2171
- def _deserialize(self, params):
2172
- self._Status = params.get("Status")
2173
- self._Code = params.get("Code")
2174
- self._Msg = params.get("Msg")
2175
- self._Confidence = params.get("Confidence")
2176
- self._Suggestion = params.get("Suggestion")
2177
- if params.get("SegmentSet") is not None:
2178
- self._SegmentSet = []
2179
- for item in params.get("SegmentSet"):
2180
- obj = VodOcrTextSegmentItem()
2181
- obj._deserialize(item)
2182
- self._SegmentSet.append(obj)
2183
- memeber_set = set(params.keys())
2184
- for name, value in vars(self).items():
2185
- property_name = name[1:]
2186
- if property_name in memeber_set:
2187
- memeber_set.remove(property_name)
2188
- if len(memeber_set) > 0:
2189
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2190
-
2191
-
2192
-
2193
- class VodPoliticalReviewResult(AbstractModel):
2194
- """涉政信息
2195
-
2196
- """
2197
-
2198
- def __init__(self):
2199
- r"""
2200
- :param _Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
2201
- :type Status: str
2202
- :param _Code: 错误码,0:成功,其他值:失败。
2203
- 注意:此字段可能返回 null,表示取不到有效值。
2204
- :type Code: int
2205
- :param _Msg: 错误信息。
2206
- 注意:此字段可能返回 null,表示取不到有效值。
2207
- :type Msg: str
2208
- :param _Confidence: 视频涉政评分,分值为0到100。
2209
- 注意:此字段可能返回 null,表示取不到有效值。
2210
- :type Confidence: float
2211
- :param _Suggestion: 涉政结果建议,取值范围:
2212
- pass。
2213
- review。
2214
- block。
2215
-
2216
- 注意:此字段可能返回 null,表示取不到有效值。
2217
- :type Suggestion: str
2218
- :param _Label: 视频鉴政结果标签,取值范围:
2219
- politician:政治人物。
2220
- violation_photo:违规图标。
2221
-
2222
- 注意:此字段可能返回 null,表示取不到有效值。
2223
- :type Label: str
2224
- :param _SegmentSet: 有涉政嫌疑的视频片段列表。
2225
- 注意:此字段可能返回 null,表示取不到有效值。
2226
- :type SegmentSet: list of VodPoliticalReviewSegmentItem
2227
- """
2228
- self._Status = None
2229
- self._Code = None
2230
- self._Msg = None
2231
- self._Confidence = None
2232
- self._Suggestion = None
2233
- self._Label = None
2234
- self._SegmentSet = None
2235
-
2236
- @property
2237
- def Status(self):
2238
- """任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
2239
- :rtype: str
2240
- """
2241
- return self._Status
2242
-
2243
- @Status.setter
2244
- def Status(self, Status):
2245
- self._Status = Status
2246
-
2247
- @property
2248
- def Code(self):
2249
- """错误码,0:成功,其他值:失败。
2250
- 注意:此字段可能返回 null,表示取不到有效值。
2251
- :rtype: int
2252
- """
2253
- return self._Code
2254
-
2255
- @Code.setter
2256
- def Code(self, Code):
2257
- self._Code = Code
2258
-
2259
- @property
2260
- def Msg(self):
2261
- """错误信息。
2262
- 注意:此字段可能返回 null,表示取不到有效值。
2263
- :rtype: str
2264
- """
2265
- return self._Msg
2266
-
2267
- @Msg.setter
2268
- def Msg(self, Msg):
2269
- self._Msg = Msg
2270
-
2271
- @property
2272
- def Confidence(self):
2273
- """视频涉政评分,分值为0到100。
2274
- 注意:此字段可能返回 null,表示取不到有效值。
2275
- :rtype: float
2276
- """
2277
- return self._Confidence
2278
-
2279
- @Confidence.setter
2280
- def Confidence(self, Confidence):
2281
- self._Confidence = Confidence
2282
-
2283
- @property
2284
- def Suggestion(self):
2285
- """涉政结果建议,取值范围:
2286
- pass。
2287
- review。
2288
- block。
2289
-
2290
- 注意:此字段可能返回 null,表示取不到有效值。
2291
- :rtype: str
2292
- """
2293
- return self._Suggestion
2294
-
2295
- @Suggestion.setter
2296
- def Suggestion(self, Suggestion):
2297
- self._Suggestion = Suggestion
2298
-
2299
- @property
2300
- def Label(self):
2301
- """视频鉴政结果标签,取值范围:
2302
- politician:政治人物。
2303
- violation_photo:违规图标。
2304
-
2305
- 注意:此字段可能返回 null,表示取不到有效值。
2306
- :rtype: str
2307
- """
2308
- return self._Label
2309
-
2310
- @Label.setter
2311
- def Label(self, Label):
2312
- self._Label = Label
2313
-
2314
- @property
2315
- def SegmentSet(self):
2316
- """有涉政嫌疑的视频片段列表。
2317
- 注意:此字段可能返回 null,表示取不到有效值。
2318
- :rtype: list of VodPoliticalReviewSegmentItem
2319
- """
2320
- return self._SegmentSet
2321
-
2322
- @SegmentSet.setter
2323
- def SegmentSet(self, SegmentSet):
2324
- self._SegmentSet = SegmentSet
2325
-
2326
-
2327
- def _deserialize(self, params):
2328
- self._Status = params.get("Status")
2329
- self._Code = params.get("Code")
2330
- self._Msg = params.get("Msg")
2331
- self._Confidence = params.get("Confidence")
2332
- self._Suggestion = params.get("Suggestion")
2333
- self._Label = params.get("Label")
2334
- if params.get("SegmentSet") is not None:
2335
- self._SegmentSet = []
2336
- for item in params.get("SegmentSet"):
2337
- obj = VodPoliticalReviewSegmentItem()
2338
- obj._deserialize(item)
2339
- self._SegmentSet.append(obj)
2340
- memeber_set = set(params.keys())
2341
- for name, value in vars(self).items():
2342
- property_name = name[1:]
2343
- if property_name in memeber_set:
2344
- memeber_set.remove(property_name)
2345
- if len(memeber_set) > 0:
2346
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2347
-
2348
-
2349
-
2350
- class VodPoliticalReviewSegmentItem(AbstractModel):
2351
- """内容审核鉴政任务结果类型
2352
-
2353
- """
2354
-
2355
- def __init__(self):
2356
- r"""
2357
- :param _StartTimeOffset: 嫌疑片段起始的偏移时间,单位:秒。
2358
- 注意:此字段可能返回 null,表示取不到有效值。
2359
- :type StartTimeOffset: float
2360
- :param _EndTimeOffset: 嫌疑片段结束的偏移时间,单位:秒。
2361
- 注意:此字段可能返回 null,表示取不到有效值。
2362
- :type EndTimeOffset: float
2363
- :param _Confidence: 嫌疑片段涉政分数。
2364
- 注意:此字段可能返回 null,表示取不到有效值。
2365
- :type Confidence: float
2366
- :param _Suggestion: 嫌疑片段鉴政结果建议,取值范围:
2367
- pass。
2368
- review。
2369
- block。
2370
-
2371
- 注意:此字段可能返回 null,表示取不到有效值。
2372
- :type Suggestion: str
2373
- :param _Name: 涉政人物、违规图标名字。
2374
- 注意:此字段可能返回 null,表示取不到有效值。
2375
- :type Name: str
2376
- :param _Label: 嫌疑片段鉴政结果标签。
2377
- 注意:此字段可能返回 null,表示取不到有效值。
2378
- :type Label: str
2379
- :param _Url: 嫌疑图片 URL (图片不会永久存储,到达
2380
- PicUrlExpireTime 时间点后图片将被删除)。
2381
- 注意:此字段可能返回 null,表示取不到有效值。
2382
- :type Url: str
2383
- :param _PicUrlExpireTimeStamp: 嫌疑图片 URL 失效时间,使用 ISO 日期格式。
2384
- 注意:此字段可能返回 null,表示取不到有效值。
2385
- :type PicUrlExpireTimeStamp: int
2386
- :param _AreaCoordSet: 涉政人物、违规图标出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
2387
- 注意:此字段可能返回 null,表示取不到有效值。
2388
- :type AreaCoordSet: list of int
2389
- """
2390
- self._StartTimeOffset = None
2391
- self._EndTimeOffset = None
2392
- self._Confidence = None
2393
- self._Suggestion = None
2394
- self._Name = None
2395
- self._Label = None
2396
- self._Url = None
2397
- self._PicUrlExpireTimeStamp = None
2398
- self._AreaCoordSet = None
2399
-
2400
- @property
2401
- def StartTimeOffset(self):
2402
- """嫌疑片段起始的偏移时间,单位:秒。
2403
- 注意:此字段可能返回 null,表示取不到有效值。
2404
- :rtype: float
2405
- """
2406
- return self._StartTimeOffset
2407
-
2408
- @StartTimeOffset.setter
2409
- def StartTimeOffset(self, StartTimeOffset):
2410
- self._StartTimeOffset = StartTimeOffset
2411
-
2412
- @property
2413
- def EndTimeOffset(self):
2414
- """嫌疑片段结束的偏移时间,单位:秒。
2415
- 注意:此字段可能返回 null,表示取不到有效值。
2416
- :rtype: float
2417
- """
2418
- return self._EndTimeOffset
2419
-
2420
- @EndTimeOffset.setter
2421
- def EndTimeOffset(self, EndTimeOffset):
2422
- self._EndTimeOffset = EndTimeOffset
2423
-
2424
- @property
2425
- def Confidence(self):
2426
- """嫌疑片段涉政分数。
2427
- 注意:此字段可能返回 null,表示取不到有效值。
2428
- :rtype: float
2429
- """
2430
- return self._Confidence
2431
-
2432
- @Confidence.setter
2433
- def Confidence(self, Confidence):
2434
- self._Confidence = Confidence
2435
-
2436
- @property
2437
- def Suggestion(self):
2438
- """嫌疑片段鉴政结果建议,取值范围:
2439
- pass。
2440
- review。
2441
- block。
2442
-
2443
- 注意:此字段可能返回 null,表示取不到有效值。
2444
- :rtype: str
2445
- """
2446
- return self._Suggestion
2447
-
2448
- @Suggestion.setter
2449
- def Suggestion(self, Suggestion):
2450
- self._Suggestion = Suggestion
2451
-
2452
- @property
2453
- def Name(self):
2454
- """涉政人物、违规图标名字。
2455
- 注意:此字段可能返回 null,表示取不到有效值。
2456
- :rtype: str
2457
- """
2458
- return self._Name
2459
-
2460
- @Name.setter
2461
- def Name(self, Name):
2462
- self._Name = Name
2463
-
2464
- @property
2465
- def Label(self):
2466
- """嫌疑片段鉴政结果标签。
2467
- 注意:此字段可能返回 null,表示取不到有效值。
2468
- :rtype: str
2469
- """
2470
- return self._Label
2471
-
2472
- @Label.setter
2473
- def Label(self, Label):
2474
- self._Label = Label
2475
-
2476
- @property
2477
- def Url(self):
2478
- """嫌疑图片 URL (图片不会永久存储,到达
2479
- PicUrlExpireTime 时间点后图片将被删除)。
2480
- 注意:此字段可能返回 null,表示取不到有效值。
2481
- :rtype: str
2482
- """
2483
- return self._Url
2484
-
2485
- @Url.setter
2486
- def Url(self, Url):
2487
- self._Url = Url
2488
-
2489
- @property
2490
- def PicUrlExpireTimeStamp(self):
2491
- """嫌疑图片 URL 失效时间,使用 ISO 日期格式。
2492
- 注意:此字段可能返回 null,表示取不到有效值。
2493
- :rtype: int
2494
- """
2495
- return self._PicUrlExpireTimeStamp
2496
-
2497
- @PicUrlExpireTimeStamp.setter
2498
- def PicUrlExpireTimeStamp(self, PicUrlExpireTimeStamp):
2499
- self._PicUrlExpireTimeStamp = PicUrlExpireTimeStamp
2500
-
2501
- @property
2502
- def AreaCoordSet(self):
2503
- """涉政人物、违规图标出现的区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
2504
- 注意:此字段可能返回 null,表示取不到有效值。
2505
- :rtype: list of int
2506
- """
2507
- return self._AreaCoordSet
2508
-
2509
- @AreaCoordSet.setter
2510
- def AreaCoordSet(self, AreaCoordSet):
2511
- self._AreaCoordSet = AreaCoordSet
2512
-
2513
-
2514
- def _deserialize(self, params):
2515
- self._StartTimeOffset = params.get("StartTimeOffset")
2516
- self._EndTimeOffset = params.get("EndTimeOffset")
2517
- self._Confidence = params.get("Confidence")
2518
- self._Suggestion = params.get("Suggestion")
2519
- self._Name = params.get("Name")
2520
- self._Label = params.get("Label")
2521
- self._Url = params.get("Url")
2522
- self._PicUrlExpireTimeStamp = params.get("PicUrlExpireTimeStamp")
2523
- self._AreaCoordSet = params.get("AreaCoordSet")
2524
- memeber_set = set(params.keys())
2525
- for name, value in vars(self).items():
2526
- property_name = name[1:]
2527
- if property_name in memeber_set:
2528
- memeber_set.remove(property_name)
2529
- if len(memeber_set) > 0:
2530
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2531
-
2532
-
2533
-
2534
- class VodPornAsrReviewResult(AbstractModel):
2535
- """Asr 文字涉黄信息
2536
-
2537
- """
2538
-
2539
- def __init__(self):
2540
- r"""
2541
- :param _Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
2542
- :type Status: str
2543
- :param _Code: 错误码,0:成功,其他值:失败。
2544
- 注意:此字段可能返回 null,表示取不到有效值。
2545
- :type Code: int
2546
- :param _Msg: 错误信息。
2547
- 注意:此字段可能返回 null,表示取不到有效值。
2548
- :type Msg: str
2549
- :param _Confidence: Asr 文字涉黄评分,分值为0到100。
2550
- 注意:此字段可能返回 null,表示取不到有效值。
2551
- :type Confidence: float
2552
- :param _Suggestion: Asr 文字涉黄结果建议,取值范围:
2553
- pass。
2554
- review。
2555
- block。
2556
-
2557
- 注意:此字段可能返回 null,表示取不到有效值。
2558
- :type Suggestion: str
2559
- :param _SegmentSet: Asr 文字有涉黄嫌疑的视频片段列表。
2560
- 注意:此字段可能返回 null,表示取不到有效值。
2561
- :type SegmentSet: list of VodAsrTextSegmentItem
2562
- """
2563
- self._Status = None
2564
- self._Code = None
2565
- self._Msg = None
2566
- self._Confidence = None
2567
- self._Suggestion = None
2568
- self._SegmentSet = None
2569
-
2570
- @property
2571
- def Status(self):
2572
- """任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
2573
- :rtype: str
2574
- """
2575
- return self._Status
2576
-
2577
- @Status.setter
2578
- def Status(self, Status):
2579
- self._Status = Status
2580
-
2581
- @property
2582
- def Code(self):
2583
- """错误码,0:成功,其他值:失败。
2584
- 注意:此字段可能返回 null,表示取不到有效值。
2585
- :rtype: int
2586
- """
2587
- return self._Code
2588
-
2589
- @Code.setter
2590
- def Code(self, Code):
2591
- self._Code = Code
2592
-
2593
- @property
2594
- def Msg(self):
2595
- """错误信息。
2596
- 注意:此字段可能返回 null,表示取不到有效值。
2597
- :rtype: str
2598
- """
2599
- return self._Msg
2600
-
2601
- @Msg.setter
2602
- def Msg(self, Msg):
2603
- self._Msg = Msg
2604
-
2605
- @property
2606
- def Confidence(self):
2607
- """Asr 文字涉黄评分,分值为0到100。
2608
- 注意:此字段可能返回 null,表示取不到有效值。
2609
- :rtype: float
2610
- """
2611
- return self._Confidence
2612
-
2613
- @Confidence.setter
2614
- def Confidence(self, Confidence):
2615
- self._Confidence = Confidence
2616
-
2617
- @property
2618
- def Suggestion(self):
2619
- """Asr 文字涉黄结果建议,取值范围:
2620
- pass。
2621
- review。
2622
- block。
2623
-
2624
- 注意:此字段可能返回 null,表示取不到有效值。
2625
- :rtype: str
2626
- """
2627
- return self._Suggestion
2628
-
2629
- @Suggestion.setter
2630
- def Suggestion(self, Suggestion):
2631
- self._Suggestion = Suggestion
2632
-
2633
- @property
2634
- def SegmentSet(self):
2635
- """Asr 文字有涉黄嫌疑的视频片段列表。
2636
- 注意:此字段可能返回 null,表示取不到有效值。
2637
- :rtype: list of VodAsrTextSegmentItem
2638
- """
2639
- return self._SegmentSet
2640
-
2641
- @SegmentSet.setter
2642
- def SegmentSet(self, SegmentSet):
2643
- self._SegmentSet = SegmentSet
2644
-
2645
-
2646
- def _deserialize(self, params):
2647
- self._Status = params.get("Status")
2648
- self._Code = params.get("Code")
2649
- self._Msg = params.get("Msg")
2650
- self._Confidence = params.get("Confidence")
2651
- self._Suggestion = params.get("Suggestion")
2652
- if params.get("SegmentSet") is not None:
2653
- self._SegmentSet = []
2654
- for item in params.get("SegmentSet"):
2655
- obj = VodAsrTextSegmentItem()
2656
- obj._deserialize(item)
2657
- self._SegmentSet.append(obj)
2658
- memeber_set = set(params.keys())
2659
- for name, value in vars(self).items():
2660
- property_name = name[1:]
2661
- if property_name in memeber_set:
2662
- memeber_set.remove(property_name)
2663
- if len(memeber_set) > 0:
2664
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2665
-
2666
-
2667
-
2668
- class VodPornOcrResult(AbstractModel):
2669
- """内容审核 Ocr 文字鉴黄任务结果类型
2670
-
2671
- """
2672
-
2673
- def __init__(self):
2674
- r"""
2675
- :param _Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
2676
- :type Status: str
2677
- :param _Code: 错误码,0:成功,其他值:失败。
2678
- 注意:此字段可能返回 null,表示取不到有效值。
2679
- :type Code: int
2680
- :param _Msg: 错误信息。
2681
- 注意:此字段可能返回 null,表示取不到有效值。
2682
- :type Msg: str
2683
- :param _Confidence: Ocr 文字涉黄评分,分值为0到100。
2684
- 注意:此字段可能返回 null,表示取不到有效值。
2685
- :type Confidence: float
2686
- :param _Suggestion: Ocr 文字涉黄结果建议,取值范围:
2687
- pass。
2688
- review。
2689
- block。
2690
-
2691
- 注意:此字段可能返回 null,表示取不到有效值。
2692
- :type Suggestion: str
2693
- :param _SegmentSet: Ocr 文字有涉黄嫌疑的视频片段列表。
2694
- 注意:此字段可能返回 null,表示取不到有效值。
2695
- :type SegmentSet: list of VodOcrTextSegmentItem
2696
- """
2697
- self._Status = None
2698
- self._Code = None
2699
- self._Msg = None
2700
- self._Confidence = None
2701
- self._Suggestion = None
2702
- self._SegmentSet = None
2703
-
2704
- @property
2705
- def Status(self):
2706
- """任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
2707
- :rtype: str
2708
- """
2709
- return self._Status
2710
-
2711
- @Status.setter
2712
- def Status(self, Status):
2713
- self._Status = Status
2714
-
2715
- @property
2716
- def Code(self):
2717
- """错误码,0:成功,其他值:失败。
2718
- 注意:此字段可能返回 null,表示取不到有效值。
2719
- :rtype: int
2720
- """
2721
- return self._Code
2722
-
2723
- @Code.setter
2724
- def Code(self, Code):
2725
- self._Code = Code
2726
-
2727
- @property
2728
- def Msg(self):
2729
- """错误信息。
2730
- 注意:此字段可能返回 null,表示取不到有效值。
2731
- :rtype: str
2732
- """
2733
- return self._Msg
2734
-
2735
- @Msg.setter
2736
- def Msg(self, Msg):
2737
- self._Msg = Msg
2738
-
2739
- @property
2740
- def Confidence(self):
2741
- """Ocr 文字涉黄评分,分值为0到100。
2742
- 注意:此字段可能返回 null,表示取不到有效值。
2743
- :rtype: float
2744
- """
2745
- return self._Confidence
2746
-
2747
- @Confidence.setter
2748
- def Confidence(self, Confidence):
2749
- self._Confidence = Confidence
2750
-
2751
- @property
2752
- def Suggestion(self):
2753
- """Ocr 文字涉黄结果建议,取值范围:
2754
- pass。
2755
- review。
2756
- block。
2757
-
2758
- 注意:此字段可能返回 null,表示取不到有效值。
2759
- :rtype: str
2760
- """
2761
- return self._Suggestion
2762
-
2763
- @Suggestion.setter
2764
- def Suggestion(self, Suggestion):
2765
- self._Suggestion = Suggestion
2766
-
2767
- @property
2768
- def SegmentSet(self):
2769
- """Ocr 文字有涉黄嫌疑的视频片段列表。
2770
- 注意:此字段可能返回 null,表示取不到有效值。
2771
- :rtype: list of VodOcrTextSegmentItem
2772
- """
2773
- return self._SegmentSet
2774
-
2775
- @SegmentSet.setter
2776
- def SegmentSet(self, SegmentSet):
2777
- self._SegmentSet = SegmentSet
2778
-
2779
-
2780
- def _deserialize(self, params):
2781
- self._Status = params.get("Status")
2782
- self._Code = params.get("Code")
2783
- self._Msg = params.get("Msg")
2784
- self._Confidence = params.get("Confidence")
2785
- self._Suggestion = params.get("Suggestion")
2786
- if params.get("SegmentSet") is not None:
2787
- self._SegmentSet = []
2788
- for item in params.get("SegmentSet"):
2789
- obj = VodOcrTextSegmentItem()
2790
- obj._deserialize(item)
2791
- self._SegmentSet.append(obj)
2792
- memeber_set = set(params.keys())
2793
- for name, value in vars(self).items():
2794
- property_name = name[1:]
2795
- if property_name in memeber_set:
2796
- memeber_set.remove(property_name)
2797
- if len(memeber_set) > 0:
2798
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2799
-
2800
-
2801
-
2802
- class VodPornReviewResult(AbstractModel):
2803
- """内容审核鉴黄任务结果类型
2804
-
2805
- """
2806
-
2807
- def __init__(self):
2808
- r"""
2809
- :param _Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
2810
- :type Status: str
2811
- :param _Code: 错误码,0:成功,其他值:失败。
2812
- 注意:此字段可能返回 null,表示取不到有效值。
2813
- :type Code: int
2814
- :param _Msg: 错误信息。
2815
- 注意:此字段可能返回 null,表示取不到有效值。
2816
- :type Msg: str
2817
- :param _Confidence: 视频鉴黄评分,分值为0到100。
2818
- 注意:此字段可能返回 null,表示取不到有效值。
2819
- :type Confidence: float
2820
- :param _Suggestion: 鉴黄结果建议,取值范围:
2821
- pass。
2822
- review。
2823
- block。
2824
-
2825
- 注意:此字段可能返回 null,表示取不到有效值。
2826
- :type Suggestion: str
2827
- :param _Label: 视频鉴黄结果标签,取值范围:
2828
- porn:色情。
2829
- sexy:性感。
2830
- vulgar:低俗。
2831
- intimacy:亲密行为。
2832
-
2833
- 注意:此字段可能返回 null,表示取不到有效值。
2834
- :type Label: str
2835
- :param _SegmentSet: 有涉黄嫌疑的视频片段列表。
2836
- 注意:此字段可能返回 null,表示取不到有效值。
2837
- :type SegmentSet: list of VodPornReviewSegmentItem
2838
- """
2839
- self._Status = None
2840
- self._Code = None
2841
- self._Msg = None
2842
- self._Confidence = None
2843
- self._Suggestion = None
2844
- self._Label = None
2845
- self._SegmentSet = None
2846
-
2847
- @property
2848
- def Status(self):
2849
- """任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
2850
- :rtype: str
2851
- """
2852
- return self._Status
2853
-
2854
- @Status.setter
2855
- def Status(self, Status):
2856
- self._Status = Status
2857
-
2858
- @property
2859
- def Code(self):
2860
- """错误码,0:成功,其他值:失败。
2861
- 注意:此字段可能返回 null,表示取不到有效值。
2862
- :rtype: int
2863
- """
2864
- return self._Code
2865
-
2866
- @Code.setter
2867
- def Code(self, Code):
2868
- self._Code = Code
2869
-
2870
- @property
2871
- def Msg(self):
2872
- """错误信息。
2873
- 注意:此字段可能返回 null,表示取不到有效值。
2874
- :rtype: str
2875
- """
2876
- return self._Msg
2877
-
2878
- @Msg.setter
2879
- def Msg(self, Msg):
2880
- self._Msg = Msg
2881
-
2882
- @property
2883
- def Confidence(self):
2884
- """视频鉴黄评分,分值为0到100。
2885
- 注意:此字段可能返回 null,表示取不到有效值。
2886
- :rtype: float
2887
- """
2888
- return self._Confidence
2889
-
2890
- @Confidence.setter
2891
- def Confidence(self, Confidence):
2892
- self._Confidence = Confidence
2893
-
2894
- @property
2895
- def Suggestion(self):
2896
- """鉴黄结果建议,取值范围:
2897
- pass。
2898
- review。
2899
- block。
2900
-
2901
- 注意:此字段可能返回 null,表示取不到有效值。
2902
- :rtype: str
2903
- """
2904
- return self._Suggestion
2905
-
2906
- @Suggestion.setter
2907
- def Suggestion(self, Suggestion):
2908
- self._Suggestion = Suggestion
2909
-
2910
- @property
2911
- def Label(self):
2912
- """视频鉴黄结果标签,取值范围:
2913
- porn:色情。
2914
- sexy:性感。
2915
- vulgar:低俗。
2916
- intimacy:亲密行为。
2917
-
2918
- 注意:此字段可能返回 null,表示取不到有效值。
2919
- :rtype: str
2920
- """
2921
- return self._Label
2922
-
2923
- @Label.setter
2924
- def Label(self, Label):
2925
- self._Label = Label
2926
-
2927
- @property
2928
- def SegmentSet(self):
2929
- """有涉黄嫌疑的视频片段列表。
2930
- 注意:此字段可能返回 null,表示取不到有效值。
2931
- :rtype: list of VodPornReviewSegmentItem
2932
- """
2933
- return self._SegmentSet
2934
-
2935
- @SegmentSet.setter
2936
- def SegmentSet(self, SegmentSet):
2937
- self._SegmentSet = SegmentSet
2938
-
2939
-
2940
- def _deserialize(self, params):
2941
- self._Status = params.get("Status")
2942
- self._Code = params.get("Code")
2943
- self._Msg = params.get("Msg")
2944
- self._Confidence = params.get("Confidence")
2945
- self._Suggestion = params.get("Suggestion")
2946
- self._Label = params.get("Label")
2947
- if params.get("SegmentSet") is not None:
2948
- self._SegmentSet = []
2949
- for item in params.get("SegmentSet"):
2950
- obj = VodPornReviewSegmentItem()
2951
- obj._deserialize(item)
2952
- self._SegmentSet.append(obj)
2953
- memeber_set = set(params.keys())
2954
- for name, value in vars(self).items():
2955
- property_name = name[1:]
2956
- if property_name in memeber_set:
2957
- memeber_set.remove(property_name)
2958
- if len(memeber_set) > 0:
2959
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
2960
-
2961
-
2962
-
2963
- class VodPornReviewSegmentItem(AbstractModel):
2964
- """内容审核涉黄/暴恐嫌疑片段
2965
-
2966
- """
2967
-
2968
- def __init__(self):
2969
- r"""
2970
- :param _StartTimeOffset: 嫌疑片段起始的偏移时间,单位:秒。
2971
- 注意:此字段可能返回 null,表示取不到有效值。
2972
- :type StartTimeOffset: float
2973
- :param _EndTimeOffset: 嫌疑片段结束的偏移时间,单位:秒。
2974
- 注意:此字段可能返回 null,表示取不到有效值。
2975
- :type EndTimeOffset: float
2976
- :param _Confidence: 嫌疑片段涉黄分数。
2977
- 注意:此字段可能返回 null,表示取不到有效值。
2978
- :type Confidence: float
2979
- :param _Label: 嫌疑片段鉴黄结果标签。
2980
- 注意:此字段可能返回 null,表示取不到有效值。
2981
- :type Label: str
2982
- :param _Suggestion: 嫌疑片段鉴黄结果建议,取值范围:
2983
- pass。
2984
- review。
2985
- block。
2986
-
2987
- 注意:此字段可能返回 null,表示取不到有效值。
2988
- :type Suggestion: str
2989
- :param _Url: 嫌疑图片 URL (图片不会永久存储,到达
2990
- PicUrlExpireTime 时间点后图片将被删除)。
2991
- 注意:此字段可能返回 null,表示取不到有效值。
2992
- :type Url: str
2993
- :param _PicUrlExpireTimeStamp: 嫌疑图片 URL 失效时间,使用 ISO 日期格式。
2994
- 注意:此字段可能返回 null,表示取不到有效值。
2995
- :type PicUrlExpireTimeStamp: int
2996
- """
2997
- self._StartTimeOffset = None
2998
- self._EndTimeOffset = None
2999
- self._Confidence = None
3000
- self._Label = None
3001
- self._Suggestion = None
3002
- self._Url = None
3003
- self._PicUrlExpireTimeStamp = None
3004
-
3005
- @property
3006
- def StartTimeOffset(self):
3007
- """嫌疑片段起始的偏移时间,单位:秒。
3008
- 注意:此字段可能返回 null,表示取不到有效值。
3009
- :rtype: float
3010
- """
3011
- return self._StartTimeOffset
3012
-
3013
- @StartTimeOffset.setter
3014
- def StartTimeOffset(self, StartTimeOffset):
3015
- self._StartTimeOffset = StartTimeOffset
3016
-
3017
- @property
3018
- def EndTimeOffset(self):
3019
- """嫌疑片段结束的偏移时间,单位:秒。
3020
- 注意:此字段可能返回 null,表示取不到有效值。
3021
- :rtype: float
3022
- """
3023
- return self._EndTimeOffset
3024
-
3025
- @EndTimeOffset.setter
3026
- def EndTimeOffset(self, EndTimeOffset):
3027
- self._EndTimeOffset = EndTimeOffset
3028
-
3029
- @property
3030
- def Confidence(self):
3031
- """嫌疑片段涉黄分数。
3032
- 注意:此字段可能返回 null,表示取不到有效值。
3033
- :rtype: float
3034
- """
3035
- return self._Confidence
3036
-
3037
- @Confidence.setter
3038
- def Confidence(self, Confidence):
3039
- self._Confidence = Confidence
3040
-
3041
- @property
3042
- def Label(self):
3043
- """嫌疑片段鉴黄结果标签。
3044
- 注意:此字段可能返回 null,表示取不到有效值。
3045
- :rtype: str
3046
- """
3047
- return self._Label
3048
-
3049
- @Label.setter
3050
- def Label(self, Label):
3051
- self._Label = Label
3052
-
3053
- @property
3054
- def Suggestion(self):
3055
- """嫌疑片段鉴黄结果建议,取值范围:
3056
- pass。
3057
- review。
3058
- block。
3059
-
3060
- 注意:此字段可能返回 null,表示取不到有效值。
3061
- :rtype: str
3062
- """
3063
- return self._Suggestion
3064
-
3065
- @Suggestion.setter
3066
- def Suggestion(self, Suggestion):
3067
- self._Suggestion = Suggestion
3068
-
3069
- @property
3070
- def Url(self):
3071
- """嫌疑图片 URL (图片不会永久存储,到达
3072
- PicUrlExpireTime 时间点后图片将被删除)。
3073
- 注意:此字段可能返回 null,表示取不到有效值。
3074
- :rtype: str
3075
- """
3076
- return self._Url
3077
-
3078
- @Url.setter
3079
- def Url(self, Url):
3080
- self._Url = Url
3081
-
3082
- @property
3083
- def PicUrlExpireTimeStamp(self):
3084
- """嫌疑图片 URL 失效时间,使用 ISO 日期格式。
3085
- 注意:此字段可能返回 null,表示取不到有效值。
3086
- :rtype: int
3087
- """
3088
- return self._PicUrlExpireTimeStamp
3089
-
3090
- @PicUrlExpireTimeStamp.setter
3091
- def PicUrlExpireTimeStamp(self, PicUrlExpireTimeStamp):
3092
- self._PicUrlExpireTimeStamp = PicUrlExpireTimeStamp
3093
-
3094
-
3095
- def _deserialize(self, params):
3096
- self._StartTimeOffset = params.get("StartTimeOffset")
3097
- self._EndTimeOffset = params.get("EndTimeOffset")
3098
- self._Confidence = params.get("Confidence")
3099
- self._Label = params.get("Label")
3100
- self._Suggestion = params.get("Suggestion")
3101
- self._Url = params.get("Url")
3102
- self._PicUrlExpireTimeStamp = params.get("PicUrlExpireTimeStamp")
3103
- memeber_set = set(params.keys())
3104
- for name, value in vars(self).items():
3105
- property_name = name[1:]
3106
- if property_name in memeber_set:
3107
- memeber_set.remove(property_name)
3108
- if len(memeber_set) > 0:
3109
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3110
-
3111
-
3112
-
3113
- class VodTerrorismReviewResult(AbstractModel):
3114
- """暴恐信息
3115
-
3116
- """
3117
-
3118
- def __init__(self):
3119
- r"""
3120
- :param _Confidence: 视频暴恐评分,分值为0到100。
3121
- 注意:此字段可能返回 null,表示取不到有效值。
3122
- :type Confidence: float
3123
- :param _Suggestion: 暴恐结果建议,取值范围:
3124
- pass。
3125
- review。
3126
- block。
3127
-
3128
- 注意:此字段可能返回 null,表示取不到有效值。
3129
- :type Suggestion: str
3130
- :param _Label: 视频暴恐结果标签,取值范围:
3131
- guns:武器枪支。
3132
- crowd:人群聚集。
3133
- police:警察部队。
3134
- bloody:血腥画面。
3135
- banners:暴恐旗帜。
3136
- militant:武装分子。
3137
- explosion:爆炸火灾。
3138
- terrorists:暴恐人物。
3139
-
3140
- 注意:此字段可能返回 null,表示取不到有效值。
3141
- :type Label: str
3142
- :param _Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
3143
- :type Status: str
3144
- :param _Code: 错误码,0:成功,其他值:失败。
3145
- 注意:此字段可能返回 null,表示取不到有效值。
3146
- :type Code: int
3147
- :param _Msg: 错误信息。
3148
- 注意:此字段可能返回 null,表示取不到有效值。
3149
- :type Msg: str
3150
- :param _SegmentSet: 有暴恐嫌疑的视频片段列表。
3151
- 注意:此字段可能返回 null,表示取不到有效值。
3152
- :type SegmentSet: list of VodPornReviewSegmentItem
3153
- """
3154
- self._Confidence = None
3155
- self._Suggestion = None
3156
- self._Label = None
3157
- self._Status = None
3158
- self._Code = None
3159
- self._Msg = None
3160
- self._SegmentSet = None
3161
-
3162
- @property
3163
- def Confidence(self):
3164
- """视频暴恐评分,分值为0到100。
3165
- 注意:此字段可能返回 null,表示取不到有效值。
3166
- :rtype: float
3167
- """
3168
- return self._Confidence
3169
-
3170
- @Confidence.setter
3171
- def Confidence(self, Confidence):
3172
- self._Confidence = Confidence
3173
-
3174
- @property
3175
- def Suggestion(self):
3176
- """暴恐结果建议,取值范围:
3177
- pass。
3178
- review。
3179
- block。
3180
-
3181
- 注意:此字段可能返回 null,表示取不到有效值。
3182
- :rtype: str
3183
- """
3184
- return self._Suggestion
3185
-
3186
- @Suggestion.setter
3187
- def Suggestion(self, Suggestion):
3188
- self._Suggestion = Suggestion
3189
-
3190
- @property
3191
- def Label(self):
3192
- """视频暴恐结果标签,取值范围:
3193
- guns:武器枪支。
3194
- crowd:人群聚集。
3195
- police:警察部队。
3196
- bloody:血腥画面。
3197
- banners:暴恐旗帜。
3198
- militant:武装分子。
3199
- explosion:爆炸火灾。
3200
- terrorists:暴恐人物。
3201
-
3202
- 注意:此字段可能返回 null,表示取不到有效值。
3203
- :rtype: str
3204
- """
3205
- return self._Label
3206
-
3207
- @Label.setter
3208
- def Label(self, Label):
3209
- self._Label = Label
3210
-
3211
- @property
3212
- def Status(self):
3213
- """任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
3214
- :rtype: str
3215
- """
3216
- return self._Status
3217
-
3218
- @Status.setter
3219
- def Status(self, Status):
3220
- self._Status = Status
3221
-
3222
- @property
3223
- def Code(self):
3224
- """错误码,0:成功,其他值:失败。
3225
- 注意:此字段可能返回 null,表示取不到有效值。
3226
- :rtype: int
3227
- """
3228
- return self._Code
3229
-
3230
- @Code.setter
3231
- def Code(self, Code):
3232
- self._Code = Code
3233
-
3234
- @property
3235
- def Msg(self):
3236
- """错误信息。
3237
- 注意:此字段可能返回 null,表示取不到有效值。
3238
- :rtype: str
3239
- """
3240
- return self._Msg
3241
-
3242
- @Msg.setter
3243
- def Msg(self, Msg):
3244
- self._Msg = Msg
3245
-
3246
- @property
3247
- def SegmentSet(self):
3248
- """有暴恐嫌疑的视频片段列表。
3249
- 注意:此字段可能返回 null,表示取不到有效值。
3250
- :rtype: list of VodPornReviewSegmentItem
3251
- """
3252
- return self._SegmentSet
3253
-
3254
- @SegmentSet.setter
3255
- def SegmentSet(self, SegmentSet):
3256
- self._SegmentSet = SegmentSet
3257
-
3258
-
3259
- def _deserialize(self, params):
3260
- self._Confidence = params.get("Confidence")
3261
- self._Suggestion = params.get("Suggestion")
3262
- self._Label = params.get("Label")
3263
- self._Status = params.get("Status")
3264
- self._Code = params.get("Code")
3265
- self._Msg = params.get("Msg")
3266
- if params.get("SegmentSet") is not None:
3267
- self._SegmentSet = []
3268
- for item in params.get("SegmentSet"):
3269
- obj = VodPornReviewSegmentItem()
3270
- obj._deserialize(item)
3271
- self._SegmentSet.append(obj)
3272
- memeber_set = set(params.keys())
3273
- for name, value in vars(self).items():
3274
- property_name = name[1:]
3275
- if property_name in memeber_set:
3276
- memeber_set.remove(property_name)
3277
- if len(memeber_set) > 0:
3278
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3279
-
3280
-
3281
-
3282
- class VodVideoStreamItem(AbstractModel):
3283
- """文件视频流信息
3284
-
3285
- """
3286
-
3287
- def __init__(self):
3288
- r"""
3289
- :param _Bitrate: 视频流的码率,单位:bps。
3290
- 注意:此字段可能返回 null,表示取不到有效值。
3291
- :type Bitrate: int
3292
- :param _Height: 视频流的高度,单位:px。
3293
- 注意:此字段可能返回 null,表示取不到有效值。
3294
- :type Height: int
3295
- :param _Width: 视频流的宽度,单位:px。
3296
- 注意:此字段可能返回 null,表示取不到有效值。
3297
- :type Width: int
3298
- :param _Codec: 视频流的编码格式,例如 h264。
3299
- 注意:此字段可能返回 null,表示取不到有效值。
3300
- :type Codec: str
3301
- :param _Fps: 帧率,单位:hz。
3302
- 注意:此字段可能返回 null,表示取不到有效值。
3303
- :type Fps: int
3304
- """
3305
- self._Bitrate = None
3306
- self._Height = None
3307
- self._Width = None
3308
- self._Codec = None
3309
- self._Fps = None
3310
-
3311
- @property
3312
- def Bitrate(self):
3313
- """视频流的码率,单位:bps。
3314
- 注意:此字段可能返回 null,表示取不到有效值。
3315
- :rtype: int
3316
- """
3317
- return self._Bitrate
3318
-
3319
- @Bitrate.setter
3320
- def Bitrate(self, Bitrate):
3321
- self._Bitrate = Bitrate
3322
-
3323
- @property
3324
- def Height(self):
3325
- """视频流的高度,单位:px。
3326
- 注意:此字段可能返回 null,表示取不到有效值。
3327
- :rtype: int
3328
- """
3329
- return self._Height
3330
-
3331
- @Height.setter
3332
- def Height(self, Height):
3333
- self._Height = Height
3334
-
3335
- @property
3336
- def Width(self):
3337
- """视频流的宽度,单位:px。
3338
- 注意:此字段可能返回 null,表示取不到有效值。
3339
- :rtype: int
3340
- """
3341
- return self._Width
3342
-
3343
- @Width.setter
3344
- def Width(self, Width):
3345
- self._Width = Width
3346
-
3347
- @property
3348
- def Codec(self):
3349
- """视频流的编码格式,例如 h264。
3350
- 注意:此字段可能返回 null,表示取不到有效值。
3351
- :rtype: str
3352
- """
3353
- return self._Codec
3354
-
3355
- @Codec.setter
3356
- def Codec(self, Codec):
3357
- self._Codec = Codec
3358
-
3359
- @property
3360
- def Fps(self):
3361
- """帧率,单位:hz。
3362
- 注意:此字段可能返回 null,表示取不到有效值。
3363
- :rtype: int
3364
- """
3365
- return self._Fps
3366
-
3367
- @Fps.setter
3368
- def Fps(self, Fps):
3369
- self._Fps = Fps
3370
-
3371
-
3372
- def _deserialize(self, params):
3373
- self._Bitrate = params.get("Bitrate")
3374
- self._Height = params.get("Height")
3375
- self._Width = params.get("Width")
3376
- self._Codec = params.get("Codec")
3377
- self._Fps = params.get("Fps")
3378
- memeber_set = set(params.keys())
3379
- for name, value in vars(self).items():
3380
- property_name = name[1:]
3381
- if property_name in memeber_set:
3382
- memeber_set.remove(property_name)
3383
- if len(memeber_set) > 0:
3384
- warnings.warn("%s fileds are useless." % ",".join(memeber_set))
3385
-