Class: TencentCloud::Ocr::V20181119::DetectedWords

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

Overview

识别出来的单字信息包括单字(包括单字Character和单字置信度confidence)

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(confidence = nil, character = nil) ⇒ DetectedWords

Returns a new instance of DetectedWords.



1604
1605
1606
1607
# File 'lib/v20181119/models.rb', line 1604

def initialize(confidence=nil, character=nil)
  @Confidence = confidence
  @Character = character
end

Instance Attribute Details

#CharacterObject

Parameters:

  • Confidence:

    置信度 0 ~100

  • Character:

    候选字Character



1602
1603
1604
# File 'lib/v20181119/models.rb', line 1602

def Character
  @Character
end

#ConfidenceObject

Parameters:

  • Confidence:

    置信度 0 ~100

  • Character:

    候选字Character



1602
1603
1604
# File 'lib/v20181119/models.rb', line 1602

def Confidence
  @Confidence
end

Instance Method Details

#deserialize(params) ⇒ Object



1609
1610
1611
1612
# File 'lib/v20181119/models.rb', line 1609

def deserialize(params)
  @Confidence = params['Confidence']
  @Character = params['Character']
end