Class: TencentCloud::Vm::V20210922::OcrHitInfo
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Vm::V20210922::OcrHitInfo
- Defined in:
- lib/v20210922/models.rb
Overview
Ocr命中信息
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(type = nil, keyword = nil, libname = nil, positions = nil) ⇒ OcrHitInfo
constructor
A new instance of OcrHitInfo.
Constructor Details
#initialize(type = nil, keyword = nil, libname = nil, positions = nil) ⇒ OcrHitInfo
Returns a new instance of OcrHitInfo.
1098 1099 1100 1101 1102 1103 |
# File 'lib/v20210922/models.rb', line 1098 def initialize(type=nil, keyword=nil, libname=nil, positions=nil) @Type = type @Keyword = keyword @LibName = libname @Positions = positions end |
Instance Attribute Details
#Keyword ⇒ Object
1096 1097 1098 |
# File 'lib/v20210922/models.rb', line 1096 def Keyword @Keyword end |
#LibName ⇒ Object
1096 1097 1098 |
# File 'lib/v20210922/models.rb', line 1096 def LibName @LibName end |
#Positions ⇒ Object
1096 1097 1098 |
# File 'lib/v20210922/models.rb', line 1096 def Positions @Positions end |
#Type ⇒ Object
1096 1097 1098 |
# File 'lib/v20210922/models.rb', line 1096 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 |
# File 'lib/v20210922/models.rb', line 1105 def deserialize(params) @Type = params['Type'] @Keyword = params['Keyword'] @LibName = params['LibName'] unless params['Positions'].nil? @Positions = [] params['Positions'].each do |i| textposition_tmp = TextPosition.new textposition_tmp.deserialize(i) @Positions << textposition_tmp end end end |