Class: TencentCloud::Bda::V20200324::SegmentPortraitPicRequest

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

Overview

SegmentPortraitPic请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(image = nil, url = nil, rspimgtype = nil, scene = nil) ⇒ SegmentPortraitPicRequest

Returns a new instance of SegmentPortraitPicRequest.



1452
1453
1454
1455
1456
1457
# File 'lib/v20200324/models.rb', line 1452

def initialize(image=nil, url=nil, rspimgtype=nil, scene=nil)
  @Image = image
  @Url = url
  @RspImgType = rspimgtype
  @Scene = scene
end

Instance Attribute Details

#ImageObject

取值:GEN/GS。GEN为通用场景模式;GS为绿幕场景模式,针对绿幕场景下的人像分割效果更好。两种模式选择一种传入,默认为GEN。



1450
1451
1452
# File 'lib/v20200324/models.rb', line 1450

def Image
  @Image
end

#RspImgTypeObject

取值:GEN/GS。GEN为通用场景模式;GS为绿幕场景模式,针对绿幕场景下的人像分割效果更好。两种模式选择一种传入,默认为GEN。



1450
1451
1452
# File 'lib/v20200324/models.rb', line 1450

def RspImgType
  @RspImgType
end

#SceneObject

取值:GEN/GS。GEN为通用场景模式;GS为绿幕场景模式,针对绿幕场景下的人像分割效果更好。两种模式选择一种传入,默认为GEN。



1450
1451
1452
# File 'lib/v20200324/models.rb', line 1450

def Scene
  @Scene
end

#UrlObject

取值:GEN/GS。GEN为通用场景模式;GS为绿幕场景模式,针对绿幕场景下的人像分割效果更好。两种模式选择一种传入,默认为GEN。



1450
1451
1452
# File 'lib/v20200324/models.rb', line 1450

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



1459
1460
1461
1462
1463
1464
# File 'lib/v20200324/models.rb', line 1459

def deserialize(params)
  @Image = params['Image']
  @Url = params['Url']
  @RspImgType = params['RspImgType']
  @Scene = params['Scene']
end