Class: TencentCloud::Bda::V20200324::SegmentCustomizedPortraitPicRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20200324/models.rb

Overview

SegmentCustomizedPortraitPic请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(segmentationoptions = nil, image = nil, url = nil) ⇒ SegmentCustomizedPortraitPicRequest

Returns a new instance of SegmentCustomizedPortraitPicRequest.



1377
1378
1379
1380
1381
# File 'lib/v20200324/models.rb', line 1377

def initialize(segmentationoptions=nil, image=nil, url=nil)
  @SegmentationOptions = segmentationoptions
  @Image = image
  @Url = url
end

Instance Attribute Details

#ImageObject

图片分辨率须小于2000*2000。支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。Url、Image必须提供一个,如果都提供,只使用 Url。图片分辨率须小于2000*2000 ,图片 base64 编码后大小不可超过5M。图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的Url速度和稳定性可能受一定影响。支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。

Parameters:

  • SegmentationOptions:

    此参数为分割选项,请根据需要选择自己所想从图片中分割的部分。注意所有选项均为非必选,如未选择则值默认为false, 但是必须要保证多于一个选项的描述为true。

  • Image:

    图片 base64 数据,base64 编码后大小不可超过5M。

  • Url:

    图片的 Url 。



1375
1376
1377
# File 'lib/v20200324/models.rb', line 1375

def Image
  @Image
end

#SegmentationOptionsObject

图片分辨率须小于2000*2000。支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。Url、Image必须提供一个,如果都提供,只使用 Url。图片分辨率须小于2000*2000 ,图片 base64 编码后大小不可超过5M。图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的Url速度和稳定性可能受一定影响。支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。

Parameters:

  • SegmentationOptions:

    此参数为分割选项,请根据需要选择自己所想从图片中分割的部分。注意所有选项均为非必选,如未选择则值默认为false, 但是必须要保证多于一个选项的描述为true。

  • Image:

    图片 base64 数据,base64 编码后大小不可超过5M。

  • Url:

    图片的 Url 。



1375
1376
1377
# File 'lib/v20200324/models.rb', line 1375

def SegmentationOptions
  @SegmentationOptions
end

#UrlObject

图片分辨率须小于2000*2000。支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。Url、Image必须提供一个,如果都提供,只使用 Url。图片分辨率须小于2000*2000 ,图片 base64 编码后大小不可超过5M。图片存储于腾讯云的Url可保障更高下载速度和稳定性,建议图片存储于腾讯云。非腾讯云存储的Url速度和稳定性可能受一定影响。支持PNG、JPG、JPEG、BMP,不支持 GIF 图片。

Parameters:

  • SegmentationOptions:

    此参数为分割选项,请根据需要选择自己所想从图片中分割的部分。注意所有选项均为非必选,如未选择则值默认为false, 但是必须要保证多于一个选项的描述为true。

  • Image:

    图片 base64 数据,base64 编码后大小不可超过5M。

  • Url:

    图片的 Url 。



1375
1376
1377
# File 'lib/v20200324/models.rb', line 1375

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



1383
1384
1385
1386
1387
1388
1389
1390
# File 'lib/v20200324/models.rb', line 1383

def deserialize(params)
  unless params['SegmentationOptions'].nil?
    @SegmentationOptions = SegmentationOptions.new
    @SegmentationOptions.deserialize(params['SegmentationOptions'])
  end
  @Image = params['Image']
  @Url = params['Url']
end