Class: TencentCloud::Mps::V20190612::AiReviewProhibitedOcrTaskOutput
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Mps::V20190612::AiReviewProhibitedOcrTaskOutput
- Defined in:
- lib/v20190612/models.rb
Overview
Ocr 文字涉违禁信息
Instance Attribute Summary collapse
-
#Confidence ⇒ Object
- pass。
- review。
- block。
. -
#SegmentSet ⇒ Object
- pass。
- review。
- block。
. -
#Suggestion ⇒ Object
- pass。
- review。
- block。
.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(confidence = nil, suggestion = nil, segmentset = nil) ⇒ AiReviewProhibitedOcrTaskOutput
constructor
A new instance of AiReviewProhibitedOcrTaskOutput.
Constructor Details
#initialize(confidence = nil, suggestion = nil, segmentset = nil) ⇒ AiReviewProhibitedOcrTaskOutput
Returns a new instance of AiReviewProhibitedOcrTaskOutput.
4166 4167 4168 4169 4170 |
# File 'lib/v20190612/models.rb', line 4166 def initialize(confidence=nil, suggestion=nil, segmentset=nil) @Confidence = confidence @Suggestion = suggestion @SegmentSet = segmentset end |
Instance Attribute Details
#Confidence ⇒ Object
4164 4165 4166 |
# File 'lib/v20190612/models.rb', line 4164 def Confidence @Confidence end |
#SegmentSet ⇒ Object
4164 4165 4166 |
# File 'lib/v20190612/models.rb', line 4164 def SegmentSet @SegmentSet end |
#Suggestion ⇒ Object
4164 4165 4166 |
# File 'lib/v20190612/models.rb', line 4164 def Suggestion @Suggestion end |
Instance Method Details
#deserialize(params) ⇒ Object
4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 |
# File 'lib/v20190612/models.rb', line 4172 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 |