Class: TencentCloud::Ocr::V20181119::TextTable
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::TextTable
- Defined in:
- lib/v20181119/models.rb
Overview
表格识别结果
Instance Attribute Summary collapse
- #AdvancedInfo ⇒ Object
- #ColBr ⇒ Object
- #ColTl ⇒ Object
- #Confidence ⇒ Object
- #Polygon ⇒ Object
- #RowBr ⇒ Object
- #RowTl ⇒ Object
- #Text ⇒ Object
- #Type ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(coltl = nil, rowtl = nil, colbr = nil, rowbr = nil, text = nil, type = nil, confidence = nil, polygon = nil, advancedinfo = nil) ⇒ TextTable
constructor
A new instance of TextTable.
Constructor Details
#initialize(coltl = nil, rowtl = nil, colbr = nil, rowbr = nil, text = nil, type = nil, confidence = nil, polygon = nil, advancedinfo = nil) ⇒ TextTable
Returns a new instance of TextTable.
12039 12040 12041 12042 12043 12044 12045 12046 12047 12048 12049 |
# File 'lib/v20181119/models.rb', line 12039 def initialize(coltl=nil, rowtl=nil, colbr=nil, rowbr=nil, text=nil, type=nil, confidence=nil, polygon=nil, advancedinfo=nil) @ColTl = coltl @RowTl = rowtl @ColBr = colbr @RowBr = rowbr @Text = text @Type = type @Confidence = confidence @Polygon = polygon @AdvancedInfo = advancedinfo end |
Instance Attribute Details
#AdvancedInfo ⇒ Object
12037 12038 12039 |
# File 'lib/v20181119/models.rb', line 12037 def AdvancedInfo @AdvancedInfo end |
#ColBr ⇒ Object
12037 12038 12039 |
# File 'lib/v20181119/models.rb', line 12037 def ColBr @ColBr end |
#ColTl ⇒ Object
12037 12038 12039 |
# File 'lib/v20181119/models.rb', line 12037 def ColTl @ColTl end |
#Confidence ⇒ Object
12037 12038 12039 |
# File 'lib/v20181119/models.rb', line 12037 def Confidence @Confidence end |
#Polygon ⇒ Object
12037 12038 12039 |
# File 'lib/v20181119/models.rb', line 12037 def Polygon @Polygon end |
#RowBr ⇒ Object
12037 12038 12039 |
# File 'lib/v20181119/models.rb', line 12037 def RowBr @RowBr end |
#RowTl ⇒ Object
12037 12038 12039 |
# File 'lib/v20181119/models.rb', line 12037 def RowTl @RowTl end |
#Text ⇒ Object
12037 12038 12039 |
# File 'lib/v20181119/models.rb', line 12037 def Text @Text end |
#Type ⇒ Object
12037 12038 12039 |
# File 'lib/v20181119/models.rb', line 12037 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063 12064 12065 12066 12067 12068 |
# File 'lib/v20181119/models.rb', line 12051 def deserialize(params) @ColTl = params['ColTl'] @RowTl = params['RowTl'] @ColBr = params['ColBr'] @RowBr = params['RowBr'] @Text = params['Text'] @Type = params['Type'] @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'] end |