Class: TencentCloud::Ocr::V20181119::TextGeneralHandwriting
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::TextGeneralHandwriting
- Defined in:
- lib/v20181119/models.rb
Overview
文字识别结果
Instance Attribute Summary collapse
-
#AdvancedInfo ⇒ Object
能返回文本行的段落信息,例如:"Parag":{"ParagNo":2}, 其中ParagNo为段落行,从1开始。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Confidence ⇒ Object
能返回文本行的段落信息,例如:"Parag":{"ParagNo":2}, 其中ParagNo为段落行,从1开始。 注意:此字段可能返回 null,表示取不到有效值。.
-
#DetectedText ⇒ Object
能返回文本行的段落信息,例如:"Parag":{"ParagNo":2}, 其中ParagNo为段落行,从1开始。 注意:此字段可能返回 null,表示取不到有效值。.
-
#Polygon ⇒ Object
能返回文本行的段落信息,例如:"Parag":{"ParagNo":2}, 其中ParagNo为段落行,从1开始。 注意:此字段可能返回 null,表示取不到有效值。.
-
#WordPolygon ⇒ Object
能返回文本行的段落信息,例如:"Parag":{"ParagNo":2}, 其中ParagNo为段落行,从1开始。 注意:此字段可能返回 null,表示取不到有效值。.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(detectedtext = nil, confidence = nil, polygon = nil, advancedinfo = nil, wordpolygon = nil) ⇒ TextGeneralHandwriting
constructor
A new instance of TextGeneralHandwriting.
Constructor Details
#initialize(detectedtext = nil, confidence = nil, polygon = nil, advancedinfo = nil, wordpolygon = nil) ⇒ TextGeneralHandwriting
Returns a new instance of TextGeneralHandwriting.
12252 12253 12254 12255 12256 12257 12258 |
# File 'lib/v20181119/models.rb', line 12252 def initialize(detectedtext=nil, confidence=nil, polygon=nil, advancedinfo=nil, wordpolygon=nil) @DetectedText = detectedtext @Confidence = confidence @Polygon = polygon @AdvancedInfo = advancedinfo @WordPolygon = wordpolygon end |
Instance Attribute Details
#AdvancedInfo ⇒ Object
能返回文本行的段落信息,例如:"Parag":{"ParagNo":2},其中ParagNo为段落行,从1开始。注意:此字段可能返回 null,表示取不到有效值。
12250 12251 12252 |
# File 'lib/v20181119/models.rb', line 12250 def AdvancedInfo @AdvancedInfo end |
#Confidence ⇒ Object
能返回文本行的段落信息,例如:"Parag":{"ParagNo":2},其中ParagNo为段落行,从1开始。注意:此字段可能返回 null,表示取不到有效值。
12250 12251 12252 |
# File 'lib/v20181119/models.rb', line 12250 def Confidence @Confidence end |
#DetectedText ⇒ Object
能返回文本行的段落信息,例如:"Parag":{"ParagNo":2},其中ParagNo为段落行,从1开始。注意:此字段可能返回 null,表示取不到有效值。
12250 12251 12252 |
# File 'lib/v20181119/models.rb', line 12250 def DetectedText @DetectedText end |
#Polygon ⇒ Object
能返回文本行的段落信息,例如:"Parag":{"ParagNo":2},其中ParagNo为段落行,从1开始。注意:此字段可能返回 null,表示取不到有效值。
12250 12251 12252 |
# File 'lib/v20181119/models.rb', line 12250 def Polygon @Polygon end |
#WordPolygon ⇒ Object
能返回文本行的段落信息,例如:"Parag":{"ParagNo":2},其中ParagNo为段落行,从1开始。注意:此字段可能返回 null,表示取不到有效值。
12250 12251 12252 |
# File 'lib/v20181119/models.rb', line 12250 def WordPolygon @WordPolygon end |
Instance Method Details
#deserialize(params) ⇒ Object
12260 12261 12262 12263 12264 12265 12266 12267 12268 12269 12270 12271 12272 12273 12274 12275 12276 12277 12278 12279 12280 |
# File 'lib/v20181119/models.rb', line 12260 def deserialize(params) @DetectedText = params['DetectedText'] @Confidence = params['Confidence'] unless params['Polygon'].nil? @Polygon = [] params['Polygon'].each do |i| coord_tmp = Coord.new coord_tmp.deserialize(i) @Polygon << coord_tmp end end @AdvancedInfo = params['AdvancedInfo'] unless params['WordPolygon'].nil? @WordPolygon = [] params['WordPolygon'].each do |i| polygon_tmp = Polygon.new polygon_tmp.deserialize(i) @WordPolygon << polygon_tmp end end end |