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.
10913 10914 10915 10916 10917 10918 |
# File 'lib/v20181119/models.rb', line 10913 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;顺时针为正,逆时针为负
10911 10912 10913 |
# File 'lib/v20181119/models.rb', line 10911 def Angle @Angle end |
#RequestId ⇒ Object
为 0;顺时针为正,逆时针为负
10911 10912 10913 |
# File 'lib/v20181119/models.rb', line 10911 def RequestId @RequestId end |
#StructuralList ⇒ Object
为 0;顺时针为正,逆时针为负
10911 10912 10913 |
# File 'lib/v20181119/models.rb', line 10911 def StructuralList @StructuralList end |
#WordList ⇒ Object
为 0;顺时针为正,逆时针为负
10911 10912 10913 |
# File 'lib/v20181119/models.rb', line 10911 def WordList @WordList end |
Instance Method Details
#deserialize(params) ⇒ Object
10920 10921 10922 10923 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 |
# File 'lib/v20181119/models.rb', line 10920 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 |