Class: TencentCloud::Ticm::V20181127::TerrorismResult
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ticm::V20181127::TerrorismResult
- Defined in:
- lib/v20181127/models.rb
Overview
暴恐识别结果。
Instance Attribute Summary collapse
-
#AdvancedInfo ⇒ Object
0表示成功, -1表示系统错误, -2表示引擎错误, -1400表示图片解码失败。 PASS:正常 REVIEW:疑似 BLOCK:违规 Type为LABEL时: 0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时: 0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK.
-
#Code ⇒ Object
0表示成功, -1表示系统错误, -2表示引擎错误, -1400表示图片解码失败。 PASS:正常 REVIEW:疑似 BLOCK:违规 Type为LABEL时: 0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时: 0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK.
-
#Confidence ⇒ Object
0表示成功, -1表示系统错误, -2表示引擎错误, -1400表示图片解码失败。 PASS:正常 REVIEW:疑似 BLOCK:违规 Type为LABEL时: 0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时: 0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK.
-
#FaceResults ⇒ Object
0表示成功, -1表示系统错误, -2表示引擎错误, -1400表示图片解码失败。 PASS:正常 REVIEW:疑似 BLOCK:违规 Type为LABEL时: 0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时: 0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK.
-
#Msg ⇒ Object
0表示成功, -1表示系统错误, -2表示引擎错误, -1400表示图片解码失败。 PASS:正常 REVIEW:疑似 BLOCK:违规 Type为LABEL时: 0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时: 0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK.
-
#Suggestion ⇒ Object
0表示成功, -1表示系统错误, -2表示引擎错误, -1400表示图片解码失败。 PASS:正常 REVIEW:疑似 BLOCK:违规 Type为LABEL时: 0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时: 0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK.
-
#Type ⇒ Object
0表示成功, -1表示系统错误, -2表示引擎错误, -1400表示图片解码失败。 PASS:正常 REVIEW:疑似 BLOCK:违规 Type为LABEL时: 0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时: 0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(code = nil, msg = nil, suggestion = nil, confidence = nil, faceresults = nil, advancedinfo = nil, type = nil) ⇒ TerrorismResult
constructor
A new instance of TerrorismResult.
Constructor Details
#initialize(code = nil, msg = nil, suggestion = nil, confidence = nil, faceresults = nil, advancedinfo = nil, type = nil) ⇒ TerrorismResult
Returns a new instance of TerrorismResult.
477 478 479 480 481 482 483 484 485 |
# File 'lib/v20181127/models.rb', line 477 def initialize(code=nil, msg=nil, suggestion=nil, confidence=nil, faceresults=nil, advancedinfo=nil, type=nil) @Code = code @Msg = msg @Suggestion = suggestion @Confidence = confidence @FaceResults = faceresults @AdvancedInfo = advancedinfo @Type = type end |
Instance Attribute Details
#AdvancedInfo ⇒ Object
0表示成功,-1表示系统错误,-2表示引擎错误,-1400表示图片解码失败。PASS:正常REVIEW:疑似BLOCK:违规Type为LABEL时:0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时:0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK
475 476 477 |
# File 'lib/v20181127/models.rb', line 475 def AdvancedInfo @AdvancedInfo end |
#Code ⇒ Object
0表示成功,-1表示系统错误,-2表示引擎错误,-1400表示图片解码失败。PASS:正常REVIEW:疑似BLOCK:违规Type为LABEL时:0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时:0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK
475 476 477 |
# File 'lib/v20181127/models.rb', line 475 def Code @Code end |
#Confidence ⇒ Object
0表示成功,-1表示系统错误,-2表示引擎错误,-1400表示图片解码失败。PASS:正常REVIEW:疑似BLOCK:违规Type为LABEL时:0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时:0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK
475 476 477 |
# File 'lib/v20181127/models.rb', line 475 def Confidence @Confidence end |
#FaceResults ⇒ Object
0表示成功,-1表示系统错误,-2表示引擎错误,-1400表示图片解码失败。PASS:正常REVIEW:疑似BLOCK:违规Type为LABEL时:0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时:0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK
475 476 477 |
# File 'lib/v20181127/models.rb', line 475 def FaceResults @FaceResults end |
#Msg ⇒ Object
0表示成功,-1表示系统错误,-2表示引擎错误,-1400表示图片解码失败。PASS:正常REVIEW:疑似BLOCK:违规Type为LABEL时:0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时:0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK
475 476 477 |
# File 'lib/v20181127/models.rb', line 475 def Msg @Msg end |
#Suggestion ⇒ Object
0表示成功,-1表示系统错误,-2表示引擎错误,-1400表示图片解码失败。PASS:正常REVIEW:疑似BLOCK:违规Type为LABEL时:0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时:0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK
475 476 477 |
# File 'lib/v20181127/models.rb', line 475 def Suggestion @Suggestion end |
#Type ⇒ Object
0表示成功,-1表示系统错误,-2表示引擎错误,-1400表示图片解码失败。PASS:正常REVIEW:疑似BLOCK:违规Type为LABEL时:0到86,Suggestion建议为PASS 86到91,Suggestion建议为REVIEW 91到100,Suggestion建议为BLOCK Type为FACE时:0到55,Suggestion建议为PASS 55到60,Suggestion建议为REVIEW 60到100,Suggestion建议为BLOCK
475 476 477 |
# File 'lib/v20181127/models.rb', line 475 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 |
# File 'lib/v20181127/models.rb', line 487 def deserialize(params) @Code = params['Code'] @Msg = params['Msg'] @Suggestion = params['Suggestion'] @Confidence = params['Confidence'] unless params['FaceResults'].nil? @FaceResults = [] params['FaceResults'].each do |i| faceresult_tmp = FaceResult.new faceresult_tmp.deserialize(i) @FaceResults << faceresult_tmp end end @AdvancedInfo = params['AdvancedInfo'] @Type = params['Type'] end |