tencentcloud-sdk-python-mps 3.0.1377__tar.gz → 3.0.1379__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.1377 → tencentcloud-sdk-python-mps-3.0.1379}/PKG-INFO +1 -1
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/setup.py +1 -1
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/tencentcloud/__init__.py +1 -1
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/tencentcloud/mps/v20190612/models.py +211 -2
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +1 -1
- tencentcloud-sdk-python-mps-3.0.1379/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
- tencentcloud-sdk-python-mps-3.0.1377/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/README.rst +0 -0
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/setup.cfg +0 -0
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/tencentcloud/mps/__init__.py +0 -0
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/tencentcloud/mps/v20190612/__init__.py +0 -0
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/tencentcloud/mps/v20190612/mps_client.py +0 -0
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
- {tencentcloud-sdk-python-mps-3.0.1377 → tencentcloud-sdk-python-mps-3.0.1379}/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.1379"],
|
|
12
12
|
version=tencentcloud.__version__,
|
|
13
13
|
description='Tencent Cloud Mps SDK for Python',
|
|
14
14
|
long_description=open('README.rst').read(),
|
|
@@ -34734,6 +34734,69 @@ class HighlightSegmentItem(AbstractModel):
|
|
|
34734
34734
|
|
|
34735
34735
|
|
|
34736
34736
|
|
|
34737
|
+
class ImageAreaBoxInfo(AbstractModel):
|
|
34738
|
+
"""图片框选区域信息
|
|
34739
|
+
|
|
34740
|
+
"""
|
|
34741
|
+
|
|
34742
|
+
def __init__(self):
|
|
34743
|
+
r"""
|
|
34744
|
+
:param _Type: 图片框选区域类型,可选值:
|
|
34745
|
+
<li>logo:图标;</li>
|
|
34746
|
+
<li>text:文字。</li>
|
|
34747
|
+
默认值:logo。
|
|
34748
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
34749
|
+
:type Type: str
|
|
34750
|
+
:param _AreaCoordSet: 图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
|
|
34751
|
+
示例值:[101, 85, 111, 95]
|
|
34752
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
34753
|
+
:type AreaCoordSet: list of int
|
|
34754
|
+
"""
|
|
34755
|
+
self._Type = None
|
|
34756
|
+
self._AreaCoordSet = None
|
|
34757
|
+
|
|
34758
|
+
@property
|
|
34759
|
+
def Type(self):
|
|
34760
|
+
"""图片框选区域类型,可选值:
|
|
34761
|
+
<li>logo:图标;</li>
|
|
34762
|
+
<li>text:文字。</li>
|
|
34763
|
+
默认值:logo。
|
|
34764
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
34765
|
+
:rtype: str
|
|
34766
|
+
"""
|
|
34767
|
+
return self._Type
|
|
34768
|
+
|
|
34769
|
+
@Type.setter
|
|
34770
|
+
def Type(self, Type):
|
|
34771
|
+
self._Type = Type
|
|
34772
|
+
|
|
34773
|
+
@property
|
|
34774
|
+
def AreaCoordSet(self):
|
|
34775
|
+
"""图片框选区域坐标 (像素级),[x1, y1, x2, y2],即左上角坐标、右下角坐标。
|
|
34776
|
+
示例值:[101, 85, 111, 95]
|
|
34777
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
34778
|
+
:rtype: list of int
|
|
34779
|
+
"""
|
|
34780
|
+
return self._AreaCoordSet
|
|
34781
|
+
|
|
34782
|
+
@AreaCoordSet.setter
|
|
34783
|
+
def AreaCoordSet(self, AreaCoordSet):
|
|
34784
|
+
self._AreaCoordSet = AreaCoordSet
|
|
34785
|
+
|
|
34786
|
+
|
|
34787
|
+
def _deserialize(self, params):
|
|
34788
|
+
self._Type = params.get("Type")
|
|
34789
|
+
self._AreaCoordSet = params.get("AreaCoordSet")
|
|
34790
|
+
memeber_set = set(params.keys())
|
|
34791
|
+
for name, value in vars(self).items():
|
|
34792
|
+
property_name = name[1:]
|
|
34793
|
+
if property_name in memeber_set:
|
|
34794
|
+
memeber_set.remove(property_name)
|
|
34795
|
+
if len(memeber_set) > 0:
|
|
34796
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
34797
|
+
|
|
34798
|
+
|
|
34799
|
+
|
|
34737
34800
|
class ImageEncodeConfig(AbstractModel):
|
|
34738
34801
|
"""图片编码格式参数
|
|
34739
34802
|
|
|
@@ -34741,7 +34804,7 @@ class ImageEncodeConfig(AbstractModel):
|
|
|
34741
34804
|
|
|
34742
34805
|
def __init__(self):
|
|
34743
34806
|
r"""
|
|
34744
|
-
:param _Format: 图片格式,取值范围:
|
|
34807
|
+
:param _Format: 图片格式,取值范围:JPEG、PNG、BMP、WebP,缺省为原图格式。不支持动画。
|
|
34745
34808
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
34746
34809
|
:type Format: str
|
|
34747
34810
|
:param _Quality: 图片的相对质量,取值范围:1 - 100,数值以原图质量为标准,缺省为原图质量。
|
|
@@ -34753,7 +34816,7 @@ class ImageEncodeConfig(AbstractModel):
|
|
|
34753
34816
|
|
|
34754
34817
|
@property
|
|
34755
34818
|
def Format(self):
|
|
34756
|
-
"""图片格式,取值范围:
|
|
34819
|
+
"""图片格式,取值范围:JPEG、PNG、BMP、WebP,缺省为原图格式。不支持动画。
|
|
34757
34820
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
34758
34821
|
:rtype: str
|
|
34759
34822
|
"""
|
|
@@ -34799,6 +34862,9 @@ class ImageEnhanceConfig(AbstractModel):
|
|
|
34799
34862
|
:param _SuperResolution: 超分配置。
|
|
34800
34863
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
34801
34864
|
:type SuperResolution: :class:`tencentcloud.mps.v20190612.models.SuperResolutionConfig`
|
|
34865
|
+
:param _ImageQualityEnhance: 综合增强配置。
|
|
34866
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
34867
|
+
:type ImageQualityEnhance: :class:`tencentcloud.mps.v20190612.models.ImageQualityEnhanceConfig`
|
|
34802
34868
|
:param _ColorEnhance: 色彩增强配置。
|
|
34803
34869
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
34804
34870
|
:type ColorEnhance: :class:`tencentcloud.mps.v20190612.models.ColorEnhanceConfig`
|
|
@@ -34810,6 +34876,7 @@ class ImageEnhanceConfig(AbstractModel):
|
|
|
34810
34876
|
:type FaceEnhance: :class:`tencentcloud.mps.v20190612.models.FaceEnhanceConfig`
|
|
34811
34877
|
"""
|
|
34812
34878
|
self._SuperResolution = None
|
|
34879
|
+
self._ImageQualityEnhance = None
|
|
34813
34880
|
self._ColorEnhance = None
|
|
34814
34881
|
self._SharpEnhance = None
|
|
34815
34882
|
self._FaceEnhance = None
|
|
@@ -34826,6 +34893,18 @@ class ImageEnhanceConfig(AbstractModel):
|
|
|
34826
34893
|
def SuperResolution(self, SuperResolution):
|
|
34827
34894
|
self._SuperResolution = SuperResolution
|
|
34828
34895
|
|
|
34896
|
+
@property
|
|
34897
|
+
def ImageQualityEnhance(self):
|
|
34898
|
+
"""综合增强配置。
|
|
34899
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
34900
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ImageQualityEnhanceConfig`
|
|
34901
|
+
"""
|
|
34902
|
+
return self._ImageQualityEnhance
|
|
34903
|
+
|
|
34904
|
+
@ImageQualityEnhance.setter
|
|
34905
|
+
def ImageQualityEnhance(self, ImageQualityEnhance):
|
|
34906
|
+
self._ImageQualityEnhance = ImageQualityEnhance
|
|
34907
|
+
|
|
34829
34908
|
@property
|
|
34830
34909
|
def ColorEnhance(self):
|
|
34831
34910
|
"""色彩增强配置。
|
|
@@ -34867,6 +34946,9 @@ class ImageEnhanceConfig(AbstractModel):
|
|
|
34867
34946
|
if params.get("SuperResolution") is not None:
|
|
34868
34947
|
self._SuperResolution = SuperResolutionConfig()
|
|
34869
34948
|
self._SuperResolution._deserialize(params.get("SuperResolution"))
|
|
34949
|
+
if params.get("ImageQualityEnhance") is not None:
|
|
34950
|
+
self._ImageQualityEnhance = ImageQualityEnhanceConfig()
|
|
34951
|
+
self._ImageQualityEnhance._deserialize(params.get("ImageQualityEnhance"))
|
|
34870
34952
|
if params.get("ColorEnhance") is not None:
|
|
34871
34953
|
self._ColorEnhance = ColorEnhanceConfig()
|
|
34872
34954
|
self._ColorEnhance._deserialize(params.get("ColorEnhance"))
|
|
@@ -34886,6 +34968,114 @@ class ImageEnhanceConfig(AbstractModel):
|
|
|
34886
34968
|
|
|
34887
34969
|
|
|
34888
34970
|
|
|
34971
|
+
class ImageEraseConfig(AbstractModel):
|
|
34972
|
+
"""图片擦除参数
|
|
34973
|
+
|
|
34974
|
+
"""
|
|
34975
|
+
|
|
34976
|
+
def __init__(self):
|
|
34977
|
+
r"""
|
|
34978
|
+
:param _ImageEraseLogo: 图标擦除配置。
|
|
34979
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
34980
|
+
:type ImageEraseLogo: :class:`tencentcloud.mps.v20190612.models.ImageEraseLogoConfig`
|
|
34981
|
+
"""
|
|
34982
|
+
self._ImageEraseLogo = None
|
|
34983
|
+
|
|
34984
|
+
@property
|
|
34985
|
+
def ImageEraseLogo(self):
|
|
34986
|
+
"""图标擦除配置。
|
|
34987
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
34988
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ImageEraseLogoConfig`
|
|
34989
|
+
"""
|
|
34990
|
+
return self._ImageEraseLogo
|
|
34991
|
+
|
|
34992
|
+
@ImageEraseLogo.setter
|
|
34993
|
+
def ImageEraseLogo(self, ImageEraseLogo):
|
|
34994
|
+
self._ImageEraseLogo = ImageEraseLogo
|
|
34995
|
+
|
|
34996
|
+
|
|
34997
|
+
def _deserialize(self, params):
|
|
34998
|
+
if params.get("ImageEraseLogo") is not None:
|
|
34999
|
+
self._ImageEraseLogo = ImageEraseLogoConfig()
|
|
35000
|
+
self._ImageEraseLogo._deserialize(params.get("ImageEraseLogo"))
|
|
35001
|
+
memeber_set = set(params.keys())
|
|
35002
|
+
for name, value in vars(self).items():
|
|
35003
|
+
property_name = name[1:]
|
|
35004
|
+
if property_name in memeber_set:
|
|
35005
|
+
memeber_set.remove(property_name)
|
|
35006
|
+
if len(memeber_set) > 0:
|
|
35007
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
35008
|
+
|
|
35009
|
+
|
|
35010
|
+
|
|
35011
|
+
class ImageEraseLogoConfig(AbstractModel):
|
|
35012
|
+
"""图标擦除配置
|
|
35013
|
+
|
|
35014
|
+
"""
|
|
35015
|
+
|
|
35016
|
+
def __init__(self):
|
|
35017
|
+
r"""
|
|
35018
|
+
:param _Switch: 能力配置开关,可选值:
|
|
35019
|
+
<li>ON:开启;</li>
|
|
35020
|
+
<li>OFF:关闭。</li>
|
|
35021
|
+
默认值:ON。
|
|
35022
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35023
|
+
:type Switch: str
|
|
35024
|
+
:param _ImageAreaBoxes: 需要擦除的多个框选区域,注意:参数数组长度最大为2。
|
|
35025
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35026
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35027
|
+
:type ImageAreaBoxes: list of ImageAreaBoxInfo
|
|
35028
|
+
"""
|
|
35029
|
+
self._Switch = None
|
|
35030
|
+
self._ImageAreaBoxes = None
|
|
35031
|
+
|
|
35032
|
+
@property
|
|
35033
|
+
def Switch(self):
|
|
35034
|
+
"""能力配置开关,可选值:
|
|
35035
|
+
<li>ON:开启;</li>
|
|
35036
|
+
<li>OFF:关闭。</li>
|
|
35037
|
+
默认值:ON。
|
|
35038
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35039
|
+
:rtype: str
|
|
35040
|
+
"""
|
|
35041
|
+
return self._Switch
|
|
35042
|
+
|
|
35043
|
+
@Switch.setter
|
|
35044
|
+
def Switch(self, Switch):
|
|
35045
|
+
self._Switch = Switch
|
|
35046
|
+
|
|
35047
|
+
@property
|
|
35048
|
+
def ImageAreaBoxes(self):
|
|
35049
|
+
"""需要擦除的多个框选区域,注意:参数数组长度最大为2。
|
|
35050
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35051
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35052
|
+
:rtype: list of ImageAreaBoxInfo
|
|
35053
|
+
"""
|
|
35054
|
+
return self._ImageAreaBoxes
|
|
35055
|
+
|
|
35056
|
+
@ImageAreaBoxes.setter
|
|
35057
|
+
def ImageAreaBoxes(self, ImageAreaBoxes):
|
|
35058
|
+
self._ImageAreaBoxes = ImageAreaBoxes
|
|
35059
|
+
|
|
35060
|
+
|
|
35061
|
+
def _deserialize(self, params):
|
|
35062
|
+
self._Switch = params.get("Switch")
|
|
35063
|
+
if params.get("ImageAreaBoxes") is not None:
|
|
35064
|
+
self._ImageAreaBoxes = []
|
|
35065
|
+
for item in params.get("ImageAreaBoxes"):
|
|
35066
|
+
obj = ImageAreaBoxInfo()
|
|
35067
|
+
obj._deserialize(item)
|
|
35068
|
+
self._ImageAreaBoxes.append(obj)
|
|
35069
|
+
memeber_set = set(params.keys())
|
|
35070
|
+
for name, value in vars(self).items():
|
|
35071
|
+
property_name = name[1:]
|
|
35072
|
+
if property_name in memeber_set:
|
|
35073
|
+
memeber_set.remove(property_name)
|
|
35074
|
+
if len(memeber_set) > 0:
|
|
35075
|
+
warnings.warn("%s fileds are useless." % ",".join(memeber_set))
|
|
35076
|
+
|
|
35077
|
+
|
|
35078
|
+
|
|
34889
35079
|
class ImageQualityEnhanceConfig(AbstractModel):
|
|
34890
35080
|
"""综合增强配置
|
|
34891
35081
|
|
|
@@ -35366,9 +35556,13 @@ class ImageTaskInput(AbstractModel):
|
|
|
35366
35556
|
:param _EnhanceConfig: 图片增强配置。
|
|
35367
35557
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
35368
35558
|
:type EnhanceConfig: :class:`tencentcloud.mps.v20190612.models.ImageEnhanceConfig`
|
|
35559
|
+
:param _EraseConfig: 图片擦除配置。
|
|
35560
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35561
|
+
:type EraseConfig: :class:`tencentcloud.mps.v20190612.models.ImageEraseConfig`
|
|
35369
35562
|
"""
|
|
35370
35563
|
self._EncodeConfig = None
|
|
35371
35564
|
self._EnhanceConfig = None
|
|
35565
|
+
self._EraseConfig = None
|
|
35372
35566
|
|
|
35373
35567
|
@property
|
|
35374
35568
|
def EncodeConfig(self):
|
|
@@ -35394,6 +35588,18 @@ class ImageTaskInput(AbstractModel):
|
|
|
35394
35588
|
def EnhanceConfig(self, EnhanceConfig):
|
|
35395
35589
|
self._EnhanceConfig = EnhanceConfig
|
|
35396
35590
|
|
|
35591
|
+
@property
|
|
35592
|
+
def EraseConfig(self):
|
|
35593
|
+
"""图片擦除配置。
|
|
35594
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35595
|
+
:rtype: :class:`tencentcloud.mps.v20190612.models.ImageEraseConfig`
|
|
35596
|
+
"""
|
|
35597
|
+
return self._EraseConfig
|
|
35598
|
+
|
|
35599
|
+
@EraseConfig.setter
|
|
35600
|
+
def EraseConfig(self, EraseConfig):
|
|
35601
|
+
self._EraseConfig = EraseConfig
|
|
35602
|
+
|
|
35397
35603
|
|
|
35398
35604
|
def _deserialize(self, params):
|
|
35399
35605
|
if params.get("EncodeConfig") is not None:
|
|
@@ -35402,6 +35608,9 @@ class ImageTaskInput(AbstractModel):
|
|
|
35402
35608
|
if params.get("EnhanceConfig") is not None:
|
|
35403
35609
|
self._EnhanceConfig = ImageEnhanceConfig()
|
|
35404
35610
|
self._EnhanceConfig._deserialize(params.get("EnhanceConfig"))
|
|
35611
|
+
if params.get("EraseConfig") is not None:
|
|
35612
|
+
self._EraseConfig = ImageEraseConfig()
|
|
35613
|
+
self._EraseConfig._deserialize(params.get("EraseConfig"))
|
|
35405
35614
|
memeber_set = set(params.keys())
|
|
35406
35615
|
for name, value in vars(self).items():
|
|
35407
35616
|
property_name = name[1:]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common==3.0.1379
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common==3.0.1377
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|