tencentcloud-sdk-python-facefusion 3.0.1482__tar.gz → 3.1.68__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 (22) hide show
  1. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/PKG-INFO +2 -2
  2. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/setup.py +2 -1
  3. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud/__init__.py +1 -1
  4. tencentcloud_sdk_python_facefusion-3.1.68/tencentcloud/facefusion/v20181201/facefusion_client_async.py +86 -0
  5. tencentcloud_sdk_python_facefusion-3.1.68/tencentcloud/facefusion/v20220927/facefusion_client_async.py +83 -0
  6. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud/facefusion/v20220927/models.py +8 -8
  7. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud_sdk_python_facefusion.egg-info/PKG-INFO +2 -2
  8. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud_sdk_python_facefusion.egg-info/SOURCES.txt +2 -0
  9. tencentcloud_sdk_python_facefusion-3.1.68/tencentcloud_sdk_python_facefusion.egg-info/requires.txt +1 -0
  10. tencentcloud_sdk_python_facefusion-3.0.1482/tencentcloud_sdk_python_facefusion.egg-info/requires.txt +0 -1
  11. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/README.rst +0 -0
  12. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/setup.cfg +0 -0
  13. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud/facefusion/__init__.py +0 -0
  14. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud/facefusion/v20181201/__init__.py +0 -0
  15. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud/facefusion/v20181201/errorcodes.py +0 -0
  16. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud/facefusion/v20181201/facefusion_client.py +0 -0
  17. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud/facefusion/v20181201/models.py +0 -0
  18. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud/facefusion/v20220927/__init__.py +0 -0
  19. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud/facefusion/v20220927/errorcodes.py +0 -0
  20. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud/facefusion/v20220927/facefusion_client.py +0 -0
  21. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud_sdk_python_facefusion.egg-info/dependency_links.txt +0 -0
  22. {tencentcloud_sdk_python_facefusion-3.0.1482 → tencentcloud_sdk_python_facefusion-3.1.68}/tencentcloud_sdk_python_facefusion.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-facefusion
3
- Version: 3.0.1482
3
+ Version: 3.1.68
4
4
  Summary: Tencent Cloud Facefusion 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.0.1482
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.68
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -8,7 +8,8 @@ ROOT = os.path.dirname(__file__)
8
8
 
