tencentcloud-sdk-aiart 3.0.860 → 3.0.862

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9dee483f6b602ff0943aceea2e0d7225ccfa37c
4
- data.tar.gz: 7c1cf09f5695b1951ce8687bde135a5a0fcae4b6
3
+ metadata.gz: 223bf7b4d5518c58a40b2e8eccbafe479a8f5a66
4
+ data.tar.gz: eff94f4e2fa6ad3662b62bc577c649c2e704f33f
5
5
  SHA512:
6
- metadata.gz: f269c657443c72bbb38812fd5990f6dcab03edbb6bd90d156a0a61f33dfc77d7e2e24eb04efab34617d9979e03ca3caf353e8bd5343fb63a69593b4f0849a16b
7
- data.tar.gz: f86d8871fde53d3ab1e6be5fe63b72b9eb769a29ed1a7374a108aa09b61cbc04647996ee2795bfa38b9a0b987294ac9ac24af0ea70572ec063ea9ccbeb658dde
6
+ metadata.gz: 7364732c09dc07b58e12901ad1c48d6fcec4d45a2c9ce0a9538b6935c4deb6be4b3787cde9fd14c110999be5cd935a34286028230ef5255921f1101307ccf605
7
+ data.tar.gz: 082b20326326ce28b5f68c17dd56afae6cd689f40ef118dcd74658614ae2375e31b6544c62129e0cbfa593e0ff38c52fbc73055ec241957c6ac0c707d8f78ef1
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.860
1
+ 3.0.862
@@ -29,6 +29,32 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 上传正面全身模特照和服装平铺图,生成模特换装后的图片。
33
+ # 生成的换装图片分辨率和模特照分辨率一致。
34
+ # 模特换装默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
35
+
36
+ # @param request: Request instance for ChangeClothes.
37
+ # @type request: :class:`Tencentcloud::aiart::V20221229::ChangeClothesRequest`
38
+ # @rtype: :class:`Tencentcloud::aiart::V20221229::ChangeClothesResponse`
39
+ def ChangeClothes(request)
40
+ body = send_request('ChangeClothes', request.serialize)
41
+ response = JSON.parse(body)
42
+ if response['Response'].key?('Error') == false
43
+ model = ChangeClothesResponse.new
44
+ model.deserialize(response['Response'])
45
+ model
46
+ else
47
+ code = response['Response']['Error']['Code']
48
+ message = response['Response']['Error']['Message']
49
+ reqid = response['Response']['RequestId']
50
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
51
+ end
52
+ rescue TencentCloud::Common::TencentCloudSDKException => e
53
+ raise e
54
+ rescue StandardError => e
55
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
56
+ end
57
+
32
58
  # 百变头像接口将根据输入的人像照片,生成风格百变的头像。
33
59
  # 百变头像默认提供1个并发任务数,代表最多能同时处理1个已提交的任务,上一个任务处理完毕后才能开始处理下一个任务。
34
60
 
@@ -85,8 +111,6 @@ module TencentCloud
85
111
  # - 提交生成写真图片任务:完成训练写真模型后,选择写真风格模板,提交一个生成写真图片异步任务,根据写真模型 ID 开始生成人物形象在指定风格上的写真图片,获得任务 ID。
86
112
  # - 查询生成写真图片任务:根据任务 ID 查询生成图片任务的处理状态、处理结果。
87
113
 
88
- # 默认接口请求频率限制:20次/秒。
89
-
90
114
  # @param request: Request instance for QueryDrawPortraitJob.
91
115
  # @type request: :class:`Tencentcloud::aiart::V20221229::QueryDrawPortraitJobRequest`
92
116
  # @rtype: :class:`Tencentcloud::aiart::V20221229::QueryDrawPortraitJobResponse`
@@ -143,8 +167,6 @@ module TencentCloud
143
167
  # - 提交训练写真模型任务:完成上传训练图片后,提交一个训练写真模型异步任务,根据写真模型 ID 开始训练模型。
144
168
  # - 查询训练写真模型任务:根据写真模型 ID 查询训练任务的处理状态、处理结果。
145
169
 
146
- # 默认接口请求频率限制:20次/秒。
147
-
148
170
  # @param request: Request instance for QueryTrainPortraitModelJob.
149
171
  # @type request: :class:`Tencentcloud::aiart::V20221229::QueryTrainPortraitModelJobRequest`
150
172
  # @rtype: :class:`Tencentcloud::aiart::V20221229::QueryTrainPortraitModelJobResponse`
@@ -17,6 +17,77 @@
17
17
  module TencentCloud
