tencentcloud-sdk-python-mps 3.1.181__tar.gz → 3.1.183__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.
Files changed (17) hide show
  1. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/setup.py +1 -1
  3. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/tencentcloud/__init__.py +1 -1
  4. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/tencentcloud/mps/v20190612/models.py +256 -2
  5. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/tencentcloud_sdk_python_mps.egg-info/PKG-INFO +2 -2
  6. tencentcloud_sdk_python_mps-3.1.183/tencentcloud_sdk_python_mps.egg-info/requires.txt +1 -0
  7. tencentcloud_sdk_python_mps-3.1.181/tencentcloud_sdk_python_mps.egg-info/requires.txt +0 -1
  8. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/README.rst +0 -0
  9. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/setup.cfg +0 -0
  10. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/tencentcloud/mps/__init__.py +0 -0
  11. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/tencentcloud/mps/v20190612/__init__.py +0 -0
  12. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/tencentcloud/mps/v20190612/errorcodes.py +0 -0
  13. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/tencentcloud/mps/v20190612/mps_client.py +0 -0
  14. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/tencentcloud/mps/v20190612/mps_client_async.py +0 -0
  15. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/tencentcloud_sdk_python_mps.egg-info/SOURCES.txt +0 -0
  16. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/tencentcloud_sdk_python_mps.egg-info/dependency_links.txt +0 -0
  17. {tencentcloud_sdk_python_mps-3.1.181 → tencentcloud_sdk_python_mps-3.1.183}/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.181
3
+ Version: 3.1.183
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.181
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.183
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.181,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.183,<4.0.0"],
12
12
 
13
13
  version=tencentcloud.__version__,
14
14
  description='Tencent Cloud Mps SDK for Python',
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.1.181'
17
+ __version__ = '3.1.183'
@@ -7585,6 +7585,94 @@ class AiAnalysisTaskVideoRemakeResult(AbstractModel):
7585
7585
 
7586
7586
 
7587
7587
 
7588
+ class AiComposeConfig(AbstractModel):
7589
+ r"""图片处理图层融合配置
7590
+
7591
+ """
7592
+
7593
+ def __init__(self):
7594
+ r"""
7595
+ :param _Switch: <p>能力配置开关。</p><li>ON:开启(默认值);</li><li>OFF:关闭。</li>
7596
+ :type Switch: str
7597
+ :param _Model: <p>合成模型。可选值:compose-1.0-lite(默认值,可不传)。</p>
7598
+ :type Model: str
7599
+ :param _Canvas: <p>画布定义。可省略:省略时取 ZIndex 最小的图层(底层图层)的自然尺寸。</p>
7600
+ :type Canvas: :class:`tencentcloud.mps.v20190612.models.ImageComposeCanvas`
7601
+ :param _Layers: <p>图层列表,图层的唯一来源。至少 1 层、最多 20 层。</p>
7602
+ :type Layers: list of ImageComposeLayer
7603
+ """
7604
+ self._Switch = None
7605
+ self._Model = None
7606
+ self._Canvas = None
7607
+ self._Layers = None
7608
+
7609
+ @property
7610
+ def Switch(self):
7611
+ r"""<p>能力配置开关。</p><li>ON:开启(默认值);</li><li>OFF:关闭。</li>
7612
+ :rtype: str
7613
+ """
7614
+ return self._Switch
7615
+
7616
+ @Switch.setter
7617
+ def Switch(self, Switch):
7618
+ self._Switch = Switch
7619
+
7620
+ @property
7621
+ def Model(self):
7622
+ r"""<p>合成模型。可选值:compose-1.0-lite(默认值,可不传)。</p>
7623
+ :rtype: str
7624
+ """
7625
+ return self._Model
7626
+
7627
+ @Model.setter
7628
+ def Model(self, Model):
7629
+ self._Model = Model
7630
+
7631
+ @property
7632
+ def Canvas(self):
7633
+ r"""<p>画布定义。可省略:省略时取 ZIndex 最小的图层(底层图层)的自然尺寸。</p>
7634
+ :rtype: :class:`tencentcloud.mps.v20190612.models.ImageComposeCanvas`
7635
+ """
7636
+ return self._Canvas
7637
+
7638
+ @Canvas.setter
7639
+ def Canvas(self, Canvas):
7640
+ self._Canvas = Canvas
7641
+
7642
+ @property
7643
+ def Layers(self):
7644
+ r"""<p>图层列表,图层的唯一来源。至少 1 层、最多 20 层。</p>
7645
+ :rtype: list of ImageComposeLayer
7646
+ """
7647
+ return self._Layers
7648
+
7649
+ @Layers.setter
7650
+ def Layers(self, Layers):
7651
+ self._Layers = Layers
7652
+
7653
+
7654
+ def _deserialize(self, params):
7655
+ self._Switch = params.get("Switch")
7656
+ self._Model = params.get("Model")
7657
+ if params.get("Canvas") is not None:
7658
+ self._Canvas = ImageComposeCanvas()
7659
+ self._Canvas._deserialize(params.get("Canvas"))
7660
+ if params.get("Layers") is not None:
7661
+ self._Layers = []
7662
+ for item in params.get("Layers"):
7663
+ obj = ImageComposeLayer()
7664
+ obj._deserialize(item)
7665
+ self._Layers.append(obj)
7666
+ memeber_set = set(params.keys())
7667
+ for name, value in vars(self).items():
7668
+ property_name = name[1:]
7669
+ if property_name in memeber_set:
7670
+ memeber_set.remove(property_name)
7671
+ if len(memeber_set) > 0:
7672
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
7673
+
7674
+
7675
+
7588
7676
  class AiContentReviewResult(AbstractModel):
