Class: TencentCloud::Ocr::V20181119::SealInfo

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20181119/models.rb

Overview

印章信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sealbody = nil, location = nil, othertexts = nil, sealshape = nil) ⇒ SealInfo

Returns a new instance of SealInfo.



10229
10230
10231
10232
10233
10234
# File 'lib/v20181119/models.rb', line 10229

def initialize(sealbody=nil, location=nil, othertexts=nil, sealshape=nil)
  @SealBody = sealbody
  @Location = location
  @OtherTexts = othertexts
  @SealShape = sealshape
end

Instance Attribute Details

#LocationObject

圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4

Parameters:

  • SealBody:

    印章主体内容

  • Location:

    印章坐标

  • OtherTexts:

    印章其它文本内容

  • SealShape:

    印章类型,表示为:



10227
10228
10229
# File 'lib/v20181119/models.rb', line 10227

def Location
  @Location
end

#OtherTextsObject

圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4

Parameters:

  • SealBody:

    印章主体内容

  • Location:

    印章坐标

  • OtherTexts:

    印章其它文本内容

  • SealShape:

    印章类型,表示为:



10227
10228
10229
# File 'lib/v20181119/models.rb', line 10227

def OtherTexts
  @OtherTexts
end

#SealBodyObject

圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4

Parameters:

  • SealBody:

    印章主体内容

  • Location:

    印章坐标

  • OtherTexts:

    印章其它文本内容

  • SealShape:

    印章类型,表示为:



10227
10228
10229
# File 'lib/v20181119/models.rb', line 10227

def SealBody
  @SealBody
end

#SealShapeObject

圆形印章:0 椭圆形印章:1 方形印章:2 菱形印章:3 三角形印章:4

Parameters:

  • SealBody:

    印章主体内容

  • Location:

    印章坐标

  • OtherTexts:

    印章其它文本内容

  • SealShape:

    印章类型,表示为:



10227
10228
10229
# File 'lib/v20181119/models.rb', line 10227

def SealShape
  @SealShape
end

Instance Method Details

#deserialize(params) ⇒ Object



10236
10237
10238
10239
10240
10241
10242
10243
10244
# File 'lib/v20181119/models.rb', line 10236

def deserialize(params)
  @SealBody = params['SealBody']
  unless params['Location'].nil?
    @Location = Rect.new
    @Location.deserialize(params['Location'])
  end
  @OtherTexts = params['OtherTexts']
  @SealShape = params['SealShape']
end