Class: TencentCloud::Mps::V20190612::LiveStreamAiAnalysisResultItem

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

Overview

直播流 AI 分析结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, segmentresultset = nil, highlightresultset = nil) ⇒ LiveStreamAiAnalysisResultItem

Returns a new instance of LiveStreamAiAnalysisResultItem.



16494
16495
16496
16497
16498
# File 'lib/v20190612/models.rb', line 16494

def initialize(type=nil, segmentresultset=nil, highlightresultset=nil)
  @Type = type
  @SegmentResultSet = segmentresultset
  @HighlightResultSet = highlightresultset
end

Instance Attribute Details

#HighlightResultSetObject

<li>SegmentRecognition:拆条。</li> <li>Highlight :集锦。</li> SegmentRecognition 时有效。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Type:

    结果的类型,取值范围:

  • SegmentResultSet:

    拆条结果,当 Type 为

  • HighlightResultSet:

    集锦结果,当Type 为 Highlight 时有效。



16492
16493
16494
# File 'lib/v20190612/models.rb', line 16492

def HighlightResultSet
  @HighlightResultSet
end

#SegmentResultSetObject

<li>SegmentRecognition:拆条。</li> <li>Highlight :集锦。</li> SegmentRecognition 时有效。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Type:

    结果的类型,取值范围:

  • SegmentResultSet:

    拆条结果,当 Type 为

  • HighlightResultSet:

    集锦结果,当Type 为 Highlight 时有效。



16492
16493
16494
# File 'lib/v20190612/models.rb', line 16492

def SegmentResultSet
  @SegmentResultSet
end

#TypeObject

<li>SegmentRecognition:拆条。</li> <li>Highlight :集锦。</li> SegmentRecognition 时有效。注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Type:

    结果的类型,取值范围:

  • SegmentResultSet:

    拆条结果,当 Type 为

  • HighlightResultSet:

    集锦结果,当Type 为 Highlight 时有效。



16492
16493
16494
# File 'lib/v20190612/models.rb', line 16492

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



16500
16501
16502
16503
16504
16505
16506
16507
16508
16509
16510
16511
16512
16513
16514
16515
16516
16517
16518
# File 'lib/v20190612/models.rb', line 16500

def deserialize(params)
  @Type = params['Type']
  unless params['SegmentResultSet'].nil?
    @SegmentResultSet = []
    params['SegmentResultSet'].each do |i|
      segmentrecognitionitem_tmp = SegmentRecognitionItem.new
      segmentrecognitionitem_tmp.deserialize(i)
      @SegmentResultSet << segmentrecognitionitem_tmp
    end
  end
  unless params['HighlightResultSet'].nil?
    @HighlightResultSet = []
    params['HighlightResultSet'].each do |i|
      mediaaianalysishighlightitem_tmp = MediaAiAnalysisHighlightItem.new
      mediaaianalysishighlightitem_tmp.deserialize(i)
      @HighlightResultSet << mediaaianalysishighlightitem_tmp
    end
  end
end