Class: TencentCloud::Ticm::V20181127::VodPoliticalOcrReviewResult

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

Overview

内容审核 Ocr 文字鉴政、敏感任务结果类型

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status = nil, code = nil, msg = nil, confidence = nil, suggestion = nil, segmentset = nil) ⇒ VodPoliticalOcrReviewResult

Returns a new instance of VodPoliticalOcrReviewResult.



828
829
830
831
832
833
834
835
# File 'lib/v20181127/models.rb', line 828

def initialize(status=nil, code=nil, msg=nil, confidence=nil, suggestion=nil, segmentset=nil)
  @Status = status
  @Code = code
  @Msg = msg
  @Confidence = confidence
  @Suggestion = suggestion
  @SegmentSet = segmentset
end

Instance Attribute Details

#CodeObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。pass。review。block。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。

  • Code:

    错误码,0:成功,其他值:失败。

  • Msg:

    错误信息。

  • Confidence:

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

  • Suggestion:

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

  • SegmentSet:

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



826
827
828
# File 'lib/v20181127/models.rb', line 826

def Code
  @Code
end

#ConfidenceObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。pass。review。block。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。

  • Code:

    错误码,0:成功,其他值:失败。

  • Msg:

    错误信息。

  • Confidence:

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

  • Suggestion:

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

  • SegmentSet:

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



826
827
828
# File 'lib/v20181127/models.rb', line 826

def Confidence
  @Confidence
end

#MsgObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。pass。review。block。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。

  • Code:

    错误码,0:成功,其他值:失败。

  • Msg:

    错误信息。

  • Confidence:

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

  • Suggestion:

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

  • SegmentSet:

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



826
827
828
# File 'lib/v20181127/models.rb', line 826

def Msg
  @Msg
end

#SegmentSetObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。pass。review。block。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。

  • Code:

    错误码,0:成功,其他值:失败。

  • Msg:

    错误信息。

  • Confidence:

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

  • Suggestion:

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

  • SegmentSet:

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



826
827
828
# File 'lib/v20181127/models.rb', line 826

def SegmentSet
  @SegmentSet
end

#StatusObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。pass。review。block。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。

  • Code:

    错误码,0:成功,其他值:失败。

  • Msg:

    错误信息。

  • Confidence:

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

  • Suggestion:

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

  • SegmentSet:

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



826
827
828
# File 'lib/v20181127/models.rb', line 826

def Status
  @Status
end

#SuggestionObject

注意:此字段可能返回 null,表示取不到有效值。注意:此字段可能返回 null,表示取不到有效值。pass。review。block。注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。

  • Code:

    错误码,0:成功,其他值:失败。

  • Msg:

    错误信息。

  • Confidence:

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

  • Suggestion:

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

  • SegmentSet:

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



826
827
828
# File 'lib/v20181127/models.rb', line 826

def Suggestion
  @Suggestion
end

Instance Method Details

#deserialize(params) ⇒ Object



837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
# File 'lib/v20181127/models.rb', line 837

def deserialize(params)
  @Status = params['Status']
  @Code = params['Code']
  @Msg = params['Msg']
  @Confidence = params['Confidence']
  @Suggestion = params['Suggestion']
  unless params['SegmentSet'].nil?
    @SegmentSet = []
    params['SegmentSet'].each do |i|
      vodocrtextsegmentitem_tmp = VodOcrTextSegmentItem.new
      vodocrtextsegmentitem_tmp.deserialize(i)
      @SegmentSet << vodocrtextsegmentitem_tmp
    end
  end
end