Class: TencentCloud::Vod::V20180717::MediaAiAnalysisHighlightItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Vod::V20180717::MediaAiAnalysisHighlightItem
- Defined in:
- lib/v20180717/models.rb
Overview
智能精彩片段信息
Instance Attribute Summary collapse
- #Confidence ⇒ Object
- #CovImgUrl ⇒ Object
- #Duration ⇒ Object
- #HighlightUrl ⇒ Object
- #SegmentSet ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(highlighturl = nil, covimgurl = nil, confidence = nil, duration = nil, segmentset = nil) ⇒ MediaAiAnalysisHighlightItem
constructor
A new instance of MediaAiAnalysisHighlightItem.
Constructor Details
#initialize(highlighturl = nil, covimgurl = nil, confidence = nil, duration = nil, segmentset = nil) ⇒ MediaAiAnalysisHighlightItem
Returns a new instance of MediaAiAnalysisHighlightItem.
16627 16628 16629 16630 16631 16632 16633 |
# File 'lib/v20180717/models.rb', line 16627 def initialize(highlighturl=nil, covimgurl=nil, confidence=nil, duration=nil, segmentset=nil) @HighlightUrl = highlighturl @CovImgUrl = covimgurl @Confidence = confidence @Duration = duration @SegmentSet = segmentset end |
Instance Attribute Details
#Confidence ⇒ Object
16625 16626 16627 |
# File 'lib/v20180717/models.rb', line 16625 def Confidence @Confidence end |
#CovImgUrl ⇒ Object
16625 16626 16627 |
# File 'lib/v20180717/models.rb', line 16625 def CovImgUrl @CovImgUrl end |
#Duration ⇒ Object
16625 16626 16627 |
# File 'lib/v20180717/models.rb', line 16625 def Duration @Duration end |
#HighlightUrl ⇒ Object
16625 16626 16627 |
# File 'lib/v20180717/models.rb', line 16625 def HighlightUrl @HighlightUrl end |
#SegmentSet ⇒ Object
16625 16626 16627 |
# File 'lib/v20180717/models.rb', line 16625 def SegmentSet @SegmentSet end |
Instance Method Details
#deserialize(params) ⇒ Object
16635 16636 16637 16638 16639 16640 16641 16642 16643 16644 16645 16646 16647 16648 |
# File 'lib/v20180717/models.rb', line 16635 def deserialize(params) @HighlightUrl = params['HighlightUrl'] @CovImgUrl = params['CovImgUrl'] @Confidence = params['Confidence'] @Duration = params['Duration'] unless params['SegmentSet'].nil? @SegmentSet = [] params['SegmentSet'].each do |i| highlightsegmentitem_tmp = HighlightSegmentItem.new highlightsegmentitem_tmp.deserialize(i) @SegmentSet << highlightsegmentitem_tmp end end end |