18
18
  module Aiart
19
19
  module V20221229
20
+ # ChangeClothes请求参数结构体
21
+ class ChangeClothesRequest < TencentCloud::Common::AbstractModel
22
+ # @param ModelUrl: 模特图片 Url。
23
+ # 图片限制:单边分辨率小于3000,且大于512,转成 Base64 字符串后小于 8MB。
24
+ # 输入要求:
25
+ # 1、建议上传正面模特图片,至少完整露出应穿着输入指定服装的身体部位(全身、上半身或下半身),无大角度身体偏转或异常姿势。
26
+ # 2、建议上传3:4比例的图片,生成效果更佳。
27
+ # 3、建议模特图片中的原始服装和更换后的服装类别一致,或原始服装在身体上的覆盖范围小于等于更换后的服装(例如需要给模特换上短裤,则原始模特图片中也建议穿短裤,不建议穿长裤),否则会影响人像生成效果。
28
+ # @type ModelUrl: String
29
+ # @param ClothesUrl: 服装图片 Url。
30
+ # 图片限制:单边分辨率小于3000,大于512,转成 Base64 字符串后小于 8MB。
31
+ # 输入要求:
32
+ # 建议上传服装完整的正面平铺图片,仅包含1个服装主体,服装类型支持上衣、下装、连衣裙,三选一。算法将根据输入的图片,结合服装图片给模特换装。
33
+ # @type ClothesUrl: String
34
+ # @param ClothesType: 服装类型,需要和服装图片保持一致。
35
+ # 取值:
36
+ # Upper-body:上衣
37
+ # Lower-body:下装
38
+ # Dress:连衣裙
39
+ # @type ClothesType: String
40
+ # @param LogoAdd: 为生成结果图添加标识的开关,默认为1。
41
+ # 1:添加标识。
42
+ # 0:不添加标识。
43
+ # 其他数值:默认按1处理。
44
+ # 建议您使用显著标识来提示结果图使用了 AI 绘画技术,是 AI 生成的图片。
45
+ # @type LogoAdd: Integer
46
+ # @param RspImgType: 返回图像方式(base64 或 url) ,二选一,默认为 base64。url 有效期为1小时。
47
+ # 生成图分辨率较大时建议选择 url,使用 base64 可能因图片过大导致返回失败。
48
+ # @type RspImgType: String
49
+
50
+ attr_accessor :ModelUrl, :ClothesUrl, :ClothesType, :LogoAdd, :RspImgType
51
+
52
+ def initialize(modelurl=nil, clothesurl=nil, clothestype=nil, logoadd=nil, rspimgtype=nil)
53
+ @ModelUrl = modelurl
54
+ @ClothesUrl = clothesurl
55
+ @ClothesType = clothestype
56
+ @LogoAdd = logoadd
57
+ @RspImgType = rspimgtype
58
+ end
59
+
60
+ def deserialize(params)
61
+ @ModelUrl = params['ModelUrl']
62
+ @ClothesUrl = params['ClothesUrl']
63
+ @ClothesType = params['ClothesType']
64
+ @LogoAdd = params['LogoAdd']
65
+ @RspImgType = params['RspImgType']
66
+ end
67
+ end
68
+
69
+ # ChangeClothes返回参数结构体
70
+ class ChangeClothesResponse < TencentCloud::Common::AbstractModel
71
+ # @param ResultImage: 根据入参 RspImgType 填入不同,返回不同的内容。
72
+ # 如果传入 base64 则返回生成图 Base64 编码。
73
+ # 如果传入 url 则返回的生成图 URL , 有效期1小时,请及时保存。
74
+ # @type ResultImage: String
75
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
76
+ # @type RequestId: String
77
+
78
+ attr_accessor :ResultImage, :RequestId
79
+
80
+ def initialize(resultimage=nil, requestid=nil)
81
+ @ResultImage = resultimage
82
+ @RequestId = requestid
83
+ end
84
+
85
+ def deserialize(params)
86
+ @ResultImage = params['ResultImage']
87
+ @RequestId = params['RequestId']
88
+ end
89
+ end
90
+
20
91
  # 训练图像质量过滤开关配置。
21
92
  # 支持开启或关闭对训练图像分辨率下限、脸部区域大小、脸部遮挡、脸部角度的过滤,默认开启以上过滤。
22
93
  # 如果训练图像内包含多人脸或无人脸、和 Base 人像不为同一人也将被过滤,不可关闭该过滤条件。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-aiart
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.860
4
+ version: 3.0.862
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-08 00:00:00.000000000 Z
11
+ date: 2024-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common