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.
10616 10617 10618 10619 10620 10621 10622 10623 |
# File 'lib/v20181119/models.rb', line 10616 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
10614 10615 10616 |
# File 'lib/v20181119/models.rb', line 10614 def Location @Location end |
#OtherTexts ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10614 10615 10616 |
# File 'lib/v20181119/models.rb', line 10614 def OtherTexts @OtherTexts end |
#RequestId ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10614 10615 10616 |
# File 'lib/v20181119/models.rb', line 10614 def RequestId @RequestId end |
#SealBody ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10614 10615 10616 |
# File 'lib/v20181119/models.rb', line 10614 def SealBody @SealBody end |
#SealInfos ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10614 10615 10616 |
# File 'lib/v20181119/models.rb', line 10614 def SealInfos @SealInfos end |
#SealShape ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10614 10615 10616 |
# File 'lib/v20181119/models.rb', line 10614 def SealShape @SealShape end |
Instance Method Details
#deserialize(params) ⇒ Object
10625 10626 10627 10628 10629 10630 10631 10632 10633 10634 10635 10636 10637 10638 10639 10640 10641 10642 |
# File 'lib/v20181119/models.rb', line 10625 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 |