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.



10476
10477
10478
10479
10480
10481
# File 'lib/v20181119/models.rb', line 10476

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:

    印章类型,表示为:



10474
10475
10476
# File 'lib/v20181119/models.rb', line 10474

def Location
  @Location
end

#OtherTextsObject

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

Parameters:

  • SealBody:

    印章主体内容

  • Location:

    印章坐标

  • OtherTexts:

    印章其它文本内容

  • SealShape:

    印章类型,表示为:



10474
10475
10476
# File 'lib/v20181119/models.rb', line 10474

def OtherTexts
  @OtherTexts
end

#SealBodyObject

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

Parameters:

  • SealBody:

    印章主体内容

  • Location:

    印章坐标

  • OtherTexts:

    印章其它文本内容

  • SealShape:

    印章类型,表示为:



10474
10475
10476
# File 'lib/v20181119/models.rb', line 10474

def SealBody
  @SealBody
end

#SealShapeObject

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

Parameters:

  • SealBody:

    印章主体内容

  • Location:

    印章坐标

  • OtherTexts:

    印章其它文本内容

  • SealShape:

    印章类型,表示为:



10474
10475
10476
# File 'lib/v20181119/models.rb', line 10474

def SealShape
  @SealShape
end

Instance Method Details

#deserialize(params) ⇒ Object



10483
10484
10485
10486
10487
10488
10489
10490
10491
# File 'lib/v20181119/models.rb', line 10483

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