Class: TencentCloud::Mps::V20190612::AiReviewTerrorismOcrTaskOutput

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

Overview

Ocr 文字涉敏信息

Instance Attribute Summary collapse

  • #SegmentSet ⇒ Object
  • pass。
  • review。
  • block。
  • .
  • #Suggestion ⇒ Object
  • pass。
  • review。
  • block。
  • .

    Instance Method Summary collapse

    Constructor Details

    #initialize(confidence = nil, suggestion = nil, segmentset = nil) ⇒ AiReviewTerrorismOcrTaskOutput

    Returns a new instance of AiReviewTerrorismOcrTaskOutput.

    
    
    4646
    4647
    4648
    4649
    4650
    # File 'lib/v20190612/models.rb', line 4646
    
    def initialize(confidence=nil, suggestion=nil, segmentset=nil)
      @Confidence = confidence
      @Suggestion = suggestion
      @SegmentSet = segmentset
    end

    Instance Attribute Details

    #ConfidenceObject

  • pass。
  • review。
  • block。
  • Parameters:

    • Confidence:

      Ocr 文字涉敏评分,分值为0到100。

    • Suggestion:

      Ocr 文字涉敏结果建议,取值范围:

    • SegmentSet:

      Ocr 文字有涉敏嫌疑的视频片段列表。

    
    
    4644
    4645
    4646
    # File 'lib/v20190612/models.rb', line 4644
    
    def Confidence
      @Confidence
    end

    #SegmentSetObject

  • pass。
  • review。
  • block。
  • Parameters:

    • Confidence:

      Ocr 文字涉敏评分,分值为0到100。

    • Suggestion:

      Ocr 文字涉敏结果建议,取值范围:

    • SegmentSet:

      Ocr 文字有涉敏嫌疑的视频片段列表。

    
    
    4644
    4645
    4646
    # File 'lib/v20190612/models.rb', line 4644
    
    def SegmentSet
      @SegmentSet
    end

    #SuggestionObject

  • pass。
  • review。
  • block。
  • Parameters:

    • Confidence:

      Ocr 文字涉敏评分,分值为0到100。

    • Suggestion:

      Ocr 文字涉敏结果建议,取值范围:

    • SegmentSet:

      Ocr 文字有涉敏嫌疑的视频片段列表。

    
    
    4644
    4645
    4646
    # File 'lib/v20190612/models.rb', line 4644
    
    def Suggestion
      @Suggestion
    end

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    4652
    4653
    4654
    4655
    4656
    4657
    4658
    4659
    4660
    4661
    4662
    4663
    # File 'lib/v20190612/models.rb', line 4652
    
    def deserialize(params)
      @Confidence = params['Confidence']
      @Suggestion = params['Suggestion']
      unless params['SegmentSet'].nil?
        @SegmentSet = []
        params['SegmentSet'].each do |i|
          mediacontentreviewocrtextsegmentitem_tmp = MediaContentReviewOcrTextSegmentItem.new
          mediacontentreviewocrtextsegmentitem_tmp.deserialize(i)
          @SegmentSet << mediacontentreviewocrtextsegmentitem_tmp
        end
      end
    end