tencentcloud-sdk-ai3d 3.0.1197 → 3.0.1205
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.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20250513/client.rb +50 -0
- data/lib/v20250513/models.rb +151 -2
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ac81820653c72c247616a725847c5c83971a111
|
|
4
|
+
data.tar.gz: b96cfd83795a40536744f834e1f32541fb648172
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 877b081e291d559a79ac69610ea4e1cf304a68dcf16e44f97f23586df0b3fc756b36f2fb977959c96c56f0f4fc617b3103859cf2d8b1b59ae5cf170a38df2ca7
|
|
7
|
+
data.tar.gz: 6cacc2f7c318cc59b4abd03c12695253298f349e0a483e9a7dc231ec474ec0ccad99be30e621b3c6daeb1eaa781c1a80c18eaa7ffb4982384a96231645274191
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.0.
|
|
1
|
+
3.0.1205
|
data/lib/v20250513/client.rb
CHANGED
|
@@ -77,6 +77,31 @@ module TencentCloud
|
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
78
78
|
end
|
|
79
79
|
|
|
80
|
+
# 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
81
|
+
# 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
82
|
+
|
|
83
|
+
# @param request: Request instance for DescribeProfileTo3DJob.
|
|
84
|
+
# @type request: :class:`Tencentcloud::ai3d::V20250513::DescribeProfileTo3DJobRequest`
|
|
85
|
+
# @rtype: :class:`Tencentcloud::ai3d::V20250513::DescribeProfileTo3DJobResponse`
|
|
86
|
+
def DescribeProfileTo3DJob(request)
|
|
87
|
+
body = send_request('DescribeProfileTo3DJob', request.serialize)
|
|
88
|
+
response = JSON.parse(body)
|
|
89
|
+
if response['Response'].key?('Error') == false
|
|
90
|
+
model = DescribeProfileTo3DJobResponse.new
|
|
91
|
+
model.deserialize(response['Response'])
|
|
92
|
+
model
|
|
93
|
+
else
|
|
94
|
+
code = response['Response']['Error']['Code']
|
|
95
|
+
message = response['Response']['Error']['Message']
|
|
96
|
+
reqid = response['Response']['RequestId']
|
|
97
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
98
|
+
end
|
|
99
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
100
|
+
raise e
|
|
101
|
+
rescue StandardError => e
|
|
102
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
103
|
+
end
|
|
104
|
+
|
|
80
105
|
# 混元生3D接口,采用 Polygon 1.5模型,输入3D 高模后,可生成布线规整,较低面数的3D 模型。
|
|
81
106
|
# 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
82
107
|
|
|
@@ -299,6 +324,31 @@ module TencentCloud
|
|
|
299
324
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
300
325
|
end
|
|
301
326
|
|
|
327
|
+
# 混元生3D接口,基于混元大模型,根据输入的文本描述/图片智能生成3D。
|
|
328
|
+
# 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
329
|
+
|
|
330
|
+
# @param request: Request instance for SubmitProfileTo3DJob.
|
|
331
|
+
# @type request: :class:`Tencentcloud::ai3d::V20250513::SubmitProfileTo3DJobRequest`
|
|
332
|
+
# @rtype: :class:`Tencentcloud::ai3d::V20250513::SubmitProfileTo3DJobResponse`
|
|
333
|
+
def SubmitProfileTo3DJob(request)
|
|
334
|
+
body = send_request('SubmitProfileTo3DJob', request.serialize)
|
|
335
|
+
response = JSON.parse(body)
|
|
336
|
+
if response['Response'].key?('Error') == false
|
|
337
|
+
model = SubmitProfileTo3DJobResponse.new
|
|
338
|
+
model.deserialize(response['Response'])
|
|
339
|
+
model
|
|
340
|
+
else
|
|
341
|
+
code = response['Response']['Error']['Code']
|
|
342
|
+
message = response['Response']['Error']['Message']
|
|
343
|
+
reqid = response['Response']['RequestId']
|
|
344
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
345
|
+
end
|
|
346
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
347
|
+
raise e
|
|
348
|
+
rescue StandardError => e
|
|
349
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
350
|
+
end
|
|
351
|
+
|
|
302
352
|
# 混元生3D接口,采用 Polygon 1.5模型,输入3D 高模后,可生成布线规整,较低面数的3D 模型。
|
|
303
353
|
# 默认提供1个并发,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后,才能开始处理下一个任务。
|
|
304
354
|
|
data/lib/v20250513/models.rb
CHANGED
|
@@ -112,6 +112,61 @@ module TencentCloud
|
|
|
112
112
|
end
|
|
113
113
|
end
|
|
114
114
|
|
|
115
|
+
# DescribeProfileTo3DJob请求参数结构体
|
|
116
|
+
class DescribeProfileTo3DJobRequest < TencentCloud::Common::AbstractModel
|
|
117
|
+
# @param JobId: 任务ID。
|
|
118
|
+
# @type JobId: String
|
|
119
|
+
|
|
120
|
+
attr_accessor :JobId
|
|
121
|
+
|
|
122
|
+
def initialize(jobid=nil)
|
|
123
|
+
@JobId = jobid
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
def deserialize(params)
|
|
127
|
+
@JobId = params['JobId']
|
|
128
|
+
end
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# DescribeProfileTo3DJob返回参数结构体
|
|
132
|
+
class DescribeProfileTo3DJobResponse < TencentCloud::Common::AbstractModel
|
|
133
|
+
# @param Status: 任务状态。WAIT:等待中,RUN:执行中,FAIL:任务失败,DONE:任务成功
|
|
134
|
+
# @type Status: String
|
|
135
|
+
# @param ErrorCode: 错误码
|
|
136
|
+
# @type ErrorCode: String
|
|
137
|
+
# @param ErrorMessage: 错误信息
|
|
138
|
+
# @type ErrorMessage: String
|
|
139
|
+
# @param ResultFile3Ds: 生成的3D文件数组。
|
|
140
|
+
# @type ResultFile3Ds: Array
|
|
141
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
142
|
+
# @type RequestId: String
|
|
143
|
+
|
|
144
|
+
attr_accessor :Status, :ErrorCode, :ErrorMessage, :ResultFile3Ds, :RequestId
|
|
145
|
+
|
|
146
|
+
def initialize(status=nil, errorcode=nil, errormessage=nil, resultfile3ds=nil, requestid=nil)
|
|
147
|
+
@Status = status
|
|
148
|
+
@ErrorCode = errorcode
|
|
149
|
+
@ErrorMessage = errormessage
|
|
150
|
+
@ResultFile3Ds = resultfile3ds
|
|
151
|
+
@RequestId = requestid
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
def deserialize(params)
|
|
155
|
+
@Status = params['Status']
|
|
156
|
+
@ErrorCode = params['ErrorCode']
|
|
157
|
+
@ErrorMessage = params['ErrorMessage']
|
|
158
|
+
unless params['ResultFile3Ds'].nil?
|
|
159
|
+
@ResultFile3Ds = []
|
|
160
|
+
params['ResultFile3Ds'].each do |i|
|
|
161
|
+
file3d_tmp = File3D.new
|
|
162
|
+
file3d_tmp.deserialize(i)
|
|
163
|
+
@ResultFile3Ds << file3d_tmp
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
@RequestId = params['RequestId']
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
115
170
|
# DescribeReduceFaceJob请求参数结构体
|
|
116
171
|
class DescribeReduceFaceJobRequest < TencentCloud::Common::AbstractModel
|
|
117
172
|
# @param JobId: 任务ID。
|
|
@@ -492,6 +547,9 @@ module TencentCloud
|
|
|
492
547
|
|
|
493
548
|
# SubmitHunyuanTo3DProJob请求参数结构体
|
|
494
549
|
class SubmitHunyuanTo3DProJobRequest < TencentCloud::Common::AbstractModel
|
|
550
|
+
# @param Model: 混元生3D生成模型版本,默认为3.0,可选项:3.0,3.1
|
|
551
|
+
# 选择3.1版本时,LowPoly参数不可用。
|
|
552
|
+
# @type Model: String
|
|
495
553
|
# @param Prompt: 文生3D,3D内容的描述,中文正向提示词。
|
|
496
554
|
# 最多支持1024个 utf-8 字符。
|
|
497
555
|
# ImageBase64、ImageUrl和 Prompt必填其一,且Prompt和ImageBase64/ImageUrl不能同时存在。
|
|
@@ -510,6 +568,10 @@ module TencentCloud
|
|
|
510
568
|
# left:左视图;
|
|
511
569
|
# right:右视图;
|
|
512
570
|
# back:后视图;
|
|
571
|
+
# top:顶视图(仅3.1版本支持);
|
|
572
|
+
# bottom:底视图(仅3.1版本支持);
|
|
573
|
+
# left_front:左前45°视图(仅3.1版本支持);
|
|
574
|
+
# right_front:右前45°视图(仅3.1版本支持);
|
|
513
575
|
|
|
514
576
|
# 每个视角仅限制一张图片。
|
|
515
577
|
# ●图片大小限制:编码后所有图片大小总和不可超过8M。(base64编码下图片大小总和不超过6M,因base64编码后图片大小会大30%左右)
|
|
@@ -537,9 +599,10 @@ module TencentCloud
|
|
|
537
599
|
# @param ResultFormat: 生成模型的格式,仅限制生成一种格式; 生成模型文件组默认返回obj、glb格式(开启时Geometry参数时,默认为glb格式); 可选值:STL,USDZ,FBX;
|
|
538
600
|
# @type ResultFormat: String
|
|
539
601
|
|
|
540
|
-
attr_accessor :Prompt, :ImageBase64, :ImageUrl, :MultiViewImages, :EnablePBR, :FaceCount, :GenerateType, :PolygonType, :ResultFormat
|
|
602
|
+
attr_accessor :Model, :Prompt, :ImageBase64, :ImageUrl, :MultiViewImages, :EnablePBR, :FaceCount, :GenerateType, :PolygonType, :ResultFormat
|
|
541
603
|
|
|
542
|
-
def initialize(prompt=nil, imagebase64=nil, imageurl=nil, multiviewimages=nil, enablepbr=nil, facecount=nil, generatetype=nil, polygontype=nil, resultformat=nil)
|
|
604
|
+
def initialize(model=nil, prompt=nil, imagebase64=nil, imageurl=nil, multiviewimages=nil, enablepbr=nil, facecount=nil, generatetype=nil, polygontype=nil, resultformat=nil)
|
|
605
|
+
@Model = model
|
|
543
606
|
@Prompt = prompt
|
|
544
607
|
@ImageBase64 = imagebase64
|
|
545
608
|
@ImageUrl = imageurl
|
|
@@ -552,6 +615,7 @@ module TencentCloud
|
|
|
552
615
|
end
|
|
553
616
|
|
|
554
617
|
def deserialize(params)
|
|
618
|
+
@Model = params['Model']
|
|
555
619
|
@Prompt = params['Prompt']
|
|
556
620
|
@ImageBase64 = params['ImageBase64']
|
|
557
621
|
@ImageUrl = params['ImageUrl']
|
|
@@ -696,6 +760,91 @@ module TencentCloud
|
|
|
696
760
|
end
|
|
697
761
|
end
|
|
698
762
|
|
|
763
|
+
# SubmitProfileTo3DJob请求参数结构体
|
|
764
|
+
class SubmitProfileTo3DJobRequest < TencentCloud::Common::AbstractModel
|
|
765
|
+
# @param Profile: 真人头像参考图 Base64 数据和参考图 Url。
|
|
766
|
+
# - Base64 和 Url 必须提供一个,如果都提供以 Url 为准。
|
|
767
|
+
# - 图片限制:单边分辨率小于4096且大于500,转成 Base64 字符串后小于 10MB,格式支持 jpg、jpeg、png。
|
|
768
|
+
# @type Profile: :class:`Tencentcloud::Ai3d.v20250513.models.Image`
|
|
769
|
+
# @param Template: 生成人物模板,参考值:
|
|
770
|
+
|
|
771
|
+
# basketball: 动感球手;
|
|
772
|
+
|
|
773
|
+
# badminton: 羽扬中华;
|
|
774
|
+
|
|
775
|
+
# pingpong: 国球荣耀;
|
|
776
|
+
|
|
777
|
+
# gymnastics:勇攀巅峰;
|
|
778
|
+
|
|
779
|
+
# pilidance: 舞动青春;
|
|
780
|
+
|
|
781
|
+
# tennis: 网球甜心;
|
|
782
|
+
|
|
783
|
+
# athletics: 东方疾风;
|
|
784
|
+
|
|
785
|
+
# footballboykicking1:激情逐风;
|
|
786
|
+
|
|
787
|
+
# footballboykicking2: 绿茵之星;
|
|
788
|
+
|
|
789
|
+
# guitar:甜酷弦音;
|
|
790
|
+
|
|
791
|
+
# footballboy: 足球小将;
|
|
792
|
+
|
|
793
|
+
# skateboard: 滑跃青春;
|
|
794
|
+
|
|
795
|
+
# futuresoilder: 未来战士;
|
|
796
|
+
|
|
797
|
+
# explorer: 逐梦旷野;
|
|
798
|
+
|
|
799
|
+
# beardollgirl:可爱女孩;
|
|
800
|
+
|
|
801
|
+
# bibpantsboy:都市白领;
|
|
802
|
+
|
|
803
|
+
# womansitpose: 职业丽影;
|
|
804
|
+
|
|
805
|
+
# womanstandpose2: 悠闲时光;
|
|
806
|
+
|
|
807
|
+
# mysteriousprincess: 海洋公主;
|
|
808
|
+
|
|
809
|
+
# manstandpose2: 演讲之星;
|
|
810
|
+
# @type Template: String
|
|
811
|
+
|
|
812
|
+
attr_accessor :Profile, :Template
|
|
813
|
+
|
|
814
|
+
def initialize(profile=nil, template=nil)
|
|
815
|
+
@Profile = profile
|
|
816
|
+
@Template = template
|
|
817
|
+
end
|
|
818
|
+
|
|
819
|
+
def deserialize(params)
|
|
820
|
+
unless params['Profile'].nil?
|
|
821
|
+
@Profile = Image.new
|
|
822
|
+
@Profile.deserialize(params['Profile'])
|
|
823
|
+
end
|
|
824
|
+
@Template = params['Template']
|
|
825
|
+
end
|
|
826
|
+
end
|
|
827
|
+
|
|
828
|
+
# SubmitProfileTo3DJob返回参数结构体
|
|
829
|
+
class SubmitProfileTo3DJobResponse < TencentCloud::Common::AbstractModel
|
|
830
|
+
# @param JobId: 任务ID(有效期24小时)
|
|
831
|
+
# @type JobId: String
|
|
832
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
833
|
+
# @type RequestId: String
|
|
834
|
+
|
|
835
|
+
attr_accessor :JobId, :RequestId
|
|
836
|
+
|
|
837
|
+
def initialize(jobid=nil, requestid=nil)
|
|
838
|
+
@JobId = jobid
|
|
839
|
+
@RequestId = requestid
|
|
840
|
+
end
|
|
841
|
+
|
|
842
|
+
def deserialize(params)
|
|
843
|
+
@JobId = params['JobId']
|
|
844
|
+
@RequestId = params['RequestId']
|
|
845
|
+
end
|
|
846
|
+
end
|
|
847
|
+
|
|
699
848
|
# SubmitReduceFaceJob请求参数结构体
|
|
700
849
|
class SubmitReduceFaceJobRequest < TencentCloud::Common::AbstractModel
|
|
701
850
|
# @param File3D: 源3D模型文件。其中参数 Type 和 Url 必填,参数 PreviewImageUrl 无意义,可忽略。
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tencentcloud-sdk-ai3d
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.1205
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tencent Cloud
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-01-
|
|
11
|
+
date: 2026-01-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|
|
@@ -33,9 +33,9 @@ executables: []
|
|
|
33
33
|
extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
|
35
35
|
files:
|
|
36
|
+
- lib/tencentcloud-sdk-ai3d.rb
|
|
36
37
|
- lib/v20250513/client.rb
|
|
37
38
|
- lib/v20250513/models.rb
|
|
38
|
-
- lib/tencentcloud-sdk-ai3d.rb
|
|
39
39
|
- lib/VERSION
|
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
|
41
41
|
licenses:
|