Class: TencentCloud::Mps::V20190612::UpdateSmartEraseSubtitleConfig

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

Overview

智能擦除模板去字幕配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(subtitleerasemethod = nil, subtitlemodel = nil, ocrswitch = nil, subtitlelang = nil, subtitleformat = nil, transswitch = nil, transdstlang = nil, autoareas = nil, customareas = nil) ⇒ UpdateSmartEraseSubtitleConfig

Returns a new instance of UpdateSmartEraseSubtitleConfig.



30886
30887
30888
30889
30890
30891
30892
30893
30894
30895
30896
# File 'lib/v20190612/models.rb', line 30886

def initialize(subtitleerasemethod=nil, subtitlemodel=nil, ocrswitch=nil, subtitlelang=nil, subtitleformat=nil, transswitch=nil, transdstlang=nil, autoareas=nil, customareas=nil)
  @SubtitleEraseMethod = subtitleerasemethod
  @SubtitleModel = subtitlemodel
  @OcrSwitch = ocrswitch
  @SubtitleLang = subtitlelang
  @SubtitleFormat = subtitleformat
  @TransSwitch = transswitch
  @TransDstLang = transdstlang
  @AutoAreas = autoareas
  @CustomAreas = customareas
end

Instance Attribute Details

#AutoAreasObject

Parameters:

  • SubtitleFormat:

    字幕文件格式,默认取vtt;仅当OcrSwitch取“ON”时生效。

  • TransSwitch:

    是否开启字幕翻译,默认取OFF;仅当OcrSwitch取“ON”时生效。

  • TransDstLang:

    字幕翻译目标语言,默认取en;仅当TransSwitch取“ON”时生效。

  • AutoAreas:

    自动擦除自定义区域。

  • CustomAreas:

    指定擦除自定义区域。



30884
30885
30886
# File 'lib/v20190612/models.rb', line 30884

def AutoAreas
  @AutoAreas
end

#CustomAreasObject

Parameters:

  • SubtitleFormat:

    字幕文件格式,默认取vtt;仅当OcrSwitch取“ON”时生效。

  • TransSwitch:

    是否开启字幕翻译,默认取OFF;仅当OcrSwitch取“ON”时生效。

  • TransDstLang:

    字幕翻译目标语言,默认取en;仅当TransSwitch取“ON”时生效。

  • AutoAreas:

    自动擦除自定义区域。

  • CustomAreas:

    指定擦除自定义区域。



30884
30885
30886
# File 'lib/v20190612/models.rb', line 30884

def CustomAreas
  @CustomAreas
end

#OcrSwitchObject

Parameters:

  • SubtitleFormat:

    字幕文件格式,默认取vtt;仅当OcrSwitch取“ON”时生效。

  • TransSwitch:

    是否开启字幕翻译,默认取OFF;仅当OcrSwitch取“ON”时生效。

  • TransDstLang:

    字幕翻译目标语言,默认取en;仅当TransSwitch取“ON”时生效。

  • AutoAreas:

    自动擦除自定义区域。

  • CustomAreas:

    指定擦除自定义区域。



30884
30885
30886
# File 'lib/v20190612/models.rb', line 30884

def OcrSwitch
  @OcrSwitch
end

#SubtitleEraseMethodObject

Parameters:

  • SubtitleFormat:

    字幕文件格式,默认取vtt;仅当OcrSwitch取“ON”时生效。

  • TransSwitch:

    是否开启字幕翻译,默认取OFF;仅当OcrSwitch取“ON”时生效。

  • TransDstLang:

    字幕翻译目标语言,默认取en;仅当TransSwitch取“ON”时生效。

  • AutoAreas:

    自动擦除自定义区域。

  • CustomAreas:

    指定擦除自定义区域。



30884
30885
30886
# File 'lib/v20190612/models.rb', line 30884

def SubtitleEraseMethod
  @SubtitleEraseMethod
end

#SubtitleFormatObject

Parameters:

  • SubtitleFormat:

    字幕文件格式,默认取vtt;仅当OcrSwitch取“ON”时生效。

  • TransSwitch:

    是否开启字幕翻译,默认取OFF;仅当OcrSwitch取“ON”时生效。

  • TransDstLang:

    字幕翻译目标语言,默认取en;仅当TransSwitch取“ON”时生效。

  • AutoAreas:

    自动擦除自定义区域。

  • CustomAreas:

    指定擦除自定义区域。



