tencentcloud-sdk-python-mps 3.0.997__tar.gz → 3.0.1009__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-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/setup.py +1 -1
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/tencentcloud/mps/v20190612/models.py +295 -2
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-mps-3.0.1009/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-mps-3.0.997/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/README.rst +0 -0
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/setup.cfg +0 -0
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/tencentcloud/mps/__init__.py +0 -0
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/tencentcloud/mps/v20190612/__init__.py +0 -0
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/tencentcloud/mps/v20190612/mps_client.py +0 -0
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-mps-3.0.997 → tencentcloud-sdk-python-mps-3.0.1009}/tencentcloud_sdk_python_mps.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-mps',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common==3.0.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common==3.0.1009"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Mps SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -2859,6 +2859,11 @@ class AiRecognitionResult(AbstractModel):
|
|
|
2859
2859
|
TransTextRecognition 时有效。
|
|
2860
2860
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2861
2861
|
:type TransTextTask: :class:`tencentcloud.mps.v20190612.models.AiRecognitionTaskTransTextResult`
|
|
2862
|
+
:param _ObjectTask: 物体识别结果,当Type 为
|
|
2863
|
+
|
|
2864
|
+
ObjectRecognition 时有效。
|
|
2865
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2866
|
+
:type ObjectTask: :class:`tencentcloud.mps.v20190612.models.AiRecognitionTaskObjectResult`
|
|
2862
2867
|
"""
|
|
2863
2868
|
self._Type = None
|
|
2864
2869
|
self._FaceTask = None
|
|
@@ -2867,6 +2872,7 @@ TransTextRecognition 时有效。
|
|
|
2867
2872
|
self._OcrWordsTask = None
|
|
2868
2873
|
self._OcrFullTextTask = None
|
|
2869
2874
|
self._TransTextTask = None
|
|
2875
|
+
self._ObjectTask = None
|
|
2870
2876
|
|
|
2871
2877
|
@property
|
|
2872
2878
|
def Type(self):
|
|
@@ -2924,6 +2930,14 @@ TransTextRecognition 时有效。
|
|
|
2924
2930
|
def TransTextTask(self, TransTextTask):
|
|
2925
2931
|
self._TransTextTask = TransTextTask
|
|
2926
2932
|
|
|
2933
|
+
@property
|
|
2934
|
+
def ObjectTask(self):
|
|
2935
|
+
return self._ObjectTask
|
|
2936
|
+
|
|
2937
|
+
@ObjectTask.setter
|
|
2938
|
+
def ObjectTask(self, ObjectTask):
|
|
2939
|
+
self._ObjectTask = ObjectTask
|
|
2940
|
+
|
|
2927
2941
|
|
|
2928
2942
|
def _deserialize(self, params):
|
|
2929
2943
|
self._Type = params.get("Type")
|
|
@@ -2945,6 +2959,9 @@ TransTextRecognition 时有效。
|
|
|
2945
2959
|
if params.get("TransTextTask") is not None:
|
|
2946
2960
|
self._TransTextTask = AiRecognitionTaskTransTextResult()
|
|
2947
2961
|
self._TransTextTask._deserialize(params.get("TransTextTask"))
|
|
2962
|
+
if params.get("ObjectTask") is not None:
|
|
2963
|
+
self._ObjectTask = AiRecognitionTaskObjectResult()
|
|
2964
|
+
self._ObjectTask._deserialize(params.get("ObjectTask"))
|
|
2948
2965
|
memeber_set = set(params.keys())
|
|
2949
2966
|
for name, value in vars(self).items():
|
|
2950
2967
|
property_name = name[1:]
|
|
@@ -3969,6 +3986,282 @@ class AiRecognitionTaskInput(AbstractModel):
|
|
|
3969
3986
|
|
|
3970
3987
|
|
|
3971
3988
|
|
|
3989
|
+
class AiRecognitionTaskObjectResult(AbstractModel):
|
|
3990
|
+
"""物体识别结果。
|
|
3991
|
+
|
|
3992
|
+
"""
|
|
3993
|
+
|
|
3994
|
+
def __init__(self):
|
|
3995
|
+
r"""
|
|
3996
|
+
:param _Status: 任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。
|
|
3997
|
+
:type Status: str
|
|
3998
|
+
:param _ErrCode: 错误码,0:成功,其他值:失败。
|
|
3999
|
+
:type ErrCode: int
|
|
4000
|
+
:param _Message: 错误信息。
|
|
4001
|
+
:type Message: str
|
|
4002
|
+
:param _Input: 物体识别任务输入信息。
|
|
4003
|
+
:type Input: :class:`tencentcloud.mps.v20190612.models.AiRecognitionTaskObjectResultInput`
|
|
4004
|
+
:param _Output: 物体识别任务输出信息。
|
|
4005
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4006
|
+
:type Output: :class:`tencentcloud.mps.v20190612.models.AiRecognitionTaskObjectResultOutput`
|
|
4007
|
+
"""
|
|
4008
|
+
self._Status = None
|
|
4009
|
+
self._ErrCode = None
|
|
4010
|
+
self._Message = None
|
|
4011
|
+
self._Input = None
|
|
4012
|
+
self._Output = None
|
|
4013
|
+
|
|
4014
|
+
@property
|
|
4015
|
+
def Status(self):
|
|
4016
|
+
return self._Status
|
|
4017
|
+
|
|
4018
|
+
@Status.setter
|
|
4019
|
+
def Status(self, Status):
|
|
4020
|
+
self._Status = Status
|
|
4021
|
+
|
|
4022
|
+
@property
|
|
4023
|
+
def ErrCode(self):
|
|
4024
|
+
return self._ErrCode
|
|
4025
|
+
|
|
4026
|
+
@ErrCode.setter
|
|
4027
|
+
def ErrCode(self, ErrCode):
|
|
4028
|
+
self._ErrCode = ErrCode
|
|
4029
|
+
|
|
4030
|
+
@property
|
|
4031
|
+
def Message(self):
|
|
4032
|
+
return self._Message
|
|
4033
|
+
|
|
4034
|
+
@Message.setter
|
|
4035
|
+
def Message(self, Message):
|
|
4036
|
+
self._Message = Message
|
|
4037
|
+
|
|
4038
|
+
@property
|
|
4039
|
+
def Input(self):
|
|
4040
|
+
return self._Input
|
|
4041
|
+
|
|
4042
|
+
@Input.setter
|
|
4043
|
+
def Input(self, Input):
|
|
4044
|
+
self._Input = Input
|
|
4045
|
+
|
|
4046
|
+
@property
|
|
4047
|
+
def Output(self):
|
|
4048
|
+
return self._Output
|
|
4049
|
+
|
|
4050
|
+
@Output.setter
|
|
4051
|
+
def Output(self, Output):
|
|
4052
|
+
self._Output = Output
|
|
4053
|
+
|
|
4054
|
+
|
|
4055
|
+
def _deserialize(self, params):
|
|
4056
|
+
self._Status = params.get("Status")
|
|
4057
|
+
self._ErrCode = params.get("ErrCode")
|
|
4058
|
+
self._Message = params.get("Message")
|
|
4059
|
+
if params.get("Input") is not None:
|
|
4060
|
+
self._Input = AiRecognitionTaskObjectResultInput()
|
|
4061
|
+
self._Input._deserialize(params.get("Input"))
|
|
4062
|
+
if params.get("Output") is not None:
|
|
4063
|
+
self._Output = AiRecognitionTaskObjectResultOutput()
|
|
4064
|
+
self._Output._deserialize(params.get("Output"))
|
|
4065
|
+
memeber_set = set(params.keys())
|
|
4066
|
+
for name, value in vars(self).items():
|
|
4067
|
+
property_name = name[1:]
|
|
4068
|
+
if property_name in memeber_set:
|
|
4069
|
+
memeber_set.remove(property_name)
|
|
4070
|
+
if len(memeber_set) > 0:
|
|
4071
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4072
|
+
|
|
4073
|
+
|
|
4074
|
+
|
|
4075
|
+
class AiRecognitionTaskObjectResultInput(AbstractModel):
|
|
4076
|
+
"""物体识别任务输入类型。
|
|
4077
|
+
|
|
4078
|
+
"""
|
|
4079
|
+
|
|
4080
|
+
def __init__(self):
|
|
4081
|
+
r"""
|
|
4082
|
+
:param _Definition: 物体识别模板 ID。
|
|
4083
|
+
:type Definition: int
|
|
4084
|
+
"""
|
|
4085
|
+
self._Definition = None
|
|
4086
|
+
|
|
4087
|
+
@property
|
|
4088
|
+
def Definition(self):
|
|
4089
|
+
return self._Definition
|
|
4090
|
+
|
|
4091
|
+
@Definition.setter
|
|
4092
|
+
def Definition(self, Definition):
|
|
4093
|
+
self._Definition = Definition
|
|
4094
|
+
|
|
4095
|
+
|
|
4096
|
+
def _deserialize(self, params):
|
|
4097
|
+
self._Definition = params.get("Definition")
|
|
4098
|
+
memeber_set = set(params.keys())
|
|
4099
|
+
for name, value in vars(self).items():
|
|
4100
|
+
property_name = name[1:]
|
|
4101
|
+
if property_name in memeber_set:
|
|
4102
|
+
memeber_set.remove(property_name)
|
|
4103
|
+
if len(memeber_set) > 0:
|
|
4104
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4105
|
+
|
|
4106
|
+
|
|
4107
|
+
|
|
4108
|
+
class AiRecognitionTaskObjectResultItem(AbstractModel):
|
|
4109
|
+
"""单个物体识别结果。
|
|
4110
|
+
|
|
4111
|
+
"""
|
|
4112
|
+
|
|
4113
|
+
def __init__(self):
|
|
4114
|
+
r"""
|
|
4115
|
+
:param _Name: 识别的物体名称。
|
|
4116
|
+
:type Name: str
|
|
4117
|
+
:param _SegmentSet: 物体出现的片段列表。
|
|
4118
|
+
:type SegmentSet: list of AiRecognitionTaskObjectSeqmentItem
|
|
4119
|
+
"""
|
|
4120
|
+
self._Name = None
|
|
4121
|
+
self._SegmentSet = None
|
|
4122
|
+
|
|
4123
|
+
@property
|
|
4124
|
+
def Name(self):
|
|
4125
|
+
return self._Name
|
|
4126
|
+
|
|
4127
|
+
@Name.setter
|
|
4128
|
+
def Name(self, Name):
|
|
4129
|
+
self._Name = Name
|
|
4130
|
+
|
|
4131
|
+
@property
|
|
4132
|
+
def SegmentSet(self):
|
|
4133
|
+
return self._SegmentSet
|
|
4134
|
+
|
|
4135
|
+
@SegmentSet.setter
|
|
4136
|
+
def SegmentSet(self, SegmentSet):
|
|
4137
|
+
self._SegmentSet = SegmentSet
|
|
4138
|
+
|
|
4139
|
+
|
|
4140
|
+
def _deserialize(self, params):
|
|
4141
|
+
self._Name = params.get("Name")
|
|
4142
|
+
if params.get("SegmentSet") is not None:
|
|
4143
|
+
self._SegmentSet = []
|
|
4144
|
+
for item in params.get("SegmentSet"):
|
|
4145
|
+
obj = AiRecognitionTaskObjectSeqmentItem()
|
|
4146
|
+
obj._deserialize(item)
|
|
4147
|
+
self._SegmentSet.append(obj)
|
|
4148
|
+
memeber_set = set(params.keys())
|
|
4149
|
+
for name, value in vars(self).items():
|
|
4150
|
+
property_name = name[1:]
|
|
4151
|
+
if property_name in memeber_set:
|
|
4152
|
+
memeber_set.remove(property_name)
|
|
4153
|
+
if len(memeber_set) > 0:
|
|
4154
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4155
|
+
|
|
4156
|
+
|
|
4157
|
+
|
|
4158
|
+
class AiRecognitionTaskObjectResultOutput(AbstractModel):
|
|
4159
|
+
"""智能物体识别输出。
|
|
4160
|
+
|
|
4161
|
+
"""
|
|
4162
|
+
|
|
4163
|
+
def __init__(self):
|
|
4164
|
+
r"""
|
|
4165
|
+
:param _ResultSet: 智能物体识别结果集。
|
|
4166
|
+
:type ResultSet: list of AiRecognitionTaskObjectResultItem
|
|
4167
|
+
"""
|
|
4168
|
+
self._ResultSet = None
|
|
4169
|
+
|
|
4170
|
+
@property
|
|
4171
|
+
def ResultSet(self):
|
|
4172
|
+
return self._ResultSet
|
|
4173
|
+
|
|
4174
|
+
@ResultSet.setter
|
|
4175
|
+
def ResultSet(self, ResultSet):
|
|
4176
|
+
self._ResultSet = ResultSet
|
|
4177
|
+
|
|
4178
|
+
|
|
4179
|
+
def _deserialize(self, params):
|
|
4180
|
+
if params.get("ResultSet") is not None:
|
|
4181
|
+
self._ResultSet = []
|
|
4182
|
+
for item in params.get("ResultSet"):
|
|
4183
|
+
obj = AiRecognitionTaskObjectResultItem()
|
|
4184
|
+
obj._deserialize(item)
|
|
4185
|
+
self._ResultSet.append(obj)
|
|
4186
|
+
memeber_set = set(params.keys())
|
|
4187
|
+
for name, value in vars(self).items():
|
|
4188
|
+
property_name = name[1:]
|
|
4189
|
+
if property_name in memeber_set:
|
|
4190
|
+
memeber_set.remove(property_name)
|
|
4191
|
+
if len(memeber_set) > 0:
|
|
4192
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4193
|
+
|
|
4194
|
+
|
|
4195
|
+
|
|
4196
|
+
class AiRecognitionTaskObjectSeqmentItem(AbstractModel):
|
|
4197
|
+
"""物体识别结果片段。
|
|
4198
|
+
|
|
4199
|
+
"""
|
|
4200
|
+
|
|
4201
|
+
def __init__(self):
|
|
4202
|
+
r"""
|
|
4203
|
+
:param _StartTimeOffset: 识别片段起始的偏移时间,单位:秒。
|
|
4204
|
+
:type StartTimeOffset: float
|
|
4205
|
+
:param _EndTimeOffset: 识别片段终止的偏移时间,单位:秒。
|
|
4206
|
+
:type EndTimeOffset: float
|
|
4207
|
+
:param _Confidence: 识别片段置信度。取值:0~100。
|
|
4208
|
+
:type Confidence: float
|
|
4209
|
+
:param _AreaCoordSet: 识别结果的区域坐标。数组包含 4 个元素 [x1,y1,x2,y2],依次表示区域左上点、右下点的横纵坐标。
|
|
4210
|
+
:type AreaCoordSet: list of int
|
|
4211
|
+
"""
|
|
4212
|
+
self._StartTimeOffset = None
|
|
4213
|
+
self._EndTimeOffset = None
|
|
4214
|
+
self._Confidence = None
|
|
4215
|
+
self._AreaCoordSet = None
|
|
4216
|
+
|
|
4217
|
+
@property
|
|
4218
|
+
def StartTimeOffset(self):
|
|
4219
|
+
return self._StartTimeOffset
|
|
4220
|
+
|
|
4221
|
+
@StartTimeOffset.setter
|
|
4222
|
+
def StartTimeOffset(self, StartTimeOffset):
|
|
4223
|
+
self._StartTimeOffset = StartTimeOffset
|
|
4224
|
+
|
|
4225
|
+
@property
|
|
4226
|
+
def EndTimeOffset(self):
|
|
4227
|
+
return self._EndTimeOffset
|
|
4228
|
+
|
|
4229
|
+
@EndTimeOffset.setter
|
|
4230
|
+
def EndTimeOffset(self, EndTimeOffset):
|
|
4231
|
+
self._EndTimeOffset = EndTimeOffset
|
|
4232
|
+
|
|
4233
|
+
@property
|
|
4234
|
+
def Confidence(self):
|
|
4235
|
+
return self._Confidence
|
|
4236
|
+
|
|
4237
|
+
@Confidence.setter
|
|
4238
|
+
def Confidence(self, Confidence):
|
|
4239
|
+
self._Confidence = Confidence
|
|
4240
|
+
|
|
4241
|
+
@property
|
|
4242
|
+
def AreaCoordSet(self):
|
|
4243
|
+
return self._AreaCoordSet
|
|
4244
|
+
|
|
4245
|
+
@AreaCoordSet.setter
|
|
4246
|
+
def AreaCoordSet(self, AreaCoordSet):
|
|
4247
|
+
self._AreaCoordSet = AreaCoordSet
|
|
4248
|
+
|
|
4249
|
+
|
|
4250
|
+
def _deserialize(self, params):
|
|
4251
|
+
self._StartTimeOffset = params.get("StartTimeOffset")
|
|
4252
|
+
self._EndTimeOffset = params.get("EndTimeOffset")
|
|
4253
|
+
self._Confidence = params.get("Confidence")
|
|
4254
|
+
self._AreaCoordSet = params.get("AreaCoordSet")
|
|
4255
|
+
memeber_set = set(params.keys())
|
|
4256
|
+
for name, value in vars(self).items():
|
|
4257
|
+
property_name = name[1:]
|
|
4258
|
+
if property_name in memeber_set:
|
|
4259
|
+
memeber_set.remove(property_name)
|
|
4260
|
+
if len(memeber_set) > 0:
|
|
4261
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
4262
|
+
|
|
4263
|
+
|
|
4264
|
+
|
|
3972
4265
|
class AiRecognitionTaskOcrFullTextResult(AbstractModel):
|
|
3973
4266
|
"""文本全文识别结果。
|
|
3974
4267
|
|
|
@@ -23992,7 +24285,7 @@ class ImageWatermarkInput(AbstractModel):
|
|
|
23992
24285
|
:param _Width: 水印的宽度。支持 %、px 两种格式:
|
|
23993
24286
|
<li>当字符串以 % 结尾,表示水印 Width 为视频宽度的百分比大小,如 10% 表示 Width 为视频宽度的 10%;</li>
|
|
23994
24287
|
<li>当字符串以 px 结尾,表示水印 Width 单位为像素,如 100px 表示 Width 为 100 像素。取值范围为[8, 4096]。</li>
|
|
23995
|
-
|
|
24288
|
+
当宽高都不填或者为0时,默认为 10%。
|
|
23996
24289
|
:type Width: str
|
|
23997
24290
|
:param _Height: 水印的高度。支持 %、px 两种格式:
|
|
23998
24291
|
<li>当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>
|
|
@@ -24074,7 +24367,7 @@ class ImageWatermarkInputForUpdate(AbstractModel):
|
|
|
24074
24367
|
:param _Height: 水印的高度。支持 %、px 两种格式:
|
|
24075
24368
|
<li>当字符串以 % 结尾,表示水印 Height 为视频高度的百分比大小,如 10% 表示 Height 为视频高度的 10%;</li>
|
|
24076
24369
|
<li>当字符串以 px 结尾,表示水印 Height 单位为像素,如 100px 表示 Height 为 100 像素。取值范围为0或[8, 4096]。</li>
|
|
24077
|
-
|
|
24370
|
+
|
|
24078
24371
|
:type Height: str
|
|
24079
24372
|
:param _RepeatType: 水印重复类型。使用场景:水印为动态图像。取值范围:
|
|
24080
24373
|
<li>once:动态水印播放完后,不再出现;</li>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1009
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.997
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|