tencentcloud-sdk-python-ai3d 3.1.8__tar.gz → 3.1.17__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_ai3d-3.1.8 → tencentcloud_sdk_python_ai3d-3.1.17}/PKG-INFO +2 -2
- {tencentcloud_sdk_python_ai3d-3.1.8 → tencentcloud_sdk_python_ai3d-3.1.17}/setup.py +1 -1
- {tencentcloud_sdk_python_ai3d-3.1.8 → tencentcloud_sdk_python_ai3d-3.1.17}/tencentcloud/__init__.py +1 -1
- tencentcloud_sdk_python_ai3d-3.1.17/tencentcloud/ai3d/v20250513/ai3d_client.py +333 -0
- tencentcloud_sdk_python_ai3d-3.1.17/tencentcloud/ai3d/v20250513/ai3d_client_async.py +268 -0
- tencentcloud_sdk_python_ai3d-3.1.17/tencentcloud/ai3d/v20250513/models.py +1954 -0
- {tencentcloud_sdk_python_ai3d-3.1.8 → tencentcloud_sdk_python_ai3d-3.1.17}/tencentcloud_sdk_python_ai3d.egg-info/PKG-INFO +2 -2
- tencentcloud_sdk_python_ai3d-3.1.17/tencentcloud_sdk_python_ai3d.egg-info/requires.txt +1 -0
- tencentcloud_sdk_python_ai3d-3.1.8/tencentcloud/ai3d/v20250513/ai3d_client.py +0 -122
- tencentcloud_sdk_python_ai3d-3.1.8/tencentcloud/ai3d/v20250513/ai3d_client_async.py +0 -102
- tencentcloud_sdk_python_ai3d-3.1.8/tencentcloud/ai3d/v20250513/models.py +0 -823
- tencentcloud_sdk_python_ai3d-3.1.8/tencentcloud_sdk_python_ai3d.egg-info/requires.txt +0 -1
- {tencentcloud_sdk_python_ai3d-3.1.8 → tencentcloud_sdk_python_ai3d-3.1.17}/README.rst +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.8 → tencentcloud_sdk_python_ai3d-3.1.17}/setup.cfg +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.8 → tencentcloud_sdk_python_ai3d-3.1.17}/tencentcloud/ai3d/__init__.py +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.8 → tencentcloud_sdk_python_ai3d-3.1.17}/tencentcloud/ai3d/v20250513/__init__.py +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.8 → tencentcloud_sdk_python_ai3d-3.1.17}/tencentcloud/ai3d/v20250513/errorcodes.py +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.8 → tencentcloud_sdk_python_ai3d-3.1.17}/tencentcloud_sdk_python_ai3d.egg-info/SOURCES.txt +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.8 → tencentcloud_sdk_python_ai3d-3.1.17}/tencentcloud_sdk_python_ai3d.egg-info/dependency_links.txt +0 -0
- {tencentcloud_sdk_python_ai3d-3.1.8 → tencentcloud_sdk_python_ai3d-3.1.17}/tencentcloud_sdk_python_ai3d.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: tencentcloud-sdk-python-ai3d
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.17
|
|
4
4
|
Summary: Tencent Cloud Ai3d 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.17
|
|
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-ai3d',
|
|
11
|
-
install_requires=["tencentcloud-sdk-python-common>=3.1.
|
|
11
|
+
install_requires=["tencentcloud-sdk-python-common>=3.1.17,<4.0.0"],
|
|
12
12
|
|
|
13
13
|
version=tencentcloud.__version__,
|
|
14
14
|
description='Tencent Cloud Ai3d SDK for Python',
|
|
@@ -0,0 +1,333 @@
|
|
|
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
|
+
import json
|
|
17
|
+
|
|
18
|
+
from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException
|
|
19
|
+
from tencentcloud.common.abstract_client import AbstractClient
|
|
20
|
+
from tencentcloud.ai3d.v20250513 import models
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Ai3dClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2025-05-13'
|
|
25
|
+
_endpoint = 'ai3d.tencentcloudapi.com'
|
|
26
|
+
_service = 'ai3d'
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def Convert3DFormat(self, request):
|
|
30
|
+
r"""输入3D模型文件后,可进行3D模型文件格式转换。
|
|
31
|
+
|
|
32
|
+
:param request: Request instance for Convert3DFormat.
|
|
33
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.Convert3DFormatRequest`
|
|
34
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.Convert3DFormatResponse`
|
|
35
|
+
|
|
36
|
+
"""
|
|
37
|
+
try:
|
|
38
|
+
params = request._serialize()
|
|
39
|
+
headers = request.headers
|
|
40
|
+
body = self.call("Convert3DFormat", params, headers=headers)
|
|
41
|
+
response = json.loads(body)
|
|
42
|
+
model = models.Convert3DFormatResponse()
|
|
43
|
+
model._deserialize(response["Response"])
|
|
44
|
+
return model
|
|
45
|
+
except Exception as e:
|
|
46
|
+
if isinstance(e, TencentCloudSDKException):
|
|
47
|
+
raise
|
|
48
|
+
else:
|
|
49
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def DescribeHunyuanTo3DUVJob(self, request):
|
|
53
|
+
r"""查询组件拆分任务。
|
|
54
|
+
|
|
55
|
+
:param request: Request instance for DescribeHunyuanTo3DUVJob.
|
|
56
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.DescribeHunyuanTo3DUVJobRequest`
|
|
57
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.DescribeHunyuanTo3DUVJobResponse`
|
|
58
|
+
|
|
59
|
+
"""
|
|
60
|
+
try:
|
|
61
|
+
params = request._serialize()
|
|
62
|
+
headers = request.headers
|
|
63
|
+
body = self.call("DescribeHunyuanTo3DUVJob", params, headers=headers)
|
|
64
|
+
response = json.loads(body)
|
|
65
|
+
model = models.DescribeHunyuanTo3DUVJobResponse()
|
|
66
|
+
model._deserialize(response["Response"])
|
|
67
|
+
return model
|
|
68
|
+
except Exception as e:
|
|
69
|
+
if isinstance(e, TencentCloudSDKException):
|
|
70
|
+
raise
|
|
71
|
+
else:
|
|
72
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
def DescribeReduceFaceJob(self, request):
|
|
76
|
+
r"""混元生3D接口,采用 Polygon 1.5模型,输入3D 高模后,可生成布线规整,较低面数的3D 模型。
|
|
77
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
78
|
+
|
|
79
|
+
:param request: Request instance for DescribeReduceFaceJob.
|
|
80
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.DescribeReduceFaceJobRequest`
|
|
81
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.DescribeReduceFaceJobResponse`
|
|
82
|
+
|
|
83
|
+
"""
|
|
84
|
+
try:
|
|
85
|
+
params = request._serialize()
|
|
86
|
+
headers = request.headers
|
|
87
|
+
body = self.call("DescribeReduceFaceJob", params, headers=headers)
|
|
88
|
+
response = json.loads(body)
|
|
89
|
+
model = models.DescribeReduceFaceJobResponse()
|
|
90
|
+
model._deserialize(response["Response"])
|
|
91
|
+
return model
|
|
92
|
+
except Exception as e:
|
|
93
|
+
if isinstance(e, TencentCloudSDKException):
|
|
94
|
+
raise
|
|
95
|
+
else:
|
|
96
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
def DescribeTextureTo3DJob(self, request):
|
|
100
|
+
r"""混元生3D接口,输入单几何模型和参考图或文字描述后,可生成对应的纹理贴图。
|
|
101
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
102
|
+
|
|
103
|
+
:param request: Request instance for DescribeTextureTo3DJob.
|
|
104
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.DescribeTextureTo3DJobRequest`
|
|
105
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.DescribeTextureTo3DJobResponse`
|
|
106
|
+
|
|
107
|
+
"""
|
|
108
|
+
try:
|
|
109
|
+
params = request._serialize()
|
|
110
|
+
headers = request.headers
|
|
111
|
+
body = self.call("DescribeTextureTo3DJob", params, headers=headers)
|
|
112
|
+
response = json.loads(body)
|
|
113
|
+
model = models.DescribeTextureTo3DJobResponse()
|
|
114
|
+
model._deserialize(response["Response"])
|
|
115
|
+
return model
|
|
116
|
+
except Exception as e:
|
|
117
|
+
if isinstance(e, TencentCloudSDKException):
|
|
118
|
+
raise
|
|
119
|
+
else:
|
|
120
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
def QueryHunyuan3DPartJob(self, request):
|
|
124
|
+
r"""查询组件生成任务。
|
|
125
|
+
|
|
126
|
+
:param request: Request instance for QueryHunyuan3DPartJob.
|
|
127
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.QueryHunyuan3DPartJobRequest`
|
|
128
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.QueryHunyuan3DPartJobResponse`
|
|
129
|
+
|
|
130
|
+
"""
|
|
131
|
+
try:
|
|
132
|
+
params = request._serialize()
|
|
133
|
+
headers = request.headers
|
|
134
|
+
body = self.call("QueryHunyuan3DPartJob", params, headers=headers)
|
|
135
|
+
response = json.loads(body)
|
|
136
|
+
model = models.QueryHunyuan3DPartJobResponse()
|
|
137
|
+
model._deserialize(response["Response"])
|
|
138
|
+
return model
|
|
139
|
+
except Exception as e:
|
|
140
|
+
if isinstance(e, TencentCloudSDKException):
|
|
141
|
+
raise
|
|
142
|
+
else:
|
|
143
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
def QueryHunyuanTo3DProJob(self, request):
|
|
147
|
+
r"""混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
148
|
+
默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
149
|
+
|
|
150
|
+
:param request: Request instance for QueryHunyuanTo3DProJob.
|
|
151
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.QueryHunyuanTo3DProJobRequest`
|
|
152
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.QueryHunyuanTo3DProJobResponse`
|
|
153
|
+
|
|
154
|
+
"""
|
|
155
|
+
try:
|
|
156
|
+
params = request._serialize()
|
|
157
|
+
headers = request.headers
|
|
158
|
+
body = self.call("QueryHunyuanTo3DProJob", params, headers=headers)
|
|
159
|
+
response = json.loads(body)
|
|
160
|
+
model = models.QueryHunyuanTo3DProJobResponse()
|
|
161
|
+
model._deserialize(response["Response"])
|
|
162
|
+
return model
|
|
163
|
+
except Exception as e:
|
|
164
|
+
if isinstance(e, TencentCloudSDKException):
|
|
165
|
+
raise
|
|
166
|
+
else:
|
|
167
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
def QueryHunyuanTo3DRapidJob(self, request):
|
|
171
|
+
r"""混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
172
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
173
|
+
|
|
174
|
+
:param request: Request instance for QueryHunyuanTo3DRapidJob.
|
|
175
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.QueryHunyuanTo3DRapidJobRequest`
|
|
176
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.QueryHunyuanTo3DRapidJobResponse`
|
|
177
|
+
|
|
178
|
+
"""
|
|
179
|
+
try:
|
|
180
|
+
params = request._serialize()
|
|
181
|
+
headers = request.headers
|
|
182
|
+
body = self.call("QueryHunyuanTo3DRapidJob", params, headers=headers)
|
|
183
|
+
response = json.loads(body)
|
|
184
|
+
model = models.QueryHunyuanTo3DRapidJobResponse()
|
|
185
|
+
model._deserialize(response["Response"])
|
|
186
|
+
return model
|
|
187
|
+
except Exception as e:
|
|
188
|
+
if isinstance(e, TencentCloudSDKException):
|
|
189
|
+
raise
|
|
190
|
+
else:
|
|
191
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
def SubmitHunyuan3DPartJob(self, request):
|
|
195
|
+
r"""输入3D模型文件后,根据模型结构自动进行组件识别生成。
|
|
196
|
+
|
|
197
|
+
:param request: Request instance for SubmitHunyuan3DPartJob.
|
|
198
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuan3DPartJobRequest`
|
|
199
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuan3DPartJobResponse`
|
|
200
|
+
|
|
201
|
+
"""
|
|
202
|
+
try:
|
|
203
|
+
params = request._serialize()
|
|
204
|
+
headers = request.headers
|
|
205
|
+
body = self.call("SubmitHunyuan3DPartJob", params, headers=headers)
|
|
206
|
+
response = json.loads(body)
|
|
207
|
+
model = models.SubmitHunyuan3DPartJobResponse()
|
|
208
|
+
model._deserialize(response["Response"])
|
|
209
|
+
return model
|
|
210
|
+
except Exception as e:
|
|
211
|
+
if isinstance(e, TencentCloudSDKException):
|
|
212
|
+
raise
|
|
213
|
+
else:
|
|
214
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
def SubmitHunyuanTo3DProJob(self, request):
|
|
218
|
+
r"""混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
219
|
+
默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
220
|
+
|
|
221
|
+
:param request: Request instance for SubmitHunyuanTo3DProJob.
|
|
222
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DProJobRequest`
|
|
223
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DProJobResponse`
|
|
224
|
+
|
|
225
|
+
"""
|
|
226
|
+
try:
|
|
227
|
+
params = request._serialize()
|
|
228
|
+
headers = request.headers
|
|
229
|
+
body = self.call("SubmitHunyuanTo3DProJob", params, headers=headers)
|
|
230
|
+
response = json.loads(body)
|
|
231
|
+
model = models.SubmitHunyuanTo3DProJobResponse()
|
|
232
|
+
model._deserialize(response["Response"])
|
|
233
|
+
return model
|
|
234
|
+
except Exception as e:
|
|
235
|
+
if isinstance(e, TencentCloudSDKException):
|
|
236
|
+
raise
|
|
237
|
+
else:
|
|
238
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
239
|
+
|
|
240
|
+
|
|
241
|
+
def SubmitHunyuanTo3DRapidJob(self, request):
|
|
242
|
+
r"""混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
243
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
244
|
+
|
|
245
|
+
:param request: Request instance for SubmitHunyuanTo3DRapidJob.
|
|
246
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DRapidJobRequest`
|
|
247
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DRapidJobResponse`
|
|
248
|
+
|
|
249
|
+
"""
|
|
250
|
+
try:
|
|
251
|
+
params = request._serialize()
|
|
252
|
+
headers = request.headers
|
|
253
|
+
body = self.call("SubmitHunyuanTo3DRapidJob", params, headers=headers)
|
|
254
|
+
response = json.loads(body)
|
|
255
|
+
model = models.SubmitHunyuanTo3DRapidJobResponse()
|
|
256
|
+
model._deserialize(response["Response"])
|
|
257
|
+
return model
|
|
258
|
+
except Exception as e:
|
|
259
|
+
if isinstance(e, TencentCloudSDKException):
|
|
260
|
+
raise
|
|
261
|
+
else:
|
|
262
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
def SubmitHunyuanTo3DUVJob(self, request):
|
|
266
|
+
r"""输入模型后,可根据模型纹理进行UV展开,输出对应UV贴图。
|
|
267
|
+
|
|
268
|
+
:param request: Request instance for SubmitHunyuanTo3DUVJob.
|
|
269
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DUVJobRequest`
|
|
270
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.SubmitHunyuanTo3DUVJobResponse`
|
|
271
|
+
|
|
272
|
+
"""
|
|
273
|
+
try:
|
|
274
|
+
params = request._serialize()
|
|
275
|
+
headers = request.headers
|
|
276
|
+
body = self.call("SubmitHunyuanTo3DUVJob", params, headers=headers)
|
|
277
|
+
response = json.loads(body)
|
|
278
|
+
model = models.SubmitHunyuanTo3DUVJobResponse()
|
|
279
|
+
model._deserialize(response["Response"])
|
|
280
|
+
return model
|
|
281
|
+
except Exception as e:
|
|
282
|
+
if isinstance(e, TencentCloudSDKException):
|
|
283
|
+
raise
|
|
284
|
+
else:
|
|
285
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
286
|
+
|
|
287
|
+
|
|
288
|
+
def SubmitReduceFaceJob(self, request):
|
|
289
|
+
r"""混元生3D接口,采用 Polygon 1.5模型,输入3D 高模后,可生成布线规整,较低面数的3D 模型。
|
|
290
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
291
|
+
|
|
292
|
+
:param request: Request instance for SubmitReduceFaceJob.
|
|
293
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.SubmitReduceFaceJobRequest`
|
|
294
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.SubmitReduceFaceJobResponse`
|
|
295
|
+
|
|
296
|
+
"""
|
|
297
|
+
try:
|
|
298
|
+
params = request._serialize()
|
|
299
|
+
headers = request.headers
|
|
300
|
+
body = self.call("SubmitReduceFaceJob", params, headers=headers)
|
|
301
|
+
response = json.loads(body)
|
|
302
|
+
model = models.SubmitReduceFaceJobResponse()
|
|
303
|
+
model._deserialize(response["Response"])
|
|
304
|
+
return model
|
|
305
|
+
except Exception as e:
|
|
306
|
+
if isinstance(e, TencentCloudSDKException):
|
|
307
|
+
raise
|
|
308
|
+
else:
|
|
309
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
def SubmitTextureTo3DJob(self, request):
|
|
313
|
+
r"""混元生3D接口,输入单几何模型和参考图或文字描述后,可生成对应的纹理贴图。
|
|
314
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
315
|
+
|
|
316
|
+
:param request: Request instance for SubmitTextureTo3DJob.
|
|
317
|
+
:type request: :class:`tencentcloud.ai3d.v20250513.models.SubmitTextureTo3DJobRequest`
|
|
318
|
+
:rtype: :class:`tencentcloud.ai3d.v20250513.models.SubmitTextureTo3DJobResponse`
|
|
319
|
+
|
|
320
|
+
"""
|
|
321
|
+
try:
|
|
322
|
+
params = request._serialize()
|
|
323
|
+
headers = request.headers
|
|
324
|
+
body = self.call("SubmitTextureTo3DJob", params, headers=headers)
|
|
325
|
+
response = json.loads(body)
|
|
326
|
+
model = models.SubmitTextureTo3DJobResponse()
|
|
327
|
+
model._deserialize(response["Response"])
|
|
328
|
+
return model
|
|
329
|
+
except Exception as e:
|
|
330
|
+
if isinstance(e, TencentCloudSDKException):
|
|
331
|
+
raise
|
|
332
|
+
else:
|
|
333
|
+
raise TencentCloudSDKException(type(e).__name__, str(e))
|
|
@@ -0,0 +1,268 @@
|
|
|
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.ai3d.v20250513 import models
|
|
20
|
+
from typing import Dict
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class Ai3dClient(AbstractClient):
|
|
24
|
+
_apiVersion = '2025-05-13'
|
|
25
|
+
_endpoint = 'ai3d.tencentcloudapi.com'
|
|
26
|
+
_service = 'ai3d'
|
|
27
|
+
|
|
28
|
+
async def Convert3DFormat(
|
|
29
|
+
self,
|
|
30
|
+
request: models.Convert3DFormatRequest,
|
|
31
|
+
opts: Dict = None,
|
|
32
|
+
) -> models.Convert3DFormatResponse:
|
|
33
|
+
"""
|
|
34
|
+
输入3D模型文件后,可进行3D模型文件格式转换。
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
kwargs = {}
|
|
38
|
+
kwargs["action"] = "Convert3DFormat"
|
|
39
|
+
kwargs["params"] = request._serialize()
|
|
40
|
+
kwargs["resp_cls"] = models.Convert3DFormatResponse
|
|
41
|
+
kwargs["headers"] = request.headers
|
|
42
|
+
kwargs["opts"] = opts or {}
|
|
43
|
+
|
|
44
|
+
return await self.call_and_deserialize(**kwargs)
|
|
45
|
+
|
|
46
|
+
async def DescribeHunyuanTo3DUVJob(
|
|
47
|
+
self,
|
|
48
|
+
request: models.DescribeHunyuanTo3DUVJobRequest,
|
|
49
|
+
opts: Dict = None,
|
|
50
|
+
) -> models.DescribeHunyuanTo3DUVJobResponse:
|
|
51
|
+
"""
|
|
52
|
+
查询组件拆分任务。
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
kwargs = {}
|
|
56
|
+
kwargs["action"] = "DescribeHunyuanTo3DUVJob"
|
|
57
|
+
kwargs["params"] = request._serialize()
|
|
58
|
+
kwargs["resp_cls"] = models.DescribeHunyuanTo3DUVJobResponse
|
|
59
|
+
kwargs["headers"] = request.headers
|
|
60
|
+
kwargs["opts"] = opts or {}
|
|
61
|
+
|
|
62
|
+
return await self.call_and_deserialize(**kwargs)
|
|
63
|
+
|
|
64
|
+
async def DescribeReduceFaceJob(
|
|
65
|
+
self,
|
|
66
|
+
request: models.DescribeReduceFaceJobRequest,
|
|
67
|
+
opts: Dict = None,
|
|
68
|
+
) -> models.DescribeReduceFaceJobResponse:
|
|
69
|
+
"""
|
|
70
|
+
混元生3D接口,采用 Polygon 1.5模型,输入3D 高模后,可生成布线规整,较低面数的3D 模型。
|
|
71
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
kwargs = {}
|
|
75
|
+
kwargs["action"] = "DescribeReduceFaceJob"
|
|
76
|
+
kwargs["params"] = request._serialize()
|
|
77
|
+
kwargs["resp_cls"] = models.DescribeReduceFaceJobResponse
|
|
78
|
+
kwargs["headers"] = request.headers
|
|
79
|
+
kwargs["opts"] = opts or {}
|
|
80
|
+
|
|
81
|
+
return await self.call_and_deserialize(**kwargs)
|
|
82
|
+
|
|
83
|
+
async def DescribeTextureTo3DJob(
|
|
84
|
+
self,
|
|
85
|
+
request: models.DescribeTextureTo3DJobRequest,
|
|
86
|
+
opts: Dict = None,
|
|
87
|
+
) -> models.DescribeTextureTo3DJobResponse:
|
|
88
|
+
"""
|
|
89
|
+
混元生3D接口,输入单几何模型和参考图或文字描述后,可生成对应的纹理贴图。
|
|
90
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
91
|
+
"""
|
|
92
|
+
|
|
93
|
+
kwargs = {}
|
|
94
|
+
kwargs["action"] = "DescribeTextureTo3DJob"
|
|
95
|
+
kwargs["params"] = request._serialize()
|
|
96
|
+
kwargs["resp_cls"] = models.DescribeTextureTo3DJobResponse
|
|
97
|
+
kwargs["headers"] = request.headers
|
|
98
|
+
kwargs["opts"] = opts or {}
|
|
99
|
+
|
|
100
|
+
return await self.call_and_deserialize(**kwargs)
|
|
101
|
+
|
|
102
|
+
async def QueryHunyuan3DPartJob(
|
|
103
|
+
self,
|
|
104
|
+
request: models.QueryHunyuan3DPartJobRequest,
|
|
105
|
+
opts: Dict = None,
|
|
106
|
+
) -> models.QueryHunyuan3DPartJobResponse:
|
|
107
|
+
"""
|
|
108
|
+
查询组件生成任务。
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
kwargs = {}
|
|
112
|
+
kwargs["action"] = "QueryHunyuan3DPartJob"
|
|
113
|
+
kwargs["params"] = request._serialize()
|
|
114
|
+
kwargs["resp_cls"] = models.QueryHunyuan3DPartJobResponse
|
|
115
|
+
kwargs["headers"] = request.headers
|
|
116
|
+
kwargs["opts"] = opts or {}
|
|
117
|
+
|
|
118
|
+
return await self.call_and_deserialize(**kwargs)
|
|
119
|
+
|
|
120
|
+
async def QueryHunyuanTo3DProJob(
|
|
121
|
+
self,
|
|
122
|
+
request: models.QueryHunyuanTo3DProJobRequest,
|
|
123
|
+
opts: Dict = None,
|
|
124
|
+
) -> models.QueryHunyuanTo3DProJobResponse:
|
|
125
|
+
"""
|
|
126
|
+
混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
127
|
+
默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
kwargs = {}
|
|
131
|
+
kwargs["action"] = "QueryHunyuanTo3DProJob"
|
|
132
|
+
kwargs["params"] = request._serialize()
|
|
133
|
+
kwargs["resp_cls"] = models.QueryHunyuanTo3DProJobResponse
|
|
134
|
+
kwargs["headers"] = request.headers
|
|
135
|
+
kwargs["opts"] = opts or {}
|
|
136
|
+
|
|
137
|
+
return await self.call_and_deserialize(**kwargs)
|
|
138
|
+
|
|
139
|
+
async def QueryHunyuanTo3DRapidJob(
|
|
140
|
+
self,
|
|
141
|
+
request: models.QueryHunyuanTo3DRapidJobRequest,
|
|
142
|
+
opts: Dict = None,
|
|
143
|
+
) -> models.QueryHunyuanTo3DRapidJobResponse:
|
|
144
|
+
"""
|
|
145
|
+
混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
146
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
147
|
+
"""
|
|
148
|
+
|
|
149
|
+
kwargs = {}
|
|
150
|
+
kwargs["action"] = "QueryHunyuanTo3DRapidJob"
|
|
151
|
+
kwargs["params"] = request._serialize()
|
|
152
|
+
kwargs["resp_cls"] = models.QueryHunyuanTo3DRapidJobResponse
|
|
153
|
+
kwargs["headers"] = request.headers
|
|
154
|
+
kwargs["opts"] = opts or {}
|
|
155
|
+
|
|
156
|
+
return await self.call_and_deserialize(**kwargs)
|
|
157
|
+
|
|
158
|
+
async def SubmitHunyuan3DPartJob(
|
|
159
|
+
self,
|
|
160
|
+
request: models.SubmitHunyuan3DPartJobRequest,
|
|
161
|
+
opts: Dict = None,
|
|
162
|
+
) -> models.SubmitHunyuan3DPartJobResponse:
|
|
163
|
+
"""
|
|
164
|
+
输入3D模型文件后,根据模型结构自动进行组件识别生成。
|
|
165
|
+
"""
|
|
166
|
+
|
|
167
|
+
kwargs = {}
|
|
168
|
+
kwargs["action"] = "SubmitHunyuan3DPartJob"
|
|
169
|
+
kwargs["params"] = request._serialize()
|
|
170
|
+
kwargs["resp_cls"] = models.SubmitHunyuan3DPartJobResponse
|
|
171
|
+
kwargs["headers"] = request.headers
|
|
172
|
+
kwargs["opts"] = opts or {}
|
|
173
|
+
|
|
174
|
+
return await self.call_and_deserialize(**kwargs)
|
|
175
|
+
|
|
176
|
+
async def SubmitHunyuanTo3DProJob(
|
|
177
|
+
self,
|
|
178
|
+
request: models.SubmitHunyuanTo3DProJobRequest,
|
|
179
|
+
opts: Dict = None,
|
|
180
|
+
) -> models.SubmitHunyuanTo3DProJobResponse:
|
|
181
|
+
"""
|
|
182
|
+
混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
183
|
+
默认提供3个并发,代表最多能同时处理3个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
184
|
+
"""
|
|
185
|
+
|
|
186
|
+
kwargs = {}
|
|
187
|
+
kwargs["action"] = "SubmitHunyuanTo3DProJob"
|
|
188
|
+
kwargs["params"] = request._serialize()
|
|
189
|
+
kwargs["resp_cls"] = models.SubmitHunyuanTo3DProJobResponse
|
|
190
|
+
kwargs["headers"] = request.headers
|
|
191
|
+
kwargs["opts"] = opts or {}
|
|
192
|
+
|
|
193
|
+
return await self.call_and_deserialize(**kwargs)
|
|
194
|
+
|
|
195
|
+
async def SubmitHunyuanTo3DRapidJob(
|
|
196
|
+
self,
|
|
197
|
+
request: models.SubmitHunyuanTo3DRapidJobRequest,
|
|
198
|
+
opts: Dict = None,
|
|
199
|
+
) -> models.SubmitHunyuanTo3DRapidJobResponse:
|
|
200
|
+
"""
|
|
201
|
+
混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
202
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
203
|
+
"""
|
|
204
|
+
|
|
205
|
+
kwargs = {}
|
|
206
|
+
kwargs["action"] = "SubmitHunyuanTo3DRapidJob"
|
|
207
|
+
kwargs["params"] = request._serialize()
|
|
208
|
+
kwargs["resp_cls"] = models.SubmitHunyuanTo3DRapidJobResponse
|
|
209
|
+
kwargs["headers"] = request.headers
|
|
210
|
+
kwargs["opts"] = opts or {}
|
|
211
|
+
|
|
212
|
+
return await self.call_and_deserialize(**kwargs)
|
|
213
|
+
|
|
214
|
+
async def SubmitHunyuanTo3DUVJob(
|
|
215
|
+
self,
|
|
216
|
+
request: models.SubmitHunyuanTo3DUVJobRequest,
|
|
217
|
+
opts: Dict = None,
|
|
218
|
+
) -> models.SubmitHunyuanTo3DUVJobResponse:
|
|
219
|
+
"""
|
|
220
|
+
输入模型后,可根据模型纹理进行UV展开,输出对应UV贴图。
|
|
221
|
+
"""
|
|
222
|
+
|
|
223
|
+
kwargs = {}
|
|
224
|
+
kwargs["action"] = "SubmitHunyuanTo3DUVJob"
|
|
225
|
+
kwargs["params"] = request._serialize()
|
|
226
|
+
kwargs["resp_cls"] = models.SubmitHunyuanTo3DUVJobResponse
|
|
227
|
+
kwargs["headers"] = request.headers
|
|
228
|
+
kwargs["opts"] = opts or {}
|
|
229
|
+
|
|
230
|
+
return await self.call_and_deserialize(**kwargs)
|
|
231
|
+
|
|
232
|
+
async def SubmitReduceFaceJob(
|
|
233
|
+
self,
|
|
234
|
+
request: models.SubmitReduceFaceJobRequest,
|
|
235
|
+
opts: Dict = None,
|
|
236
|
+
) -> models.SubmitReduceFaceJobResponse:
|
|
237
|
+
"""
|
|
238
|
+
混元生3D接口,采用 Polygon 1.5模型,输入3D 高模后,可生成布线规整,较低面数的3D 模型。
|
|
239
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
240
|
+
"""
|
|
241
|
+
|
|
242
|
+
kwargs = {}
|
|
243
|
+
kwargs["action"] = "SubmitReduceFaceJob"
|
|
244
|
+
kwargs["params"] = request._serialize()
|
|
245
|
+
kwargs["resp_cls"] = models.SubmitReduceFaceJobResponse
|
|
246
|
+
kwargs["headers"] = request.headers
|
|
247
|
+
kwargs["opts"] = opts or {}
|
|
248
|
+
|
|
249
|
+
return await self.call_and_deserialize(**kwargs)
|
|
250
|
+
|
|
251
|
+
async def SubmitTextureTo3DJob(
|
|
252
|
+
self,
|
|
253
|
+
request: models.SubmitTextureTo3DJobRequest,
|
|
254
|
+
opts: Dict = None,
|
|
255
|
+
) -> models.SubmitTextureTo3DJobResponse:
|
|
256
|
+
"""
|
|
257
|
+
混元生3D接口,输入单几何模型和参考图或文字描述后,可生成对应的纹理贴图。
|
|
258
|
+
默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
259
|
+
"""
|
|
260
|
+
|
|
261
|
+
kwargs = {}
|
|
262
|
+
kwargs["action"] = "SubmitTextureTo3DJob"
|
|
263
|
+
kwargs["params"] = request._serialize()
|
|
264
|
+
kwargs["resp_cls"] = models.SubmitTextureTo3DJobResponse
|
|
265
|
+
kwargs["headers"] = request.headers
|
|
266
|
+
kwargs["opts"] = opts or {}
|
|
267
|
+
|
|
268
|
+
return await self.call_and_deserialize(**kwargs)
|