30884
30885
30886
# File 'lib/v20190612/models.rb', line 30884

def SubtitleFormat
  @SubtitleFormat
end

#SubtitleLangObject

Parameters:

  • SubtitleFormat:

    字幕文件格式,默认取vtt;仅当OcrSwitch取“ON”时生效。

  • TransSwitch:

    是否开启字幕翻译,默认取OFF;仅当OcrSwitch取“ON”时生效。

  • TransDstLang:

    字幕翻译目标语言,默认取en;仅当TransSwitch取“ON”时生效。

  • AutoAreas:

    自动擦除自定义区域。

  • CustomAreas:

    指定擦除自定义区域。



30884
30885
30886
# File 'lib/v20190612/models.rb', line 30884

def SubtitleLang
  @SubtitleLang
end

#SubtitleModelObject

Parameters:

  • SubtitleFormat:

    字幕文件格式,默认取vtt;仅当OcrSwitch取“ON”时生效。

  • TransSwitch:

    是否开启字幕翻译,默认取OFF;仅当OcrSwitch取“ON”时生效。

  • TransDstLang:

    字幕翻译目标语言,默认取en;仅当TransSwitch取“ON”时生效。

  • AutoAreas:

    自动擦除自定义区域。

  • CustomAreas:

    指定擦除自定义区域。



30884
30885
30886
# File 'lib/v20190612/models.rb', line 30884

def SubtitleModel
  @SubtitleModel
end

#TransDstLangObject

Parameters:

  • SubtitleFormat:

    字幕文件格式,默认取vtt;仅当OcrSwitch取“ON”时生效。

  • TransSwitch:

    是否开启字幕翻译,默认取OFF;仅当OcrSwitch取“ON”时生效。

  • TransDstLang:

    字幕翻译目标语言,默认取en;仅当TransSwitch取“ON”时生效。

  • AutoAreas:

    自动擦除自定义区域。

  • CustomAreas:

    指定擦除自定义区域。



30884
30885
30886
# File 'lib/v20190612/models.rb', line 30884

def TransDstLang
  @TransDstLang
end

#TransSwitchObject

Parameters:

  • SubtitleFormat:

    字幕文件格式,默认取vtt;仅当OcrSwitch取“ON”时生效。

  • TransSwitch:

    是否开启字幕翻译,默认取OFF;仅当OcrSwitch取“ON”时生效。

  • TransDstLang:

    字幕翻译目标语言,默认取en;仅当TransSwitch取“ON”时生效。

  • AutoAreas:

    自动擦除自定义区域。

  • CustomAreas:

    指定擦除自定义区域。



30884
30885
30886
# File 'lib/v20190612/models.rb', line 30884

def TransSwitch
  @TransSwitch
end

Instance Method Details

#deserialize(params) ⇒ Object



30898
30899
30900
30901
30902
30903
30904
30905
30906
30907
30908
30909
30910
30911
30912
30913
30914
30915
30916
30917
30918
30919
30920
30921
30922
# File 'lib/v20190612/models.rb', line 30898

def deserialize(params)
  @SubtitleEraseMethod = params['SubtitleEraseMethod']
  @SubtitleModel = params['SubtitleModel']
  @OcrSwitch = params['OcrSwitch']
  @SubtitleLang = params['SubtitleLang']
  @SubtitleFormat = params['SubtitleFormat']
  @TransSwitch = params['TransSwitch']
  @TransDstLang = params['TransDstLang']
  unless params['AutoAreas'].nil?
    @AutoAreas = []
    params['AutoAreas'].each do |i|
      erasearea_tmp = EraseArea.new
      erasearea_tmp.deserialize(i)
      @AutoAreas << erasearea_tmp
    end
  end
  unless params['CustomAreas'].nil?
    @CustomAreas = []
    params['CustomAreas'].each do |i|
      erasetimearea_tmp = EraseTimeArea.new
      erasetimearea_tmp.deserialize(i)
      @CustomAreas << erasetimearea_tmp
    end
  end
end