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.



4280
4281
4282
4283
4284
# File 'lib/v20181119/models.rb', line 4280

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

Instance Attribute Details

#IsWarnObject

Parameters:

  • IsWarn:

    是否存在该告警

  • RiskConfidence:

    风险程度

  • Polygon:

    告警位置四点坐标



4278
4279
4280
# File 'lib/v20181119/models.rb', line 4278

def IsWarn
  @IsWarn
end

#PolygonObject

Parameters:

  • IsWarn:

    是否存在该告警

  • RiskConfidence:

    风险程度

  • Polygon:

    告警位置四点坐标



4278
4279
4280
# File 'lib/v20181119/models.rb', line 4278

def Polygon
  @Polygon
end

#RiskConfidenceObject

Parameters:

  • IsWarn:

    是否存在该告警

  • RiskConfidence:

    风险程度

  • Polygon:

    告警位置四点坐标



4278
4279
4280
# File 'lib/v20181119/models.rb', line 4278

def RiskConfidence
  @RiskConfidence
end

Instance Method Details

#deserialize(params) ⇒ Object



4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
# File 'lib/v20181119/models.rb', line 4286

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