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.
10644 10645 10646 10647 10648 10649 10650 10651 |
# File 'lib/v20181119/models.rb', line 10644 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
10642 10643 10644 |
# File 'lib/v20181119/models.rb', line 10642 def Location @Location end |
#OtherTexts ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10642 10643 10644 |
# File 'lib/v20181119/models.rb', line 10642 def OtherTexts @OtherTexts end |
#RequestId ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10642 10643 10644 |
# File 'lib/v20181119/models.rb', line 10642 def RequestId @RequestId end |
#SealBody ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10642 10643 10644 |
# File 'lib/v20181119/models.rb', line 10642 def SealBody @SealBody end |
#SealInfos ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10642 10643 10644 |
# File 'lib/v20181119/models.rb', line 10642 def SealInfos @SealInfos end |
#SealShape ⇒ Object
圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4
10642 10643 10644 |
# File 'lib/v20181119/models.rb', line 10642 def SealShape @SealShape end |
Instance Method Details
#deserialize(params) ⇒ Object
10653 10654 10655 10656 10657 10658 10659 10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 |
# File 'lib/v20181119/models.rb', line 10653 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 |