tencentcloud-sdk-fmu 3.0.1017 → 3.0.1018
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/v20191213/client.rb +0 -78
- data/lib/v20191213/models.rb +0 -210
- 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: 51b21507b6ea1da6546bf233beab2e0a66c08e38
|
4
|
+
data.tar.gz: cd664332360a84dc621ef39d366114ee090d13d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 50402328b3a2b443e0fa2e38a4b1cad10bbe6962ff63698a0f2bae3800855d4fc02d8f0a7330dff09c9b6a2d778a5177242f8682d366b7de60850901f2daef66
|
7
|
+
data.tar.gz: 5b4231a4156f94a09a4714597842784f063f5f24c94a7f7d0255fd909d3444e4a6566fd8a0a70ee829e528d8070a05e356b0b5f1cf14a641ec10a6a30469b423
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1018
|
data/lib/v20191213/client.rb
CHANGED
@@ -53,58 +53,6 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
-
# 产品不再维护,准备下线。
|
57
|
-
|
58
|
-
# 视频美颜(此接口目前已下线)
|
59
|
-
|
60
|
-
# @param request: Request instance for BeautifyVideo.
|
61
|
-
# @type request: :class:`Tencentcloud::fmu::V20191213::BeautifyVideoRequest`
|
62
|
-
# @rtype: :class:`Tencentcloud::fmu::V20191213::BeautifyVideoResponse`
|
63
|
-
def BeautifyVideo(request)
|
64
|
-
body = send_request('BeautifyVideo', request.serialize)
|
65
|
-
response = JSON.parse(body)
|
66
|
-
if response['Response'].key?('Error') == false
|
67
|
-
model = BeautifyVideoResponse.new
|
68
|
-
model.deserialize(response['Response'])
|
69
|
-
model
|
70
|
-
else
|
71
|
-
code = response['Response']['Error']['Code']
|
72
|
-
message = response['Response']['Error']['Message']
|
73
|
-
reqid = response['Response']['RequestId']
|
74
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
75
|
-
end
|
76
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
77
|
-
raise e
|
78
|
-
rescue StandardError => e
|
79
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
80
|
-
end
|
81
|
-
|
82
|
-
# 产品不再维护,准备下线。
|
83
|
-
|
84
|
-
# 撤销视频美颜任务请求
|
85
|
-
|
86
|
-
# @param request: Request instance for CancelBeautifyVideoJob.
|
87
|
-
# @type request: :class:`Tencentcloud::fmu::V20191213::CancelBeautifyVideoJobRequest`
|
88
|
-
# @rtype: :class:`Tencentcloud::fmu::V20191213::CancelBeautifyVideoJobResponse`
|
89
|
-
def CancelBeautifyVideoJob(request)
|
90
|
-
body = send_request('CancelBeautifyVideoJob', request.serialize)
|
91
|
-
response = JSON.parse(body)
|
92
|
-
if response['Response'].key?('Error') == false
|
93
|
-
model = CancelBeautifyVideoJobResponse.new
|
94
|
-
model.deserialize(response['Response'])
|
95
|
-
model
|
96
|
-
else
|
97
|
-
code = response['Response']['Error']['Code']
|
98
|
-
message = response['Response']['Error']['Message']
|
99
|
-
reqid = response['Response']['RequestId']
|
100
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
101
|
-
end
|
102
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
103
|
-
raise e
|
104
|
-
rescue StandardError => e
|
105
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
106
|
-
end
|
107
|
-
|
108
56
|
# 在使用LUT素材的modelid实现试唇色前,您需要先上传 LUT 格式的cube文件注册唇色ID。查看 [LUT文件的使用说明](https://cloud.tencent.com/document/product/1172/41701)。
|
109
57
|
|
110
58
|
# 注:您也可以直接使用 [试唇色接口](https://cloud.tencent.com/document/product/1172/40706),通过输入RGBA模型数值的方式指定唇色,更简单易用。
|
@@ -179,32 +127,6 @@ module TencentCloud
|
|
179
127
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
180
128
|
end
|
181
129
|
|
182
|
-
# 产品不再维护,准备下线。
|
183
|
-
|
184
|
-
# 查询视频美颜处理进度
|
185
|
-
|
186
|
-
# @param request: Request instance for QueryBeautifyVideoJob.
|
187
|
-
# @type request: :class:`Tencentcloud::fmu::V20191213::QueryBeautifyVideoJobRequest`
|
188
|
-
# @rtype: :class:`Tencentcloud::fmu::V20191213::QueryBeautifyVideoJobResponse`
|
189
|
-
def QueryBeautifyVideoJob(request)
|
190
|
-
body = send_request('QueryBeautifyVideoJob', request.serialize)
|
191
|
-
response = JSON.parse(body)
|
192
|
-
if response['Response'].key?('Error') == false
|
193
|
-
model = QueryBeautifyVideoJobResponse.new
|
194
|
-
model.deserialize(response['Response'])
|
195
|
-
model
|
196
|
-
else
|
197
|
-
code = response['Response']['Error']['Code']
|
198
|
-
message = response['Response']['Error']['Message']
|
199
|
-
reqid = response['Response']['RequestId']
|
200
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
201
|
-
end
|
202
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
203
|
-
raise e
|
204
|
-
rescue StandardError => e
|
205
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
206
|
-
end
|
207
|
-
|
208
130
|
# 上传一张照片,输出滤镜处理后的图片。
|
209
131
|
|
210
132
|
# @param request: Request instance for StyleImage.
|
data/lib/v20191213/models.rb
CHANGED
@@ -90,168 +90,6 @@ module TencentCloud
|
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
93
|
-
# 视频美颜返回结果
|
94
|
-
class BeautifyVideoOutput < TencentCloud::Common::AbstractModel
|
95
|
-
# @param VideoUrl: 视频美颜输出的url
|
96
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
97
|
-
# @type VideoUrl: String
|
98
|
-
# @param VideoMD5: 视频美颜输出的视频MD5,用于校验
|
99
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
100
|
-
# @type VideoMD5: String
|
101
|
-
# @param CoverImage: 美颜输出的视频封面图base64字符串
|
102
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
103
|
-
# @type CoverImage: String
|
104
|
-
# @param Width: 视频宽度
|
105
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
106
|
-
# @type Width: Integer
|
107
|
-
# @param Height: 视频高度
|
108
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
109
|
-
# @type Height: Integer
|
110
|
-
# @param Fps: 每秒传输帧数
|
111
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
112
|
-
# @type Fps: Float
|
113
|
-
# @param DurationInSec: 视频播放时长,单位为秒
|
114
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
115
|
-
# @type DurationInSec: Float
|
116
|
-
|
117
|
-
attr_accessor :VideoUrl, :VideoMD5, :CoverImage, :Width, :Height, :Fps, :DurationInSec
|
118
|
-
|
119
|
-
def initialize(videourl=nil, videomd5=nil, coverimage=nil, width=nil, height=nil, fps=nil, durationinsec=nil)
|
120
|
-
@VideoUrl = videourl
|
121
|
-
@VideoMD5 = videomd5
|
122
|
-
@CoverImage = coverimage
|
123
|
-
@Width = width
|
124
|
-
@Height = height
|
125
|
-
@Fps = fps
|
126
|
-
@DurationInSec = durationinsec
|
127
|
-
end
|
128
|
-
|
129
|
-
def deserialize(params)
|
130
|
-
@VideoUrl = params['VideoUrl']
|
131
|
-
@VideoMD5 = params['VideoMD5']
|
132
|
-
@CoverImage = params['CoverImage']
|
133
|
-
@Width = params['Width']
|
134
|
-
@Height = params['Height']
|
135
|
-
@Fps = params['Fps']
|
136
|
-
@DurationInSec = params['DurationInSec']
|
137
|
-
end
|
138
|
-
end
|
139
|
-
|
140
|
-
# BeautifyVideo请求参数结构体
|
141
|
-
class BeautifyVideoRequest < TencentCloud::Common::AbstractModel
|
142
|
-
# @param Url: 视频url地址
|
143
|
-
# @type Url: String
|
144
|
-
# @param BeautyParam: 美颜参数 - 美白、平滑、大眼和瘦脸。参数值范围[0, 100]。参数值为0,则不做美颜。参数默认值为0。目前默认取数组第一个元素是对所有人脸美颜。
|
145
|
-
# @type BeautyParam: Array
|
146
|
-
# @param OutputVideoType: 目前只支持mp4
|
147
|
-
# @type OutputVideoType: String
|
148
|
-
|
149
|
-
attr_accessor :Url, :BeautyParam, :OutputVideoType
|
150
|
-
|
151
|
-
def initialize(url=nil, beautyparam=nil, outputvideotype=nil)
|
152
|
-
@Url = url
|
153
|
-
@BeautyParam = beautyparam
|
154
|
-
@OutputVideoType = outputvideotype
|
155
|
-
end
|
156
|
-
|
157
|
-
def deserialize(params)
|
158
|
-
@Url = params['Url']
|
159
|
-
unless params['BeautyParam'].nil?
|
160
|
-
@BeautyParam = []
|
161
|
-
params['BeautyParam'].each do |i|
|
162
|
-
beautyparam_tmp = BeautyParam.new
|
163
|
-
beautyparam_tmp.deserialize(i)
|
164
|
-
@BeautyParam << beautyparam_tmp
|
165
|
-
end
|
166
|
-
end
|
167
|
-
@OutputVideoType = params['OutputVideoType']
|
168
|
-
end
|
169
|
-
end
|
170
|
-
|
171
|
-
# BeautifyVideo返回参数结构体
|
172
|
-
class BeautifyVideoResponse < TencentCloud::Common::AbstractModel
|
173
|
-
# @param JobId: 视频美颜任务的Job id
|
174
|
-
# @type JobId: String
|
175
|
-
# @param EstimatedProcessTime: 预估处理时间,粒度为秒
|
176
|
-
# @type EstimatedProcessTime: Integer
|
177
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
178
|
-
# @type RequestId: String
|
179
|
-
|
180
|
-
attr_accessor :JobId, :EstimatedProcessTime, :RequestId
|
181
|
-
|
182
|
-
def initialize(jobid=nil, estimatedprocesstime=nil, requestid=nil)
|
183
|
-
@JobId = jobid
|
184
|
-
@EstimatedProcessTime = estimatedprocesstime
|
185
|
-
@RequestId = requestid
|
186
|
-
end
|
187
|
-
|
188
|
-
def deserialize(params)
|
189
|
-
@JobId = params['JobId']
|
190
|
-
@EstimatedProcessTime = params['EstimatedProcessTime']
|
191
|
-
@RequestId = params['RequestId']
|
192
|
-
end
|
193
|
-
end
|
194
|
-
|
195
|
-
# 全局美颜参数,针对所有人脸做美颜。参数全部为0,则为不做美颜
|
196
|
-
class BeautyParam < TencentCloud::Common::AbstractModel
|
197
|
-
# @param WhitenLevel: 美白程度,取值范围[0,100]。0不美白,100代表最高程度。默认值30。
|
198
|
-
# @type WhitenLevel: Integer
|
199
|
-
# @param SmoothingLevel: 磨皮程度,取值范围[0,100]。0不磨皮,100代表最高程度。默认值30。
|
200
|
-
# @type SmoothingLevel: Integer
|
201
|
-
# @param EyeEnlargeLevel: 大眼程度,取值范围[0,100]。0不大眼,100代表最高程度。默认值70。
|
202
|
-
# @type EyeEnlargeLevel: Integer
|
203
|
-
# @param FaceShrinkLevel: 瘦脸程度,取值范围[0,100]。0不瘦脸,100代表最高程度。默认值70。
|
204
|
-
# @type FaceShrinkLevel: Integer
|
205
|
-
|
206
|
-
attr_accessor :WhitenLevel, :SmoothingLevel, :EyeEnlargeLevel, :FaceShrinkLevel
|
207
|
-
|
208
|
-
def initialize(whitenlevel=nil, smoothinglevel=nil, eyeenlargelevel=nil, faceshrinklevel=nil)
|
209
|
-
@WhitenLevel = whitenlevel
|
210
|
-
@SmoothingLevel = smoothinglevel
|
211
|
-
@EyeEnlargeLevel = eyeenlargelevel
|
212
|
-
@FaceShrinkLevel = faceshrinklevel
|
213
|
-
end
|
214
|
-
|
215
|
-
def deserialize(params)
|
216
|
-
@WhitenLevel = params['WhitenLevel']
|
217
|
-
@SmoothingLevel = params['SmoothingLevel']
|
218
|
-
@EyeEnlargeLevel = params['EyeEnlargeLevel']
|
219
|
-
@FaceShrinkLevel = params['FaceShrinkLevel']
|
220
|
-
end
|
221
|
-
end
|
222
|
-
|
223
|
-
# CancelBeautifyVideoJob请求参数结构体
|
224
|
-
class CancelBeautifyVideoJobRequest < TencentCloud::Common::AbstractModel
|
225
|
-
# @param JobId: 美颜视频的Job id
|
226
|
-
# @type JobId: String
|
227
|
-
|
228
|
-
attr_accessor :JobId
|
229
|
-
|
230
|
-
def initialize(jobid=nil)
|
231
|
-
@JobId = jobid
|
232
|
-
end
|
233
|
-
|
234
|
-
def deserialize(params)
|
235
|
-
@JobId = params['JobId']
|
236
|
-
end
|
237
|
-
end
|
238
|
-
|
239
|
-
# CancelBeautifyVideoJob返回参数结构体
|
240
|
-
class CancelBeautifyVideoJobResponse < TencentCloud::Common::AbstractModel
|
241
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
242
|
-
# @type RequestId: String
|
243
|
-
|
244
|
-
attr_accessor :RequestId
|
245
|
-
|
246
|
-
def initialize(requestid=nil)
|
247
|
-
@RequestId = requestid
|
248
|
-
end
|
249
|
-
|
250
|
-
def deserialize(params)
|
251
|
-
@RequestId = params['RequestId']
|
252
|
-
end
|
253
|
-
end
|
254
|
-
|
255
93
|
# CreateModel请求参数结构体
|
256
94
|
class CreateModelRequest < TencentCloud::Common::AbstractModel
|
257
95
|
# @param LUTFile: 图片base64数据,用于试唇色,要求必须是LUT 格式的cube文件转换成512*512的PNG图片。查看 [LUT文件的使用说明](https://cloud.tencent.com/document/product/1172/41701)。了解 [cube文件转png图片小工具](http://yyb.gtimg.com/aiplat/static/qcloud-cube-to-png.html)。
|
@@ -464,54 +302,6 @@ module TencentCloud
|
|
464
302
|
end
|
465
303
|
end
|
466
304
|
|
467
|
-
# QueryBeautifyVideoJob请求参数结构体
|
468
|
-
class QueryBeautifyVideoJobRequest < TencentCloud::Common::AbstractModel
|
469
|
-
# @param JobId: 视频美颜Job id
|
470
|
-
# @type JobId: String
|
471
|
-
|
472
|
-
attr_accessor :JobId
|
473
|
-
|
474
|
-
def initialize(jobid=nil)
|
475
|
-
@JobId = jobid
|
476
|
-
end
|
477
|
-
|
478
|
-
def deserialize(params)
|
479
|
-
@JobId = params['JobId']
|
480
|
-
end
|
481
|
-
end
|
482
|
-
|
483
|
-
# QueryBeautifyVideoJob返回参数结构体
|
484
|
-
class QueryBeautifyVideoJobResponse < TencentCloud::Common::AbstractModel
|
485
|
-
# @param JobStatus: 当前任务状态:排队中、处理中、处理失败或者处理完成
|
486
|
-
# @type JobStatus: String
|
487
|
-
# @param BeautifyVideoOutput: 视频美颜输出的结果信息
|
488
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
489
|
-
# @type BeautifyVideoOutput: :class:`Tencentcloud::Fmu.v20191213.models.BeautifyVideoOutput`
|
490
|
-
# @param JobStatusCode: 当前任务状态码:1:排队中、3: 处理中、5: 处理失败、7:处理完成
|
491
|
-
# @type JobStatusCode: Integer
|
492
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
493
|
-
# @type RequestId: String
|
494
|
-
|
495
|
-
attr_accessor :JobStatus, :BeautifyVideoOutput, :JobStatusCode, :RequestId
|
496
|
-
|
497
|
-
def initialize(jobstatus=nil, beautifyvideooutput=nil, jobstatuscode=nil, requestid=nil)
|
498
|
-
@JobStatus = jobstatus
|
499
|
-
@BeautifyVideoOutput = beautifyvideooutput
|
500
|
-
@JobStatusCode = jobstatuscode
|
501
|
-
@RequestId = requestid
|
502
|
-
end
|
503
|
-
|
504
|
-
def deserialize(params)
|
505
|
-
@JobStatus = params['JobStatus']
|
506
|
-
unless params['BeautifyVideoOutput'].nil?
|
507
|
-
@BeautifyVideoOutput = BeautifyVideoOutput.new
|
508
|
-
@BeautifyVideoOutput.deserialize(params['BeautifyVideoOutput'])
|
509
|
-
end
|
510
|
-
@JobStatusCode = params['JobStatusCode']
|
511
|
-
@RequestId = params['RequestId']
|
512
|
-
end
|
513
|
-
end
|
514
|
-
|
515
305
|
# RGBA通道信息
|
516
306
|
class RGBAInfo < TencentCloud::Common::AbstractModel
|
517
307
|
# @param R: R通道数值。[0,255]。
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-fmu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1018
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -34,8 +34,8 @@ extensions: []
|
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
36
|
- lib/tencentcloud-sdk-fmu.rb
|
37
|
-
- lib/v20191213/models.rb
|
38
37
|
- lib/v20191213/client.rb
|
38
|
+
- lib/v20191213/models.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|