7589
7677
  r"""内容审核结果
7590
7678
 
@@ -8316,7 +8404,7 @@ class AiPosterSuiteConfig(AbstractModel):
8316
8404
  :type PanelResolution: str
8317
8405
  :param _CustomVariables: <p>用户自定义变量。</p>
8318
8406
  :type CustomVariables: list of CustomVariable
8319
- :param _Model: <p>模型名称。</p><p>枚举值:</p><ul><li>WAND-suite-1.0-flash: WAND-suite-1.0-flash</li></ul>
8407
+ :param _Model: <p>模型名称。</p><p>枚举值:</p><ul><li>suite-1.0-flash: suite-1.0-flash</li></ul>
8320
8408
  :type Model: str
8321
8409
  """
8322
8410
  self._Mode = None
@@ -8407,7 +8495,7 @@ class AiPosterSuiteConfig(AbstractModel):
8407
8495
 
8408
8496
  @property
8409
8497
  def Model(self):
8410
- r"""<p>模型名称。</p><p>枚举值:</p><ul><li>WAND-suite-1.0-flash: WAND-suite-1.0-flash</li></ul>
8498
+ r"""<p>模型名称。</p><p>枚举值:</p><ul><li>suite-1.0-flash: suite-1.0-flash</li></ul>
8411
8499
  :rtype: str
