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.
1079 1080 1081 1082 1083 1084 |
# File 'lib/v20210922/models.rb', line 1079 def initialize(type=nil, keyword=nil, libname=nil, positions=nil) @Type = type @Keyword = keyword @LibName = libname @Positions = positions end |
Instance Attribute Details
#Keyword ⇒ Object
1077 1078 1079 |
# File 'lib/v20210922/models.rb', line 1077 def Keyword @Keyword end |
#LibName ⇒ Object
1077 1078 1079 |
# File 'lib/v20210922/models.rb', line 1077 def LibName @LibName end |
#Positions ⇒ Object
1077 1078 1079 |
# File 'lib/v20210922/models.rb', line 1077 def Positions @Positions end |
#Type ⇒ Object
1077 1078 1079 |
# File 'lib/v20210922/models.rb', line 1077 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 |
# File 'lib/v20210922/models.rb', line 1086 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 |