tencentcloud-sdk-python-mps 3.1.177__tar.gz → 3.1.179__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.1.177 → tencentcloud_sdk_python_mps-3.1.179}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/setup.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/tencentcloud/__init__.py +1 -1
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/tencentcloud/mps/v20190612/models.py +65 -34
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_mps-3.1.179/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_mps-3.1.177/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/README.rst +0 -0
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/setup.cfg +0 -0
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/tencentcloud/mps/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/tencentcloud/mps/v20190612/__init__.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/tencentcloud/mps/v20190612/mps_client.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/tencentcloud/mps/v20190612/mps_client_async.py +0 -0
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_mps-3.1.177 → tencentcloud_sdk_python_mps-3.1.179}/tencentcloud_sdk_python_mps.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mps
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.179
|
|
4
4
|
Summary: Tencent Cloud Mps SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.179
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -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.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.179,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Mps SDK for Python',
|
|
@@ -7910,7 +7910,7 @@ class AiCutoutConfig(AbstractModel):
|
|
|
7910
7910
|
:type Type: str
|
|
7911
7911
|
:param _PatternConfig: <p>图案抠图配置。仅在Type为pattern时生效。</p>
|
|
7912
7912
|
:type PatternConfig: :class:`tencentcloud.mps.v20190612.models.PatternConfig`
|
|
7913
|
-
:param _Model: <p
|
|
7913
|
+
:param _Model: <p>抠图模型选择。</p><p>枚举值:</p><ul><li>cutout-1.0-lite: 基础版,速度最快</li><li>cutout-1.0-flash: 标准版,质量-速度平衡</li></ul>
|
|
7914
7914
|
:type Model: str
|
|
7915
7915
|
"""
|
|
7916
7916
|
self._Switch = None
|
|
@@ -7953,7 +7953,7 @@ class AiCutoutConfig(AbstractModel):
|
|
|
7953
7953
|
|
|
7954
7954
|
@property
|
|
7955
7955
|
def Model(self):
|
|
7956
|
-
r"""<p
|
|
7956
|
+
r"""<p>抠图模型选择。</p><p>枚举值:</p><ul><li>cutout-1.0-lite: 基础版,速度最快</li><li>cutout-1.0-flash: 标准版,质量-速度平衡</li></ul>
|
|
7957
7957
|
:rtype: str
|
|
7958
7958
|
"""
|
|
7959
7959
|
return self._Model
|
|
@@ -14290,7 +14290,7 @@ class AiTryOnConfig(AbstractModel):
|
|
|
14290
14290
|
|
|
14291
14291
|
def __init__(self):
|
|
14292
14292
|
r"""
|
|
14293
|
-
:param _Model: <p>换装模型,取值:</p><ul><li>
|
|
14293
|
+
:param _Model: <p>换装模型,取值:</p><ul><li>tryon-1.0-lite</li><li>tryon-1.0-flash</li><li>tryon-1.0-pro</li></ul>
|
|
14294
14294
|
:type Model: str
|
|
14295
14295
|
:param _Prompt: <p>换装指令。</p><p>为空时使用内置指令。</p>
|
|
14296
14296
|
:type Prompt: str
|
|
@@ -14303,7 +14303,7 @@ class AiTryOnConfig(AbstractModel):
|
|
|
14303
14303
|
|
|
14304
14304
|
@property
|
|
14305
14305
|
def Model(self):
|
|
14306
|
-
r"""<p>换装模型,取值:</p><ul><li>
|
|
14306
|
+
r"""<p>换装模型,取值:</p><ul><li>tryon-1.0-lite</li><li>tryon-1.0-flash</li><li>tryon-1.0-pro</li></ul>
|
|
14307
14307
|
:rtype: str
|
|
14308
14308
|
"""
|
|
14309
14309
|
return self._Model
|
|
@@ -18051,17 +18051,20 @@ class BeautyConfig(AbstractModel):
|
|
|
18051
18051
|
|
|
18052
18052
|
def __init__(self):
|
|
18053
18053
|
r"""
|
|
18054
|
-
:param _BeautyEffectItems:
|
|
18054
|
+
:param _BeautyEffectItems: <p>美颜效果</p>
|
|
18055
18055
|
:type BeautyEffectItems: list of BeautyEffectItemConfig
|
|
18056
|
-
:param _BeautyFilterItems:
|
|
18056
|
+
:param _BeautyFilterItems: <p>美颜滤镜</p>
|
|
18057
18057
|
:type BeautyFilterItems: list of BeautyFilterItemConfig
|
|
18058
|
+
:param _Type: <p>美颜类型</p><p>枚举值:</p><ul><li>auto: 智能自动美颜</li></ul><p>传入美颜参数时,忽略该参数。</p>
|
|
18059
|
+
:type Type: str
|
|
18058
18060
|
"""
|
|
18059
18061
|
self._BeautyEffectItems = None
|
|
18060
18062
|
self._BeautyFilterItems = None
|
|
18063
|
+
self._Type = None
|
|
18061
18064
|
|
|
18062
18065
|
@property
|
|
18063
18066
|
def BeautyEffectItems(self):
|
|
18064
|
-
r"""
|
|
18067
|
+
r"""<p>美颜效果</p>
|
|
18065
18068
|
:rtype: list of BeautyEffectItemConfig
|
|
18066
18069
|
"""
|
|
18067
18070
|
return self._BeautyEffectItems
|
|
@@ -18072,7 +18075,7 @@ class BeautyConfig(AbstractModel):
|
|
|
18072
18075
|
|
|
18073
18076
|
@property
|
|
18074
18077
|
def BeautyFilterItems(self):
|
|
18075
|
-
r"""
|
|
18078
|
+
r"""<p>美颜滤镜</p>
|
|
18076
18079
|
:rtype: list of BeautyFilterItemConfig
|
|
18077
18080
|
"""
|
|
18078
18081
|
return self._BeautyFilterItems
|
|
@@ -18081,6 +18084,17 @@ class BeautyConfig(AbstractModel):
|
|
|
18081
18084
|
def BeautyFilterItems(self, BeautyFilterItems):
|
|
18082
18085
|
self._BeautyFilterItems = BeautyFilterItems
|
|
18083
18086
|
|
|
18087
|
+
@property
|
|
18088
|
+
def Type(self):
|
|
18089
|
+
r"""<p>美颜类型</p><p>枚举值:</p><ul><li>auto: 智能自动美颜</li></ul><p>传入美颜参数时,忽略该参数。</p>
|
|
18090
|
+
:rtype: str
|
|
18091
|
+
"""
|
|
18092
|
+
return self._Type
|
|
18093
|
+
|
|
18094
|
+
@Type.setter
|
|
18095
|
+
def Type(self, Type):
|
|
18096
|
+
self._Type = Type
|
|
18097
|
+
|
|
18084
18098
|
|
|
18085
18099
|
def _deserialize(self, params):
|
|
18086
18100
|
if params.get("BeautyEffectItems") is not None:
|
|
@@ -18095,6 +18109,7 @@ class BeautyConfig(AbstractModel):
|
|
|
18095
18109
|
obj = BeautyFilterItemConfig()
|
|
18096
18110
|
obj._deserialize(item)
|
|
18097
18111
|
self._BeautyFilterItems.append(obj)
|
|
18112
|
+
self._Type = params.get("Type")
|
|
18098
18113
|
memeber_set = set(params.keys())
|
|
18099
18114
|
for name, value in vars(self).items():
|
|
18100
18115
|
property_name = name[1:]
|
|
@@ -25364,9 +25379,9 @@ class CreateImageConfig(AbstractModel):
|
|
|
25364
25379
|
:type Model: str
|
|
25365
25380
|
:param _Prompt: <p>生图指令</p>
|
|
25366
25381
|
:type Prompt: str
|
|
25367
|
-
:param _Resolution: <p
|
|
25382
|
+
:param _Resolution: <p>输出图片的分辨率,可取值:1K/2K/4K。</p><p>默认值:1K</p>
|
|
25368
25383
|
:type Resolution: str
|
|
25369
|
-
:param _AspectRatio: <p
|
|
25384
|
+
:param _AspectRatio: <p>输出图片的宽高比,可取值:</p><ul><li>1:1</li><li>2:3</li><li>3:2</li><li>3:4</li><li>4:3</li><li>4:5</li><li>5:4</li><li>9:16</li><li>16:9</li></ul><p>默认值:1:1</p>
|
|
25370
25385
|
:type AspectRatio: str
|
|
25371
25386
|
:param _AdditionalParameters: <p>附加参数。</p>
|
|
25372
25387
|
:type AdditionalParameters: str
|
|
@@ -25401,7 +25416,7 @@ class CreateImageConfig(AbstractModel):
|
|
|
25401
25416
|
|
|
25402
25417
|
@property
|
|
25403
25418
|
def Resolution(self):
|
|
25404
|
-
r"""<p
|
|
25419
|
+
r"""<p>输出图片的分辨率,可取值:1K/2K/4K。</p><p>默认值:1K</p>
|
|
25405
25420
|
:rtype: str
|
|
25406
25421
|
"""
|
|
25407
25422
|
return self._Resolution
|
|
@@ -25412,7 +25427,7 @@ class CreateImageConfig(AbstractModel):
|
|
|
25412
25427
|
|
|
25413
25428
|
@property
|
|
25414
25429
|
def AspectRatio(self):
|
|
25415
|
-
r"""<p
|
|
25430
|
+
r"""<p>输出图片的宽高比,可取值:</p><ul><li>1:1</li><li>2:3</li><li>3:2</li><li>3:4</li><li>4:3</li><li>4:5</li><li>5:4</li><li>9:16</li><li>16:9</li></ul><p>默认值:1:1</p>
|
|
25416
25431
|
:rtype: str
|
|
25417
25432
|
"""
|
|
25418
25433
|
return self._AspectRatio
|
|
@@ -55651,33 +55666,29 @@ class ImageEraseLogoConfig(AbstractModel):
|
|
|
55651
55666
|
|
|
55652
55667
|
def __init__(self):
|
|
55653
55668
|
r"""
|
|
55654
|
-
:param _Switch:
|
|
55655
|
-
<li>ON:开启;</li>
|
|
55656
|
-
<li>OFF:关闭。</li>
|
|
55657
|
-
默认值:ON。
|
|
55669
|
+
:param _Switch: <p>能力配置开关,可选值:</p><li>ON:开启;</li><li>OFF:关闭。</li>默认值:ON。
|
|
55658
55670
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
55659
55671
|
:type Switch: str
|
|
55660
|
-
:param _ImageAreaBoxes:
|
|
55661
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
55672
|
+
:param _ImageAreaBoxes: <p>需要擦除的多个框选区域,最多开启16个区域。<br>注意:此字段可能返回 null,表示取不到有效值。</p>
|
|
55662
55673
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
55663
55674
|
:type ImageAreaBoxes: list of ImageAreaBoxInfo
|
|
55664
|
-
:param _DetectTypes:
|
|
55665
|
-
<li>logo:图标;</li>
|
|
55666
|
-
<li>text:文字;</li>
|
|
55667
|
-
<li>watermark:水印;</li>
|
|
55675
|
+
:param _DetectTypes: <p>图片框选区域类型,可选值:</p><li>logo:图标;</li><li>text:文字;</li><li>watermark:水印;</li>
|
|
55668
55676
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
55669
55677
|
:type DetectTypes: list of str
|
|
55678
|
+
:param _EraseStrength: <p>水印擦除能力档位,可选值:</p><p>枚举值:</p><ul><li>low: 快速擦除档位</li><li>mid: 擦除效果和速度均衡档位</li><li>high: 进阶擦除效果档位</li></ul><p>注意:根据擦除场景复杂度选择对应擦除档位。</p>
|
|
55679
|
+
:type EraseStrength: str
|
|
55680
|
+
:param _WatermarkType: <p>擦除图像水印时,选择特定水印类型,可选值:</p><p>枚举值:</p><ul><li>corner_watermark: 擦除常规定点水印</li><li>tiled_watermark: 擦除全图平铺水印</li><li>auto_detect_type: 自动识别水印类型擦除</li><li>selected_watermark: 跳过自动擦除,按指定位置进行水印擦除</li></ul>
|
|
55681
|
+
:type WatermarkType: str
|
|
55670
55682
|
"""
|
|
55671
55683
|
self._Switch = None
|
|
55672
55684
|
self._ImageAreaBoxes = None
|
|
55673
55685
|
self._DetectTypes = None
|
|
55686
|
+
self._EraseStrength = None
|
|
55687
|
+
self._WatermarkType = None
|
|
55674
55688
|
|
|
55675
55689
|
@property
|
|
55676
55690
|
def Switch(self):
|
|
55677
|
-
r"""
|
|
55678
|
-
<li>ON:开启;</li>
|
|
55679
|
-
<li>OFF:关闭。</li>
|
|
55680
|
-
默认值:ON。
|
|
55691
|
+
r"""<p>能力配置开关,可选值:</p><li>ON:开启;</li><li>OFF:关闭。</li>默认值:ON。
|
|
55681
55692
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
55682
55693
|
:rtype: str
|
|
55683
55694
|
"""
|
|
@@ -55689,8 +55700,7 @@ class ImageEraseLogoConfig(AbstractModel):
|
|
|
55689
55700
|
|
|
55690
55701
|
@property
|
|
55691
55702
|
def ImageAreaBoxes(self):
|
|
55692
|
-
r"""
|
|
55693
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
55703
|
+
r"""<p>需要擦除的多个框选区域,最多开启16个区域。<br>注意:此字段可能返回 null,表示取不到有效值。</p>
|
|
55694
55704
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
55695
55705
|
:rtype: list of ImageAreaBoxInfo
|
|
55696
55706
|
"""
|
|
@@ -55702,10 +55712,7 @@ class ImageEraseLogoConfig(AbstractModel):
|
|
|
55702
55712
|
|
|
55703
55713
|
@property
|
|
55704
55714
|
def DetectTypes(self):
|
|
55705
|
-
r"""
|
|
55706
|
-
<li>logo:图标;</li>
|
|
55707
|
-
<li>text:文字;</li>
|
|
55708
|
-
<li>watermark:水印;</li>
|
|
55715
|
+
r"""<p>图片框选区域类型,可选值:</p><li>logo:图标;</li><li>text:文字;</li><li>watermark:水印;</li>
|
|
55709
55716
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
55710
55717
|
:rtype: list of str
|
|
55711
55718
|
"""
|
|
@@ -55715,6 +55722,28 @@ class ImageEraseLogoConfig(AbstractModel):
|
|
|
55715
55722
|
def DetectTypes(self, DetectTypes):
|
|
55716
55723
|
self._DetectTypes = DetectTypes
|
|
55717
55724
|
|
|
55725
|
+
@property
|
|
55726
|
+
def EraseStrength(self):
|
|
55727
|
+
r"""<p>水印擦除能力档位,可选值:</p><p>枚举值:</p><ul><li>low: 快速擦除档位</li><li>mid: 擦除效果和速度均衡档位</li><li>high: 进阶擦除效果档位</li></ul><p>注意:根据擦除场景复杂度选择对应擦除档位。</p>
|
|
55728
|
+
:rtype: str
|
|
55729
|
+
"""
|
|
55730
|
+
return self._EraseStrength
|
|
55731
|
+
|
|
55732
|
+
@EraseStrength.setter
|
|
55733
|
+
def EraseStrength(self, EraseStrength):
|
|
55734
|
+
self._EraseStrength = EraseStrength
|
|
55735
|
+
|
|
55736
|
+
@property
|
|
55737
|
+
def WatermarkType(self):
|
|
55738
|
+
r"""<p>擦除图像水印时,选择特定水印类型,可选值:</p><p>枚举值:</p><ul><li>corner_watermark: 擦除常规定点水印</li><li>tiled_watermark: 擦除全图平铺水印</li><li>auto_detect_type: 自动识别水印类型擦除</li><li>selected_watermark: 跳过自动擦除,按指定位置进行水印擦除</li></ul>
|
|
55739
|
+
:rtype: str
|
|
55740
|
+
"""
|
|
55741
|
+
return self._WatermarkType
|
|
55742
|
+
|
|
55743
|
+
@WatermarkType.setter
|
|
55744
|
+
def WatermarkType(self, WatermarkType):
|
|
55745
|
+
self._WatermarkType = WatermarkType
|
|
55746
|
+
|
|
55718
55747
|
|
|
55719
55748
|
def _deserialize(self, params):
|
|
55720
55749
|
self._Switch = params.get("Switch")
|
|
@@ -55725,6 +55754,8 @@ class ImageEraseLogoConfig(AbstractModel):
|
|
|
55725
55754
|
obj._deserialize(item)
|
|
55726
55755
|
self._ImageAreaBoxes.append(obj)
|
|
55727
55756
|
self._DetectTypes = params.get("DetectTypes")
|
|
55757
|
+
self._EraseStrength = params.get("EraseStrength")
|
|
55758
|
+
self._WatermarkType = params.get("WatermarkType")
|
|
55728
55759
|
memeber_set = set(params.keys())
|
|
55729
55760
|
for name, value in vars(self).items():
|
|
55730
55761
|
property_name = name[1:]
|
|
@@ -95226,7 +95257,7 @@ class UnderstandImageConfig(AbstractModel):
|
|
|
95226
95257
|
|
|
95227
95258
|
def __init__(self):
|
|
95228
95259
|
r"""
|
|
95229
|
-
:param _Model: <p>图片理解模型</p><p>枚举值:</p><ul><li>
|
|
95260
|
+
:param _Model: <p>图片理解模型</p><p>枚举值:</p><ul><li>understand-1.0-lite: 轻量理解模型</li><li>understand-1.0-flash: 质量-速度平衡理解模型</li><li>understand-1.0-pro: 高质量理解模型</li></ul>
|
|
95230
95261
|
:type Model: str
|
|
95231
95262
|
:param _Prompt: <p>图片理解指令</p>
|
|
95232
95263
|
:type Prompt: str
|
|
@@ -95239,7 +95270,7 @@ class UnderstandImageConfig(AbstractModel):
|
|
|
95239
95270
|
|
|
95240
95271
|
@property
|
|
95241
95272
|
def Model(self):
|
|
95242
|
-
r"""<p>图片理解模型</p><p>枚举值:</p><ul><li>
|
|
95273
|
+
r"""<p>图片理解模型</p><p>枚举值:</p><ul><li>understand-1.0-lite: 轻量理解模型</li><li>understand-1.0-flash: 质量-速度平衡理解模型</li><li>understand-1.0-pro: 高质量理解模型</li></ul>
|
|
95243
95274
|
:rtype: str
|
|
95244
95275
|
"""
|
|
95245
95276
|
return self._Model
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-mps
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.179
|
|
4
4
|
Summary: Tencent Cloud Mps SDK for Python
|
|
5
5
|
Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
|
|
6
6
|
Author: Tencent Cloud
|
|
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
|
|
|
15
15
|
Classifier: Programming Language :: Python :: 3
|
|
16
16
|
Classifier: Programming Language :: Python :: 3.6
|
|
17
17
|
Classifier: Programming Language :: Python :: 3.7
|
|
18
|
-
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.
|
|
18
|
+
Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.179
|
|
19
19
|
|
|
20
20
|
============================
|
|
21
21
|
Tencent Cloud SDK for Python
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
tencentcloud-sdk-python-common<4.0.0,>=3.1.179
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
tencentcloud-sdk-python-common<4.0.0,>=3.1.177
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|