Class: TencentCloud::Ocr::V20181119::GeneralCardWarnInfo

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

Overview

通用卡证鉴伪告警信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(iswarn = nil, riskconfidence = nil, polygon = nil) ⇒ GeneralCardWarnInfo

Returns a new instance of GeneralCardWarnInfo.



4083
4084
4085
4086
4087
# File 'lib/v20181119/models.rb', line 4083

def initialize(iswarn=nil, riskconfidence=nil, polygon=nil)
  @IsWarn = iswarn
  @RiskConfidence = riskconfidence
  @Polygon = polygon
end

Instance Attribute Details

#IsWarnObject

Parameters:

  • IsWarn:

    是否存在该告警

  • RiskConfidence:

    风险程度

  • Polygon:

    告警位置四点坐标



4081
4082
4083
# File 'lib/v20181119/models.rb', line 4081

def IsWarn
  @IsWarn
end

#PolygonObject

Parameters:

  • IsWarn:

    是否存在该告警

  • RiskConfidence:

    风险程度

  • Polygon:

    告警位置四点坐标



4081
4082
4083
# File 'lib/v20181119/models.rb', line 4081

def Polygon
  @Polygon
end

#RiskConfidenceObject

Parameters:

  • IsWarn:

    是否存在该告警

  • RiskConfidence:

    风险程度

  • Polygon:

    告警位置四点坐标



4081
4082
4083
# File 'lib/v20181119/models.rb', line 4081

def RiskConfidence
  @RiskConfidence
end

Instance Method Details

#deserialize(params) ⇒ Object



4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
# File 'lib/v20181119/models.rb', line 4089

def deserialize(params)
  @IsWarn = params['IsWarn']
  @RiskConfidence = params['RiskConfidence']
  unless params['Polygon'].nil?
    @Polygon = []
    params['Polygon'].each do |i|
      polygon_tmp = Polygon.new
      polygon_tmp.deserialize(i)
      @Polygon << polygon_tmp
    end
  end
end