tencentcloud-sdk-python-iotexplorer 3.0.1421__tar.gz → 3.0.1447__tar.gz
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.
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/setup.py +1 -1
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/tencentcloud/iotexplorer/v20190423/errorcodes.py +12 -0
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/tencentcloud/iotexplorer/v20190423/models.py +316 -4
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/tencentcloud_sdk_python_iotexplorer.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-iotexplorer-3.0.1447/tencentcloud_sdk_python_iotexplorer.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-iotexplorer-3.0.1421/tencentcloud_sdk_python_iotexplorer.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/README.rst +0 -0
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/setup.cfg +0 -0
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/tencentcloud/iotexplorer/__init__.py +0 -0
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/tencentcloud/iotexplorer/v20190423/__init__.py +0 -0
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/tencentcloud/iotexplorer/v20190423/iotexplorer_client.py +0 -0
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/tencentcloud_sdk_python_iotexplorer.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/tencentcloud_sdk_python_iotexplorer.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-iotexplorer-3.0.1421 → tencentcloud-sdk-python-iotexplorer-3.0.1447}/tencentcloud_sdk_python_iotexplorer.egg-info/top_level.txt +0 -0
|
@@ -8,7 +8,7 @@ ROOT = os.path.dirname(__file__)
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name='tencentcloud-sdk-python-iotexplorer',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.0.1447,<4.0.0"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Iotexplorer SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -77,9 +77,15 @@ FAILEDOPERATION_RULEALREADYENABLED = 'FailedOperation.RuleAlreadyEnabled'
|
|
|
77
77
|
# 部分产品已经被绑定。
|
|
78
78
|
FAILEDOPERATION_SOMEPRODUCTISALREADYBINDED = 'FailedOperation.SomeProductIsAlreadyBinded'
|
|
79
79
|
|
|
80
|
+
# 目标设备存在启用状态的 TWeSee 配置
|
|
81
|
+
FAILEDOPERATION_TARGETDEVICEHASENABLEDWESEECONFIG = 'FailedOperation.TargetDeviceHasEnabledWeSeeConfig'
|
|
82
|
+
|
|
80
83
|
# 超过时间。
|
|
81
84
|
FAILEDOPERATION_TIMEOUT = 'FailedOperation.Timeout'
|
|
82
85
|
|
|
86
|
+
# 未开通 TWeSee 后付费服务
|
|
87
|
+
FAILEDOPERATION_WESEESERVICENOTENABLED = 'FailedOperation.WeSeeServiceNotEnabled'
|
|
88
|
+
|
|
83
89
|
# 内部错误。
|
|
84
90
|
INTERNALERROR = 'InternalError'
|
|
85
91
|
|
|
@@ -458,12 +464,18 @@ RESOURCENOTFOUND_TOPICPOLICYNOTEXIST = 'ResourceNotFound.TopicPolicyNotExist'
|
|
|
458
464
|
# 规则不存在。
|
|
459
465
|
RESOURCENOTFOUND_TOPICRULENOTEXIST = 'ResourceNotFound.TopicRuleNotExist'
|
|
460
466
|
|
|
467
|
+
# TWeSee 后付费资源已隔离
|
|
468
|
+
RESOURCEUNAVAILABLE_WESEESERVICEISOLATED = 'ResourceUnavailable.WeSeeServiceIsolated'
|
|
469
|
+
|
|
461
470
|
# 未授权操作。
|
|
462
471
|
UNAUTHORIZEDOPERATION = 'UnauthorizedOperation'
|
|
463
472
|
|
|
464
473
|
# APP对产品没有权限。
|
|
465
474
|
UNAUTHORIZEDOPERATION_APPNOPERMISSIONTOSTUDIOPRODUCT = 'UnauthorizedOperation.APPNoPermissionToStudioProduct'
|
|
466
475
|
|
|
476
|
+
# 该账号未在白名单内,不能通过 API 创建 AI 任务
|
|
477
|
+
UNAUTHORIZEDOPERATION_APICREATEAITASKNOTINWHITELIST = 'UnauthorizedOperation.ApiCreateAITaskNotInWhitelist'
|
|
478
|
+
|
|
467
479
|
# App无权限。
|
|
468
480
|
UNAUTHORIZEDOPERATION_APPNOPERMISSION = 'UnauthorizedOperation.AppNoPermission'
|
|
469
481
|
|
|
@@ -5869,6 +5869,14 @@ class CreateTWeSeeRecognitionTaskRequest(AbstractModel):
|
|
|
5869
5869
|
- `minutely`:分钟级(默认值)
|
|
5870
5870
|
- `immediate`:立即
|
|
5871
5871
|
:type SummaryQOS: str
|
|
5872
|
+
:param _SummaryConfig: 摘要输出配置
|
|
5873
|
+
:type SummaryConfig: :class:`tencentcloud.iotexplorer.v20190423.models.VisionSummaryConfig`
|
|
5874
|
+
:param _ServiceType: 算法类型,可能取值:
|
|
5875
|
+
- `Summary`:视频/图片摘要
|
|
5876
|
+
- `ObjectDetect`:目标检测
|
|
5877
|
+
:type ServiceType: str
|
|
5878
|
+
:param _ObjectDetectConfig: 目标检测配置
|
|
5879
|
+
:type ObjectDetectConfig: :class:`tencentcloud.iotexplorer.v20190423.models.VisionObjectDetectConfig`
|
|
5872
5880
|
"""
|
|
5873
5881
|
self._ProductId = None
|
|
5874
5882
|
self._DeviceName = None
|
|
@@ -5881,6 +5889,9 @@ class CreateTWeSeeRecognitionTaskRequest(AbstractModel):
|
|
|
5881
5889
|
self._IsCustomDevice = None
|
|
5882
5890
|
self._InputType = None
|
|
5883
5891
|
self._SummaryQOS = None
|
|
5892
|
+
self._SummaryConfig = None
|
|
5893
|
+
self._ServiceType = None
|
|
5894
|
+
self._ObjectDetectConfig = None
|
|
5884
5895
|
|
|
5885
5896
|
@property
|
|
5886
5897
|
def ProductId(self):
|
|
@@ -6009,6 +6020,41 @@ class CreateTWeSeeRecognitionTaskRequest(AbstractModel):
|
|
|
6009
6020
|
def SummaryQOS(self, SummaryQOS):
|
|
6010
6021
|
self._SummaryQOS = SummaryQOS
|
|
6011
6022
|
|
|
6023
|
+
@property
|
|
6024
|
+
def SummaryConfig(self):
|
|
6025
|
+
"""摘要输出配置
|
|
6026
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.VisionSummaryConfig`
|
|
6027
|
+
"""
|
|
6028
|
+
return self._SummaryConfig
|
|
6029
|
+
|
|
6030
|
+
@SummaryConfig.setter
|
|
6031
|
+
def SummaryConfig(self, SummaryConfig):
|
|
6032
|
+
self._SummaryConfig = SummaryConfig
|
|
6033
|
+
|
|
6034
|
+
@property
|
|
6035
|
+
def ServiceType(self):
|
|
6036
|
+
"""算法类型,可能取值:
|
|
6037
|
+
- `Summary`:视频/图片摘要
|
|
6038
|
+
- `ObjectDetect`:目标检测
|
|
6039
|
+
:rtype: str
|
|
6040
|
+
"""
|
|
6041
|
+
return self._ServiceType
|
|
6042
|
+
|
|
6043
|
+
@ServiceType.setter
|
|
6044
|
+
def ServiceType(self, ServiceType):
|
|
6045
|
+
self._ServiceType = ServiceType
|
|
6046
|
+
|
|
6047
|
+
@property
|
|
6048
|
+
def ObjectDetectConfig(self):
|
|
6049
|
+
"""目标检测配置
|
|
6050
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.VisionObjectDetectConfig`
|
|
6051
|
+
"""
|
|
6052
|
+
return self._ObjectDetectConfig
|
|
6053
|
+
|
|
6054
|
+
@ObjectDetectConfig.setter
|
|
6055
|
+
def ObjectDetectConfig(self, ObjectDetectConfig):
|
|
6056
|
+
self._ObjectDetectConfig = ObjectDetectConfig
|
|
6057
|
+
|
|
6012
6058
|
|
|
6013
6059
|
def _deserialize(self, params):
|
|
6014
6060
|
self._ProductId = params.get("ProductId")
|
|
@@ -6022,6 +6068,13 @@ class CreateTWeSeeRecognitionTaskRequest(AbstractModel):
|
|
|
6022
6068
|
self._IsCustomDevice = params.get("IsCustomDevice")
|
|
6023
6069
|
self._InputType = params.get("InputType")
|
|
6024
6070
|
self._SummaryQOS = params.get("SummaryQOS")
|
|
6071
|
+
if params.get("SummaryConfig") is not None:
|
|
6072
|
+
self._SummaryConfig = VisionSummaryConfig()
|
|
6073
|
+
self._SummaryConfig._deserialize(params.get("SummaryConfig"))
|
|
6074
|
+
self._ServiceType = params.get("ServiceType")
|
|
6075
|
+
if params.get("ObjectDetectConfig") is not None:
|
|
6076
|
+
self._ObjectDetectConfig = VisionObjectDetectConfig()
|
|
6077
|
+
self._ObjectDetectConfig._deserialize(params.get("ObjectDetectConfig"))
|
|
6025
6078
|
memeber_set = set(params.keys())
|
|
6026
6079
|
for name, value in vars(self).items():
|
|
6027
6080
|
property_name = name[1:]
|
|
@@ -21158,6 +21211,14 @@ class InvokeTWeSeeRecognitionTaskRequest(AbstractModel):
|
|
|
21158
21211
|
- `minutely`:分钟级(默认值)
|
|
21159
21212
|
- `immediate`:立即
|
|
21160
21213
|
:type SummaryQOS: str
|
|
21214
|
+
:param _SummaryConfig: 摘要输出配置
|
|
21215
|
+
:type SummaryConfig: :class:`tencentcloud.iotexplorer.v20190423.models.VisionSummaryConfig`
|
|
21216
|
+
:param _ServiceType: 算法类型,可能取值:
|
|
21217
|
+
- `Summary`:视频/图片摘要
|
|
21218
|
+
- `ObjectDetect`:目标检测
|
|
21219
|
+
:type ServiceType: str
|
|
21220
|
+
:param _ObjectDetectConfig: 目标检测配置
|
|
21221
|
+
:type ObjectDetectConfig: :class:`tencentcloud.iotexplorer.v20190423.models.VisionObjectDetectConfig`
|
|
21161
21222
|
"""
|
|
21162
21223
|
self._ProductId = None
|
|
21163
21224
|
self._DeviceName = None
|
|
@@ -21170,6 +21231,9 @@ class InvokeTWeSeeRecognitionTaskRequest(AbstractModel):
|
|
|
21170
21231
|
self._IsCustomDevice = None
|
|
21171
21232
|
self._InputType = None
|
|
21172
21233
|
self._SummaryQOS = None
|
|
21234
|
+
self._SummaryConfig = None
|
|
21235
|
+
self._ServiceType = None
|
|
21236
|
+
self._ObjectDetectConfig = None
|
|
21173
21237
|
|
|
21174
21238
|
@property
|
|
21175
21239
|
def ProductId(self):
|
|
@@ -21298,6 +21362,41 @@ class InvokeTWeSeeRecognitionTaskRequest(AbstractModel):
|
|
|
21298
21362
|
def SummaryQOS(self, SummaryQOS):
|
|
21299
21363
|
self._SummaryQOS = SummaryQOS
|
|
21300
21364
|
|
|
21365
|
+
@property
|
|
21366
|
+
def SummaryConfig(self):
|
|
21367
|
+
"""摘要输出配置
|
|
21368
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.VisionSummaryConfig`
|
|
21369
|
+
"""
|
|
21370
|
+
return self._SummaryConfig
|
|
21371
|
+
|
|
21372
|
+
@SummaryConfig.setter
|
|
21373
|
+
def SummaryConfig(self, SummaryConfig):
|
|
21374
|
+
self._SummaryConfig = SummaryConfig
|
|
21375
|
+
|
|
21376
|
+
@property
|
|
21377
|
+
def ServiceType(self):
|
|
21378
|
+
"""算法类型,可能取值:
|
|
21379
|
+
- `Summary`:视频/图片摘要
|
|
21380
|
+
- `ObjectDetect`:目标检测
|
|
21381
|
+
:rtype: str
|
|
21382
|
+
"""
|
|
21383
|
+
return self._ServiceType
|
|
21384
|
+
|
|
21385
|
+
@ServiceType.setter
|
|
21386
|
+
def ServiceType(self, ServiceType):
|
|
21387
|
+
self._ServiceType = ServiceType
|
|
21388
|
+
|
|
21389
|
+
@property
|
|
21390
|
+
def ObjectDetectConfig(self):
|
|
21391
|
+
"""目标检测配置
|
|
21392
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.VisionObjectDetectConfig`
|
|
21393
|
+
"""
|
|
21394
|
+
return self._ObjectDetectConfig
|
|
21395
|
+
|
|
21396
|
+
@ObjectDetectConfig.setter
|
|
21397
|
+
def ObjectDetectConfig(self, ObjectDetectConfig):
|
|
21398
|
+
self._ObjectDetectConfig = ObjectDetectConfig
|
|
21399
|
+
|
|
21301
21400
|
|
|
21302
21401
|
def _deserialize(self, params):
|
|
21303
21402
|
self._ProductId = params.get("ProductId")
|
|
@@ -21311,6 +21410,13 @@ class InvokeTWeSeeRecognitionTaskRequest(AbstractModel):
|
|
|
21311
21410
|
self._IsCustomDevice = params.get("IsCustomDevice")
|
|
21312
21411
|
self._InputType = params.get("InputType")
|
|
21313
21412
|
self._SummaryQOS = params.get("SummaryQOS")
|
|
21413
|
+
if params.get("SummaryConfig") is not None:
|
|
21414
|
+
self._SummaryConfig = VisionSummaryConfig()
|
|
21415
|
+
self._SummaryConfig._deserialize(params.get("SummaryConfig"))
|
|
21416
|
+
self._ServiceType = params.get("ServiceType")
|
|
21417
|
+
if params.get("ObjectDetectConfig") is not None:
|
|
21418
|
+
self._ObjectDetectConfig = VisionObjectDetectConfig()
|
|
21419
|
+
self._ObjectDetectConfig._deserialize(params.get("ObjectDetectConfig"))
|
|
21314
21420
|
memeber_set = set(params.keys())
|
|
21315
21421
|
for name, value in vars(self).items():
|
|
21316
21422
|
property_name = name[1:]
|
|
@@ -24750,6 +24856,8 @@ class ModifyTWeSeeConfigRequest(AbstractModel):
|
|
|
24750
24856
|
:type EnableSearch: bool
|
|
24751
24857
|
:param _Config: 配置参数,不传则不修改
|
|
24752
24858
|
:type Config: str
|
|
24859
|
+
:param _SummaryConfig: 视频摘要配置参数,不传则不修改
|
|
24860
|
+
:type SummaryConfig: :class:`tencentcloud.iotexplorer.v20190423.models.VisionSummaryConfig`
|
|
24753
24861
|
"""
|
|
24754
24862
|
self._ProductId = None
|
|
24755
24863
|
self._DeviceName = None
|
|
@@ -24758,6 +24866,7 @@ class ModifyTWeSeeConfigRequest(AbstractModel):
|
|
|
24758
24866
|
self._EnableSummary = None
|
|
24759
24867
|
self._EnableSearch = None
|
|
24760
24868
|
self._Config = None
|
|
24869
|
+
self._SummaryConfig = None
|
|
24761
24870
|
|
|
24762
24871
|
@property
|
|
24763
24872
|
def ProductId(self):
|
|
@@ -24836,6 +24945,17 @@ class ModifyTWeSeeConfigRequest(AbstractModel):
|
|
|
24836
24945
|
def Config(self, Config):
|
|
24837
24946
|
self._Config = Config
|
|
24838
24947
|
|
|
24948
|
+
@property
|
|
24949
|
+
def SummaryConfig(self):
|
|
24950
|
+
"""视频摘要配置参数,不传则不修改
|
|
24951
|
+
:rtype: :class:`tencentcloud.iotexplorer.v20190423.models.VisionSummaryConfig`
|
|
24952
|
+
"""
|
|
24953
|
+
return self._SummaryConfig
|
|
24954
|
+
|
|
24955
|
+
@SummaryConfig.setter
|
|
24956
|
+
def SummaryConfig(self, SummaryConfig):
|
|
24957
|
+
self._SummaryConfig = SummaryConfig
|
|
24958
|
+
|
|
24839
24959
|
|
|
24840
24960
|
def _deserialize(self, params):
|
|
24841
24961
|
self._ProductId = params.get("ProductId")
|
|
@@ -24845,6 +24965,9 @@ class ModifyTWeSeeConfigRequest(AbstractModel):
|
|
|
24845
24965
|
self._EnableSummary = params.get("EnableSummary")
|
|
24846
24966
|
self._EnableSearch = params.get("EnableSearch")
|
|
24847
24967
|
self._Config = params.get("Config")
|
|
24968
|
+
if params.get("SummaryConfig") is not None:
|
|
24969
|
+
self._SummaryConfig = VisionSummaryConfig()
|
|
24970
|
+
self._SummaryConfig._deserialize(params.get("SummaryConfig"))
|
|
24848
24971
|
memeber_set = set(params.keys())
|
|
24849
24972
|
for name, value in vars(self).items():
|
|
24850
24973
|
property_name = name[1:]
|
|
@@ -30414,6 +30537,46 @@ class VideoLicenseEntity(AbstractModel):
|
|
|
30414
30537
|
|
|
30415
30538
|
|
|
30416
30539
|
|
|
30540
|
+
class VisionObjectDetectConfig(AbstractModel):
|
|
30541
|
+
"""目标检测配置
|
|
30542
|
+
|
|
30543
|
+
"""
|
|
30544
|
+
|
|
30545
|
+
def __init__(self):
|
|
30546
|
+
r"""
|
|
30547
|
+
:param _DetectTypes: 检测类别,可选值:
|
|
30548
|
+
- `adult`:成年人
|
|
30549
|
+
- `child`:儿童
|
|
30550
|
+
:type DetectTypes: list of str
|
|
30551
|
+
"""
|
|
30552
|
+
self._DetectTypes = None
|
|
30553
|
+
|
|
30554
|
+
@property
|
|
30555
|
+
def DetectTypes(self):
|
|
30556
|
+
"""检测类别,可选值:
|
|
30557
|
+
- `adult`:成年人
|
|
30558
|
+
- `child`:儿童
|
|
30559
|
+
:rtype: list of str
|
|
30560
|
+
"""
|
|
30561
|
+
return self._DetectTypes
|
|
30562
|
+
|
|
30563
|
+
@DetectTypes.setter
|
|
30564
|
+
def DetectTypes(self, DetectTypes):
|
|
30565
|
+
self._DetectTypes = DetectTypes
|
|
30566
|
+
|
|
30567
|
+
|
|
30568
|
+
def _deserialize(self, params):
|
|
30569
|
+
self._DetectTypes = params.get("DetectTypes")
|
|
30570
|
+
memeber_set = set(params.keys())
|
|
30571
|
+
for name, value in vars(self).items():
|
|
30572
|
+
property_name = name[1:]
|
|
30573
|
+
if property_name in memeber_set:
|
|
30574
|
+
memeber_set.remove(property_name)
|
|
30575
|
+
if len(memeber_set) > 0:
|
|
30576
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30577
|
+
|
|
30578
|
+
|
|
30579
|
+
|
|
30417
30580
|
class VisionRecognitionResult(AbstractModel):
|
|
30418
30581
|
"""TWeSee 语义理解结果
|
|
30419
30582
|
|
|
@@ -30421,7 +30584,7 @@ class VisionRecognitionResult(AbstractModel):
|
|
|
30421
30584
|
|
|
30422
30585
|
def __init__(self):
|
|
30423
30586
|
r"""
|
|
30424
|
-
:param _Status: 任务状态(1:分析失败;2:下载/读取视频/图片失败;3
|
|
30587
|
+
:param _Status: 任务状态(1:分析失败;2:下载/读取视频/图片失败;3:成功;4:执行中)
|
|
30425
30588
|
:type Status: int
|
|
30426
30589
|
:param _DetectedClassifications: 识别到的目标类型。可能取值:
|
|
30427
30590
|
|
|
@@ -30433,21 +30596,26 @@ class VisionRecognitionResult(AbstractModel):
|
|
|
30433
30596
|
- `smoke`:烟雾
|
|
30434
30597
|
- `package`:快递包裹
|
|
30435
30598
|
- `license_plate`:车牌
|
|
30436
|
-
|
|
30437
30599
|
:type DetectedClassifications: list of str
|
|
30438
30600
|
:param _Summary: 摘要文本
|
|
30439
30601
|
:type Summary: str
|
|
30440
30602
|
:param _AlternativeSummary: 摘要文本(次选语言)
|
|
30441
30603
|
:type AlternativeSummary: str
|
|
30604
|
+
:param _ErrorCode: 错误码,可能取值:
|
|
30605
|
+
|
|
30606
|
+
- `DownloadFailed`:下载视频/图片文件失败
|
|
30607
|
+
- `ReadFailed`:读取视频/图片文件失败
|
|
30608
|
+
:type ErrorCode: str
|
|
30442
30609
|
"""
|
|
30443
30610
|
self._Status = None
|
|
30444
30611
|
self._DetectedClassifications = None
|
|
30445
30612
|
self._Summary = None
|
|
30446
30613
|
self._AlternativeSummary = None
|
|
30614
|
+
self._ErrorCode = None
|
|
30447
30615
|
|
|
30448
30616
|
@property
|
|
30449
30617
|
def Status(self):
|
|
30450
|
-
"""任务状态(1:分析失败;2:下载/读取视频/图片失败;3
|
|
30618
|
+
"""任务状态(1:分析失败;2:下载/读取视频/图片失败;3:成功;4:执行中)
|
|
30451
30619
|
:rtype: int
|
|
30452
30620
|
"""
|
|
30453
30621
|
return self._Status
|
|
@@ -30468,7 +30636,6 @@ class VisionRecognitionResult(AbstractModel):
|
|
|
30468
30636
|
- `smoke`:烟雾
|
|
30469
30637
|
- `package`:快递包裹
|
|
30470
30638
|
- `license_plate`:车牌
|
|
30471
|
-
|
|
30472
30639
|
:rtype: list of str
|
|
30473
30640
|
"""
|
|
30474
30641
|
return self._DetectedClassifications
|
|
@@ -30499,12 +30666,157 @@ class VisionRecognitionResult(AbstractModel):
|
|
|
30499
30666
|
def AlternativeSummary(self, AlternativeSummary):
|
|
30500
30667
|
self._AlternativeSummary = AlternativeSummary
|
|
30501
30668
|
|
|
30669
|
+
@property
|
|
30670
|
+
def ErrorCode(self):
|
|
30671
|
+
"""错误码,可能取值:
|
|
30672
|
+
|
|
30673
|
+
- `DownloadFailed`:下载视频/图片文件失败
|
|
30674
|
+
- `ReadFailed`:读取视频/图片文件失败
|
|
30675
|
+
:rtype: str
|
|
30676
|
+
"""
|
|
30677
|
+
return self._ErrorCode
|
|
30678
|
+
|
|
30679
|
+
@ErrorCode.setter
|
|
30680
|
+
def ErrorCode(self, ErrorCode):
|
|
30681
|
+
self._ErrorCode = ErrorCode
|
|
30682
|
+
|
|
30502
30683
|
|
|
30503
30684
|
def _deserialize(self, params):
|
|
30504
30685
|
self._Status = params.get("Status")
|
|
30505
30686
|
self._DetectedClassifications = params.get("DetectedClassifications")
|
|
30506
30687
|
self._Summary = params.get("Summary")
|
|
30507
30688
|
self._AlternativeSummary = params.get("AlternativeSummary")
|
|
30689
|
+
self._ErrorCode = params.get("ErrorCode")
|
|
30690
|
+
memeber_set = set(params.keys())
|
|
30691
|
+
for name, value in vars(self).items():
|
|
30692
|
+
property_name = name[1:]
|
|
30693
|
+
if property_name in memeber_set:
|
|
30694
|
+
memeber_set.remove(property_name)
|
|
30695
|
+
if len(memeber_set) > 0:
|
|
30696
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
30697
|
+
|
|
30698
|
+
|
|
30699
|
+
|
|
30700
|
+
class VisionSummaryConfig(AbstractModel):
|
|
30701
|
+
"""视频摘要配置
|
|
30702
|
+
|
|
30703
|
+
"""
|
|
30704
|
+
|
|
30705
|
+
def __init__(self):
|
|
30706
|
+
r"""
|
|
30707
|
+
:param _OutputLang: 主输出语言
|
|
30708
|
+
|
|
30709
|
+
支持列表如下:
|
|
30710
|
+
zh 中文
|
|
30711
|
+
en 英语
|
|
30712
|
+
ja 日语
|
|
30713
|
+
ko 韩文
|
|
30714
|
+
pt-BR 葡萄牙语(巴西)
|
|
30715
|
+
th 泰语
|
|
30716
|
+
|
|
30717
|
+
:type OutputLang: str
|
|
30718
|
+
:param _AlternativeOutputLang: 可选输出语言
|
|
30719
|
+
|
|
30720
|
+
支持列表如下:
|
|
30721
|
+
zh 中文
|
|
30722
|
+
en 英语
|
|
30723
|
+
ja 日语
|
|
30724
|
+
ko 韩文
|
|
30725
|
+
pt-BR 葡萄牙语(巴西)
|
|
30726
|
+
th 泰语
|
|
30727
|
+
|
|
30728
|
+
:type AlternativeOutputLang: str
|
|
30729
|
+
:param _MultiCameraLayout: 多摄像头布局定义。可能取值:
|
|
30730
|
+
|
|
30731
|
+
- 单摄(默认值):`Single`
|
|
30732
|
+
|
|
30733
|
+
- 双摄(纵向排列)- 全部画面:`Vertical,Num=2,Index=0;1`
|
|
30734
|
+
- 双摄(纵向排列)- 画面1:`Vertical,Num=2,Index=0`
|
|
30735
|
+
- 双摄(纵向排列)- 画面2:`Vertical,Num=2,Index=1`
|
|
30736
|
+
|
|
30737
|
+
- 三摄(纵向排列)- 全部画面:`Vertical,Num=3,Index=0;1;2`
|
|
30738
|
+
- 三摄(纵向排列)- 画面1:`Vertical,Num=3,Index=0`
|
|
30739
|
+
- 三摄(纵向排列)- 画面2:`Vertical,Num=3,Index=1`
|
|
30740
|
+
- 三摄(纵向排列)- 画面3:`Vertical,Num=3,Index=2`
|
|
30741
|
+
- 三摄(纵向排列)- 画面1+2:`Vertical,Num=3,Index=0;1`
|
|
30742
|
+
- 三摄(纵向排列)- 画面1+3:`Vertical,Num=3,Index=0;2`
|
|
30743
|
+
- 三摄(纵向排列)- 画面2+3:`Vertical,Num=3,Index=1;2`
|
|
30744
|
+
:type MultiCameraLayout: str
|
|
30745
|
+
"""
|
|
30746
|
+
self._OutputLang = None
|
|
30747
|
+
self._AlternativeOutputLang = None
|
|
30748
|
+
self._MultiCameraLayout = None
|
|
30749
|
+
|
|
30750
|
+
@property
|
|
30751
|
+
def OutputLang(self):
|
|
30752
|
+
"""主输出语言
|
|
30753
|
+
|
|
30754
|
+
支持列表如下:
|
|
30755
|
+
zh 中文
|
|
30756
|
+
en 英语
|
|
30757
|
+
ja 日语
|
|
30758
|
+
ko 韩文
|
|
30759
|
+
pt-BR 葡萄牙语(巴西)
|
|
30760
|
+
th 泰语
|
|
30761
|
+
|
|
30762
|
+
:rtype: str
|
|
30763
|
+
"""
|
|
30764
|
+
return self._OutputLang
|
|
30765
|
+
|
|
30766
|
+
@OutputLang.setter
|
|
30767
|
+
def OutputLang(self, OutputLang):
|
|
30768
|
+
self._OutputLang = OutputLang
|
|
30769
|
+
|
|
30770
|
+
@property
|
|
30771
|
+
def AlternativeOutputLang(self):
|
|
30772
|
+
"""可选输出语言
|
|
30773
|
+
|
|
30774
|
+
支持列表如下:
|
|
30775
|
+
zh 中文
|
|
30776
|
+
en 英语
|
|
30777
|
+
ja 日语
|
|
30778
|
+
ko 韩文
|
|
30779
|
+
pt-BR 葡萄牙语(巴西)
|
|
30780
|
+
th 泰语
|
|
30781
|
+
|
|
30782
|
+
:rtype: str
|
|
30783
|
+
"""
|
|
30784
|
+
return self._AlternativeOutputLang
|
|
30785
|
+
|
|
30786
|
+
@AlternativeOutputLang.setter
|
|
30787
|
+
def AlternativeOutputLang(self, AlternativeOutputLang):
|
|
30788
|
+
self._AlternativeOutputLang = AlternativeOutputLang
|
|
30789
|
+
|
|
30790
|
+
@property
|
|
30791
|
+
def MultiCameraLayout(self):
|
|
30792
|
+
"""多摄像头布局定义。可能取值:
|
|
30793
|
+
|
|
30794
|
+
- 单摄(默认值):`Single`
|
|
30795
|
+
|
|
30796
|
+
- 双摄(纵向排列)- 全部画面:`Vertical,Num=2,Index=0;1`
|
|
30797
|
+
- 双摄(纵向排列)- 画面1:`Vertical,Num=2,Index=0`
|
|
30798
|
+
- 双摄(纵向排列)- 画面2:`Vertical,Num=2,Index=1`
|
|
30799
|
+
|
|
30800
|
+
- 三摄(纵向排列)- 全部画面:`Vertical,Num=3,Index=0;1;2`
|
|
30801
|
+
- 三摄(纵向排列)- 画面1:`Vertical,Num=3,Index=0`
|
|
30802
|
+
- 三摄(纵向排列)- 画面2:`Vertical,Num=3,Index=1`
|
|
30803
|
+
- 三摄(纵向排列)- 画面3:`Vertical,Num=3,Index=2`
|
|
30804
|
+
- 三摄(纵向排列)- 画面1+2:`Vertical,Num=3,Index=0;1`
|
|
30805
|
+
- 三摄(纵向排列)- 画面1+3:`Vertical,Num=3,Index=0;2`
|
|
30806
|
+
- 三摄(纵向排列)- 画面2+3:`Vertical,Num=3,Index=1;2`
|
|
30807
|
+
:rtype: str
|
|
30808
|
+
"""
|
|
30809
|
+
return self._MultiCameraLayout
|
|
30810
|
+
|
|
30811
|
+
@MultiCameraLayout.setter
|
|
30812
|
+
def MultiCameraLayout(self, MultiCameraLayout):
|
|
30813
|
+
self._MultiCameraLayout = MultiCameraLayout
|
|
30814
|
+
|
|
30815
|
+
|
|
30816
|
+
def _deserialize(self, params):
|
|
30817
|
+
self._OutputLang = params.get("OutputLang")
|
|
30818
|
+
self._AlternativeOutputLang = params.get("AlternativeOutputLang")
|
|
30819
|
+
self._MultiCameraLayout = params.get("MultiCameraLayout")
|
|
30508
30820
|
memeber_set = set(params.keys())
|
|
30509
30821
|
for name, value in vars(self).items():
|
|
30510
30822
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.0.1447
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.0.1421
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|