Class: TencentCloud::Ocr::V20181119::SmartStructuralOCRV2Response
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::SmartStructuralOCRV2Response
- Defined in:
- lib/v20181119/models.rb
Overview
SmartStructuralOCRV2返回参数结构体
Instance Attribute Summary collapse
-
#Angle ⇒ Object
为 0;顺时针为正,逆时针为负.
-
#RequestId ⇒ Object
为 0;顺时针为正,逆时针为负.
-
#StructuralList ⇒ Object
为 0;顺时针为正,逆时针为负.
-
#WordList ⇒ Object
为 0;顺时针为正,逆时针为负.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(angle = nil, structurallist = nil, wordlist = nil, requestid = nil) ⇒ SmartStructuralOCRV2Response
constructor
A new instance of SmartStructuralOCRV2Response.
Constructor Details
#initialize(angle = nil, structurallist = nil, wordlist = nil, requestid = nil) ⇒ SmartStructuralOCRV2Response
Returns a new instance of SmartStructuralOCRV2Response.
10156 10157 10158 10159 10160 10161 |
# File 'lib/v20181119/models.rb', line 10156 def initialize(angle=nil, structurallist=nil, wordlist=nil, requestid=nil) @Angle = angle @StructuralList = structurallist @WordList = wordlist @RequestId = requestid end |
Instance Attribute Details
#Angle ⇒ Object
为 0;顺时针为正,逆时针为负
10154 10155 10156 |
# File 'lib/v20181119/models.rb', line 10154 def Angle @Angle end |
#RequestId ⇒ Object
为 0;顺时针为正,逆时针为负
10154 10155 10156 |
# File 'lib/v20181119/models.rb', line 10154 def RequestId @RequestId end |
#StructuralList ⇒ Object
为 0;顺时针为正,逆时针为负
10154 10155 10156 |
# File 'lib/v20181119/models.rb', line 10154 def StructuralList @StructuralList end |
#WordList ⇒ Object
为 0;顺时针为正,逆时针为负
10154 10155 10156 |
# File 'lib/v20181119/models.rb', line 10154 def WordList @WordList end |
Instance Method Details
#deserialize(params) ⇒ Object
10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 |
# File 'lib/v20181119/models.rb', line 10163 def deserialize(params) @Angle = params['Angle'] unless params['StructuralList'].nil? @StructuralList = [] params['StructuralList'].each do |i| groupinfo_tmp = GroupInfo.new groupinfo_tmp.deserialize(i) @StructuralList << groupinfo_tmp end end unless params['WordList'].nil? @WordList = [] params['WordList'].each do |i| worditem_tmp = WordItem.new worditem_tmp.deserialize(i) @WordList << worditem_tmp end end @RequestId = params['RequestId'] end |