8412
8500
  """
8413
8501
  return self._Model
@@ -55343,6 +55431,155 @@ class ImageAreaBoxInfo(AbstractModel):
55343
55431
 
55344
55432
 
55345
55433
 
55434
+ class ImageComposeCanvas(AbstractModel):
55435
+ r"""图片处理图层融合功能画布参数
55436
+
55437
+ """
55438
+
55439
+ def __init__(self):
55440
+ r"""
55441
+ :param _Width: <p>画布宽度,取值范围 [1, 10240],需与 Height 同时设置。</p>
55442
+ :type Width: int
55443
+ :param _Height: <p>画布高度,取值范围 [1, 10240],需与 Width 同时设置。</p>
55444
+ :type Height: int
55445
+ :param _Background: <p>画布底色,统一为 8 位十六进制 #RRGGBBAA(含 alpha),原样作为画布底色。缺省 #00000000(全透明)。示例:#FFFFFFFF 不透明白、#FFFFFF80 半透明白。</p><p>输出格式不支持透明通道时(如 JPEG),透明区域按该底色的 RGB 塌陷;缺省值会得到黑底,需要白底请显式传 #FFFFFFFF。</p>
55446
+ :type Background: str
55447
+ """
55448
+ self._Width = None
55449
+ self._Height = None
55450
+ self._Background = None
55451
+
55452
+ @property
55453
+ def Width(self):
55454
+ r"""<p>画布宽度,取值范围 [1, 10240],需与 Height 同时设置。</p>
55455
+ :rtype: int
55456
+ """
55457
+ return self._Width
55458
+
55459
+ @Width.setter
55460
+ def Width(self, Width):
55461
+ self._Width = Width
55462
+
55463
+ @property
55464
+ def Height(self):
55465
+ r"""<p>画布高度,取值范围 [1, 10240],需与 Width 同时设置。</p>
55466
+ :rtype: int
55467
+ """
55468
+ return self._Height
55469
+
55470
+ @Height.setter
55471
+ def Height(self, Height):
55472
+ self._Height = Height
55473
+
55474
+ @property
55475
+ def Background(self):
55476
+ r"""<p>画布底色,统一为 8 位十六进制 #RRGGBBAA(含 alpha),原样作为画布底色。缺省 #00000000(全透明)。示例:#FFFFFFFF 不透明白、#FFFFFF80 半透明白。</p><p>输出格式不支持透明通道时(如 JPEG),透明区域按该底色的 RGB 塌陷;缺省值会得到黑底,需要白底请显式传 #FFFFFFFF。</p>
55477
+ :rtype: str
55478
+ """
55479
+ return self._Background
55480
+
55481
+ @Background.setter
55482
+ def Background(self, Background):
55483
+ self._Background = Background
55484
+
55485
+
55486
+ def _deserialize(self, params):
55487
+ self._Width = params.get("Width")
55488
+ self._Height = params.get("Height")
55489
+ self._Background = params.get("Background")
55490
+ memeber_set = set(params.keys())
55491
+ for name, value in vars(self).items():
55492
+ property_name = name[1:]
55493
+ if property_name in memeber_set:
55494
+ memeber_set.remove(property_name)
55495
+ if len(memeber_set) > 0:
55496
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
55497
+
55498
+
55499
+
55500
+ class ImageComposeLayer(AbstractModel):
55501
+ r"""图片处理图层融合功能图层数据结构
55502
+
55503
+ """
55504
+
55505
+ def __init__(self):
55506
+ r"""
55507
+ :param _ZIndex: <p>图层堆叠顺序,必填。同一请求内不可重复,数值越大越靠上(建议从 0 开始连续编号)。</p>
55508
+ :type ZIndex: int
55509
+ :param _InputInfo: <p>图层图片来源,必填。支持 URL / COS / AWS-S3 / VOD。</p>
55510
+ :type InputInfo: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
55511
+ :param _BoundingBox: <p>图层在画布中的位置与尺寸,必填。长度为 4 的数组 [X1, Y1, X2, Y2]:左上角 + 右下角坐标,要求 X2 &gt; X1、Y2 &gt; Y1。</p><p>两种语义(与图片擦除能力的 BoundingBox 对齐):</p><ul><li>像素:坐标值,取值范围 [-10240, 10240],允许为负或超出画布(超出部分被裁掉);</li><li>比例:各值 ∈ [-1, 1],按画布宽高换算(x 乘画布宽、y 乘画布高)。</li></ul><p>图层会缩放填满该矩形;超出画布的部分一律裁掉,输出尺寸恒等于画布尺寸。</p>
55512
+ :type BoundingBox: list of float
55513
+ :param _BoundingBoxUnitType: <p>坐标单位,与图片擦除能力对齐。取值:</p><ul><li>0:自动判定(不传时的默认值);</li><li>1:比例;</li><li>2:像素。</li></ul><p>自动判定规则:四个值全部大于 1 按像素解释、全部不大于 1 按比例解释;混合取值会返回InvalidParameter,建议始终显式指定。</p>
55514
+ :type BoundingBoxUnitType: int
55515
+ """
55516
+ self._ZIndex = None
55517
+ self._InputInfo = None
55518
+ self._BoundingBox = None
55519
+ self._BoundingBoxUnitType = None
55520
+
55521
+ @property
55522
+ def ZIndex(self):
55523
+ r"""<p>图层堆叠顺序,必填。同一请求内不可重复,数值越大越靠上(建议从 0 开始连续编号)。</p>
55524
+ :rtype: int
55525
+ """
55526
+ return self._ZIndex
55527
+
55528
+ @ZIndex.setter
55529
+ def ZIndex(self, ZIndex):
55530
+ self._ZIndex = ZIndex
55531
+
55532
+ @property
55533
+ def InputInfo(self):
55534
+ r"""<p>图层图片来源,必填。支持 URL / COS / AWS-S3 / VOD。</p>
55535
+ :rtype: :class:`tencentcloud.mps.v20190612.models.MediaInputInfo`
55536
+ """
55537
+ return self._InputInfo
55538
+
55539
+ @InputInfo.setter
55540
+ def InputInfo(self, InputInfo):
55541
+ self._InputInfo = InputInfo
55542
+
55543
+ @property
55544
+ def BoundingBox(self):
55545
+ r"""<p>图层在画布中的位置与尺寸,必填。长度为 4 的数组 [X1, Y1, X2, Y2]:左上角 + 右下角坐标,要求 X2 &gt; X1、Y2 &gt; Y1。</p><p>两种语义(与图片擦除能力的 BoundingBox 对齐):</p><ul><li>像素:坐标值,取值范围 [-10240, 10240],允许为负或超出画布(超出部分被裁掉);</li><li>比例:各值 ∈ [-1, 1],按画布宽高换算(x 乘画布宽、y 乘画布高)。</li></ul><p>图层会缩放填满该矩形;超出画布的部分一律裁掉,输出尺寸恒等于画布尺寸。</p>
55546
+ :rtype: list of float
55547
+ """
55548
+ return self._BoundingBox
55549
+
55550
+ @BoundingBox.setter
55551
+ def BoundingBox(self, BoundingBox):
55552
+ self._BoundingBox = BoundingBox
55553
+
55554
+ @property
55555
+ def BoundingBoxUnitType(self):
55556
+ r"""<p>坐标单位,与图片擦除能力对齐。取值:</p><ul><li>0:自动判定(不传时的默认值);</li><li>1:比例;</li><li>2:像素。</li></ul><p>自动判定规则:四个值全部大于 1 按像素解释、全部不大于 1 按比例解释;混合取值会返回InvalidParameter,建议始终显式指定。</p>
55557
+ :rtype: int
55558
+ """
55559
+ return self._BoundingBoxUnitType
55560
+
55561
+ @BoundingBoxUnitType.setter
55562
+ def BoundingBoxUnitType(self, BoundingBoxUnitType):
55563
+ self._BoundingBoxUnitType = BoundingBoxUnitType
55564
+
55565
+
55566
+ def _deserialize(self, params):
55567
+ self._ZIndex = params.get("ZIndex")
55568
+ if params.get("InputInfo") is not None:
55569
+ self._InputInfo = MediaInputInfo()
55570
+ self._InputInfo._deserialize(params.get("InputInfo"))
55571
+ self._BoundingBox = params.get("BoundingBox")
55572
+ self._BoundingBoxUnitType = params.get("BoundingBoxUnitType")
55573
+ memeber_set = set(params.keys())
55574
+ for name, value in vars(self).items():
55575
+ property_name = name[1:]
55576
+ if property_name in memeber_set:
55577
+ memeber_set.remove(property_name)
55578
+ if len(memeber_set) > 0:
55579
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
55580
+
55581
+
55582
+
55346
55583
  class ImageDenoiseConfig(AbstractModel):
55347
55584
  r"""图片降噪配置
