Class: TencentCloud::Ocr::V20181119::SealOCRResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ocr::V20181119::SealOCRResponse
- Defined in:
- lib/v20181119/models.rb
Overview
SealOCR返回参数结构体
Instance Attribute Summary collapse
-
#Location ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4.
-
#OtherTexts ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4.
-
#RequestId ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4.
-
#SealBody ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4.
-
#SealInfos ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4.
-
#SealShape ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(sealbody = nil, location = nil, othertexts = nil, sealinfos = nil, sealshape = nil, requestid = nil) ⇒ SealOCRResponse
constructor
A new instance of SealOCRResponse.
Constructor Details
#initialize(sealbody = nil, location = nil, othertexts = nil, sealinfos = nil, sealshape = nil, requestid = nil) ⇒ SealOCRResponse
Returns a new instance of SealOCRResponse.
10299 10300 10301 10302 10303 10304 10305 10306 |
# File 'lib/v20181119/models.rb', line 10299 def initialize(sealbody=nil, location=nil, othertexts=nil, sealinfos=nil, sealshape=nil, requestid=nil) @SealBody = sealbody @Location = location @OtherTexts = othertexts @SealInfos = sealinfos @SealShape = sealshape @RequestId = requestid end |
Instance Attribute Details
#Location ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10297 10298 10299 |
# File 'lib/v20181119/models.rb', line 10297 def Location @Location end |
#OtherTexts ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10297 10298 10299 |
# File 'lib/v20181119/models.rb', line 10297 def OtherTexts @OtherTexts end |
#RequestId ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10297 10298 10299 |
# File 'lib/v20181119/models.rb', line 10297 def RequestId @RequestId end |
#SealBody ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10297 10298 10299 |
# File 'lib/v20181119/models.rb', line 10297 def SealBody @SealBody end |
#SealInfos ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10297 10298 10299 |
# File 'lib/v20181119/models.rb', line 10297 def SealInfos @SealInfos end |
#SealShape ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10297 10298 10299 |
# File 'lib/v20181119/models.rb', line 10297 def SealShape @SealShape end |
Instance Method Details
#deserialize(params) ⇒ Object
10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 |
# File 'lib/v20181119/models.rb', line 10308 def deserialize(params) @SealBody = params['SealBody'] unless params['Location'].nil? @Location = Rect.new @Location.deserialize(params['Location']) end @OtherTexts = params['OtherTexts'] unless params['SealInfos'].nil? @SealInfos = [] params['SealInfos'].each do |i| sealinfo_tmp = SealInfo.new sealinfo_tmp.deserialize(i) @SealInfos << sealinfo_tmp end end @SealShape = params['SealShape'] @RequestId = params['RequestId'] end |