Class: TencentCloud::Ocr::V20181119::ContentInfo

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

Overview

卡证字段信息返回值

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content = nil, confidence = nil, isincomplete = nil, isreflect = nil) ⇒ ContentInfo

Returns a new instance of ContentInfo.



1416
1417
1418
1419
1420
1421
# File 'lib/v20181119/models.rb', line 1416

def initialize(content=nil, confidence=nil, isincomplete=nil, isreflect=nil)
  @Content = content
  @Confidence = confidence
  @IsInComplete = isincomplete
  @IsReflect = isreflect
end

Instance Attribute Details

#ConfidenceObject

0 字段正常 1 字段不完整 0 字段正常 1 字段有反光

Parameters:

  • Content:

    字段内容

  • Confidence:

    结果置信度

  • IsInComplete:

    字段是否不完整

  • IsReflect:

    字段反光



1414
1415
1416
# File 'lib/v20181119/models.rb', line 1414

def Confidence
  @Confidence
end

#ContentObject

0 字段正常 1 字段不完整 0 字段正常 1 字段有反光

Parameters:

  • Content:

    字段内容

  • Confidence:

    结果置信度

  • IsInComplete:

    字段是否不完整

  • IsReflect:

    字段反光



1414
1415
1416
# File 'lib/v20181119/models.rb', line 1414

def Content
  @Content
end

#IsInCompleteObject

0 字段正常 1 字段不完整 0 字段正常 1 字段有反光

Parameters:

  • Content:

    字段内容

  • Confidence:

    结果置信度

  • IsInComplete:

    字段是否不完整

  • IsReflect:

    字段反光



1414
1415
1416
# File 'lib/v20181119/models.rb', line 1414

def IsInComplete
  @IsInComplete
end

#IsReflectObject

0 字段正常 1 字段不完整 0 字段正常 1 字段有反光

Parameters:

  • Content:

    字段内容

  • Confidence:

    结果置信度

  • IsInComplete:

    字段是否不完整

  • IsReflect:

    字段反光



1414
1415
1416
# File 'lib/v20181119/models.rb', line 1414

def IsReflect
  @IsReflect
end

Instance Method Details

#deserialize(params) ⇒ Object



1423
1424
1425
1426
1427
1428
# File 'lib/v20181119/models.rb', line 1423

def deserialize(params)
  @Content = params['Content']
  @Confidence = params['Confidence']
  @IsInComplete = params['IsInComplete']
  @IsReflect = params['IsReflect']
end