55348
55585
 
@@ -57024,6 +57261,8 @@ class ImageTaskInput(AbstractModel):
57024
57261
  :type UnderstandImageConfig: :class:`tencentcloud.mps.v20190612.models.UnderstandImageConfig`
57025
57262
  :param _ImageQualityConfig: <p>图片质量评估配置</p>
57026
57263
  :type ImageQualityConfig: :class:`tencentcloud.mps.v20190612.models.ImageQualityConfig`
57264
+ :param _AiComposeConfig: <p>图层融合配置。</p>
57265
+ :type AiComposeConfig: :class:`tencentcloud.mps.v20190612.models.AiComposeConfig`
57027
57266
  """
57028
57267
  self._EncodeConfig = None
57029
57268
  self._EnhanceConfig = None
@@ -57039,6 +57278,7 @@ class ImageTaskInput(AbstractModel):
57039
57278
  self._AiStoryboardConfig = None
57040
57279
  self._UnderstandImageConfig = None
57041
57280
  self._ImageQualityConfig = None
57281
+ self._AiComposeConfig = None
57042
57282
 
57043
57283
  @property
57044
57284
  def EncodeConfig(self):
@@ -57198,6 +57438,17 @@ class ImageTaskInput(AbstractModel):
57198
57438
  def ImageQualityConfig(self, ImageQualityConfig):
57199
57439
  self._ImageQualityConfig = ImageQualityConfig
57200
57440
 
57441
+ @property
57442
+ def AiComposeConfig(self):
57443
+ r"""<p>图层融合配置。</p>
57444
+ :rtype: :class:`tencentcloud.mps.v20190612.models.AiComposeConfig`
57445
+ """
57446
+ return self._AiComposeConfig
57447
+
57448
+ @AiComposeConfig.setter
57449
+ def AiComposeConfig(self, AiComposeConfig):
57450
+ self._AiComposeConfig = AiComposeConfig
57451
+
57201
57452
 
57202
57453
  def _deserialize(self, params):
57203
57454
  if params.get("EncodeConfig") is not None:
@@ -57242,6 +57493,9 @@ class ImageTaskInput(AbstractModel):
57242
57493
  if params.get("ImageQualityConfig") is not None:
57243
57494
  self._ImageQualityConfig = ImageQualityConfig()
57244
57495
  self._ImageQualityConfig._deserialize(params.get("ImageQualityConfig"))
57496
+ if params.get("AiComposeConfig") is not None:
57497
+ self._AiComposeConfig = AiComposeConfig()
57498
+ self._AiComposeConfig._deserialize(params.get("AiComposeConfig"))
57245
57499
  memeber_set = set(params.keys())
57246
57500
  for name, value in vars(self).items():
57247
57501
  property_name = name[1:]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-mps
3
- Version: 3.1.181
3
+ Version: 3.1.183
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.181
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.183
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.183
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.1.181