Class: TencentCloud::Bda::V20200324::CreateSegmentationTaskRequest

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

Overview

CreateSegmentationTask请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(videourl = nil, backgroundimageurl = nil, config = nil) ⇒ CreateSegmentationTaskRequest

Returns a new instance of CreateSegmentationTaskRequest.



444
445
446
447
448
# File 'lib/v20200324/models.rb', line 444

def initialize(videourl=nil, backgroundimageurl=nil, config=nil)
  @VideoUrl = videourl
  @BackgroundImageUrl = backgroundimageurl
  @Config = config
end

Instance Attribute Details

#BackgroundImageUrlObject

可以将视频背景替换为输入的图片。如果不输入背景图片,则输出人像区域mask。

Parameters:

  • VideoUrl:

    需要分割的视频URL,可外网访问。

  • BackgroundImageUrl:

    背景图片URL。

  • Config:

    预留字段,后期用于展示更多识别信息。



442
443
444
# File 'lib/v20200324/models.rb', line 442

def BackgroundImageUrl
  @BackgroundImageUrl
end

#ConfigObject

可以将视频背景替换为输入的图片。如果不输入背景图片,则输出人像区域mask。

Parameters:

  • VideoUrl:

    需要分割的视频URL,可外网访问。

  • BackgroundImageUrl:

    背景图片URL。

  • Config:

    预留字段,后期用于展示更多识别信息。



442
443
444
# File 'lib/v20200324/models.rb', line 442

def Config
  @Config
end

#VideoUrlObject

可以将视频背景替换为输入的图片。如果不输入背景图片,则输出人像区域mask。

Parameters:

  • VideoUrl:

    需要分割的视频URL,可外网访问。

  • BackgroundImageUrl:

    背景图片URL。

  • Config:

    预留字段,后期用于展示更多识别信息。



442
443
444
# File 'lib/v20200324/models.rb', line 442

def VideoUrl
  @VideoUrl
end

Instance Method Details

#deserialize(params) ⇒ Object



450
451
452
453
454
# File 'lib/v20200324/models.rb', line 450

def deserialize(params)
  @VideoUrl = params['VideoUrl']
  @BackgroundImageUrl = params['BackgroundImageUrl']
  @Config = params['Config']
end