9
9
  setup(
10
10
  name='tencentcloud-sdk-python-facefusion',
11
- install_requires=["tencentcloud-sdk-python-common>=3.0.1482,<4.0.0"],
11
+ install_requires=["tencentcloud-sdk-python-common>=3.1.68,<4.0.0"],
12
+
12
13
  version=tencentcloud.__version__,
13
14
  description='Tencent Cloud Facefusion SDK for Python',
14
15
  long_description=open('README.rst').read(),
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1482'
17
+ __version__ = '3.1.68'
@@ -0,0 +1,86 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.facefusion.v20181201 import models
20
+ from typing import Dict
21
+
22
+
23
+ class FacefusionClient(AbstractClient):
24
+ _apiVersion = '2018-12-01'
25
+ _endpoint = 'facefusion.tencentcloudapi.com'
26
+ _service = 'facefusion'
27
+
28
+ async def DescribeMaterialList(
29
+ self,
30
+ request: models.DescribeMaterialListRequest,
31
+ opts: Dict = None,
32
+ ) -> models.DescribeMaterialListResponse:
33
+ """
34
+ 通常通过腾讯云人脸融合的控制台可以查看到素材相关的参数数据,可以满足使用。本接口返回活动的素材数据,包括素材状态等。用于用户通过Api查看素材相关数据,方便使用。
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "DescribeMaterialList"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.DescribeMaterialListResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def FaceFusion(
47
+ self,
48
+ request: models.FaceFusionRequest,
49
+ opts: Dict = None,
50
+ ) -> models.FaceFusionResponse:
51
+ """
52
+ 本接口用于人脸融合,用户上传人脸图片,获取与模板融合后的人脸图片。未发布的活动请求频率限制为1次/秒,已发布的活动请求频率限制50次/秒。如有需要提高活动的请求频率限制,请在控制台中申请。
53
+ >
54
+ - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
55
+ """
56
+
57
+ kwargs = {}
58
+ kwargs["action"] = "FaceFusion"
59
+ kwargs["params"] = request._serialize()
60
+ kwargs["resp_cls"] = models.FaceFusionResponse
61
+ kwargs["headers"] = request.headers
62
+ kwargs["opts"] = opts or {}
63
+
64
+ return await self.call_and_deserialize(**kwargs)
65
+
66
+ async def FuseFace(
67
+ self,
68
+ request: models.FuseFaceRequest,
69
+ opts: Dict = None,
70
+ ) -> models.FuseFaceResponse:
71
+ """
72
+ 本接口用于单脸、多脸融合,用户上传人脸图片,获取与模板融合后的人脸图片。查看 <a href="https://cloud.tencent.com/document/product/670/38247" target="_blank">选脸融合接入指引</a>。
73
+
74
+ 未发布的活动请求频率限制为1次/秒,已发布的活动请求频率限制50次/秒。如有需要提高活动的请求频率限制,请在控制台中申请。
75
+ >
76
+ - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
77
+ """
78
+
79
+ kwargs = {}
80
+ kwargs["action"] = "FuseFace"
81
+ kwargs["params"] = request._serialize()
82
+ kwargs["resp_cls"] = models.FuseFaceResponse
83
+ kwargs["headers"] = request.headers
84
+ kwargs["opts"] = opts or {}
85
+
86
+ return await self.call_and_deserialize(**kwargs)
@@ -0,0 +1,83 @@
1
+ # -*- coding: utf8 -*-
2
+ # Copyright (c) 2017-2025 Tencent. All Rights Reserved.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+
17
+
18
+ from tencentcloud.common.abstract_client_async import AbstractClient
19
+ from tencentcloud.facefusion.v20220927 import models
20
+ from typing import Dict
21
+
22
+
23
+ class FacefusionClient(AbstractClient):
24
+ _apiVersion = '2022-09-27'
25
+ _endpoint = 'facefusion.tencentcloudapi.com'
26
+ _service = 'facefusion'
27
+
28
+ async def DescribeMaterialList(
29
+ self,
30
+ request: models.DescribeMaterialListRequest,
31
+ opts: Dict = None,
32
+ ) -> models.DescribeMaterialListResponse:
33
+ """
34
+ 通常通过腾讯云人脸融合的控制台可以查看到素材相关的参数数据,可以满足使用。本接口返回活动的素材数据,包括素材状态等。用于用户通过Api查看素材相关数据,方便使用。
35
+ """
36
+
37
+ kwargs = {}
38
+ kwargs["action"] = "DescribeMaterialList"
39
+ kwargs["params"] = request._serialize()
40
+ kwargs["resp_cls"] = models.DescribeMaterialListResponse
41
+ kwargs["headers"] = request.headers
42
+ kwargs["opts"] = opts or {}
43
+
44
+ return await self.call_and_deserialize(**kwargs)
45
+
46
+ async def FuseFace(
47
+ self,
48
+ request: models.FuseFaceRequest,
49
+ opts: Dict = None,
50
+ ) -> models.FuseFaceResponse:
51
+ """
52
+ 本接口用于单脸、多脸、选脸融合,上传人脸图片,得到与素材模板融合后的人脸图片。支持为融合结果图添加标识。查看 <a href="https://cloud.tencent.com/document/product/670/38247" target="_blank">融合接入指引</a>。
53
+
54
+ >
55
+ - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
56
+ """
57
+
58
+ kwargs = {}
59
+ kwargs["action"] = "FuseFace"
60
+ kwargs["params"] = request._serialize()
61
+ kwargs["resp_cls"] = models.FuseFaceResponse
62
+ kwargs["headers"] = request.headers
63
+ kwargs["opts"] = opts or {}
64
+
65
+ return await self.call_and_deserialize(**kwargs)
66
+
67
+ async def FuseFaceUltra(
68
+ self,
69
+ request: models.FuseFaceUltraRequest,
70
+ opts: Dict = None,
71
+ ) -> models.FuseFaceUltraResponse:
72
+ """
73
+ 图片人脸融合(专业版)为同步接口,支持自定义美颜、人脸增强、牙齿增强、拉脸等参数,最高支持8K分辨率,有多个模型类型供选择。查看 <a href="https://cloud.tencent.com/document/product/670/38247" target="_blank">融合接入指引</a>。
74
+ """
75
+
76
+ kwargs = {}
77
+ kwargs["action"] = "FuseFaceUltra"
78
+ kwargs["params"] = request._serialize()
79
+ kwargs["resp_cls"] = models.FuseFaceUltraResponse
80
+ kwargs["headers"] = request.headers
81
+ kwargs["opts"] = opts or {}
82
+
83
+ return await self.call_and_deserialize(**kwargs)
@@ -171,13 +171,13 @@ class FaceInfo(AbstractModel):
171
171
 
172
172
  def __init__(self):
173
173
  r"""
174
- :param _X: 人脸框的横坐标
174
+ :param _X: <p>人脸框的横坐标</p>
175
175
  :type X: int
176
- :param _Y: 人脸框的纵坐标
176
+ :param _Y: <p>人脸框的纵坐标</p>
177
177
  :type Y: int
178
- :param _Width: 人脸框的宽度
178
+ :param _Width: <p>人脸框的宽度。<br>单位:px</p>
179
179
  :type Width: int
180
- :param _Height: 人脸框的高度
180
+ :param _Height: <p>人脸框的高度。<br>单位:px</p>
181
181
  :type Height: int
182
182
  """
183
183
  self._X = None
@@ -187,7 +187,7 @@ class FaceInfo(AbstractModel):
187
187
 
188
188
  @property
189
189
  def X(self):
190
- r"""人脸框的横坐标
190
+ r"""<p>人脸框的横坐标</p>
191
191
  :rtype: int
192
192
  """
193
193
  return self._X
@@ -198,7 +198,7 @@ class FaceInfo(AbstractModel):
198
198
 
199
199
  @property
200
200
  def Y(self):
201
- r"""人脸框的纵坐标
201
+ r"""<p>人脸框的纵坐标</p>
202
202
  :rtype: int
203
203
  """
204
204
  return self._Y
@@ -209,7 +209,7 @@ class FaceInfo(AbstractModel):
209
209
 
210
210
  @property
211
211
  def Width(self):
212
- r"""人脸框的宽度
212
+ r"""<p>人脸框的宽度。<br>单位:px</p>
213
213
  :rtype: int
214
214
  """
215
215
  return self._Width
@@ -220,7 +220,7 @@ class FaceInfo(AbstractModel):
220
220
 
221
221
  @property
222
222
  def Height(self):
223
- r"""人脸框的高度
223
+ r"""<p>人脸框的高度。<br>单位:px</p>
224
224
  :rtype: int
225
225
  """
226
226
  return self._Height
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-facefusion
3
- Version: 3.0.1482
3
+ Version: 3.1.68
4
4
  Summary: Tencent Cloud Facefusion 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.0.1482
18
+ Requires-Dist: tencentcloud-sdk-python-common<4.0.0,>=3.1.68
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -6,10 +6,12 @@ tencentcloud/facefusion/__init__.py
6
6
  tencentcloud/facefusion/v20181201/__init__.py
7
7
  tencentcloud/facefusion/v20181201/errorcodes.py
8
8
  tencentcloud/facefusion/v20181201/facefusion_client.py
9
+ tencentcloud/facefusion/v20181201/facefusion_client_async.py
9
10
  tencentcloud/facefusion/v20181201/models.py
10
11
  tencentcloud/facefusion/v20220927/__init__.py
11
12
  tencentcloud/facefusion/v20220927/errorcodes.py
12
13
  tencentcloud/facefusion/v20220927/facefusion_client.py
14
+ tencentcloud/facefusion/v20220927/facefusion_client_async.py
13
15
  tencentcloud/facefusion/v20220927/models.py
14
16
  tencentcloud_sdk_python_facefusion.egg-info/PKG-INFO
15
17
  tencentcloud_sdk_python_facefusion.egg-info/SOURCES.txt
@@ -0,0 +1 @@
1
+ tencentcloud-sdk-python-common<4.0.0,>=3.1.68
@@ -1 +0,0 @@
1
- tencentcloud-sdk-python-common<4.0.0,>=3.0.1482