Class: TencentCloud::Ocr::V20181119::DutyPaidProofInfo

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

Overview

识别出的字段

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, value = nil, rect = nil) ⇒ DutyPaidProofInfo

Returns a new instance of DutyPaidProofInfo.



1825
1826
1827
1828
1829
# File 'lib/v20181119/models.rb', line 1825

def initialize(name=nil, value=nil, rect=nil)
  @Name = name
  @Value = value
  @Rect = rect
end

Instance Attribute Details

#NameObject

税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。

Parameters:

  • Name:

    识别出的字段名称(关键字),支持以下字段:

  • Value:

    识别出的字段名称对应的值,也就是字段Name对应的字符串结果。

  • Rect:

    文本行在旋转纠正之后的图像中的像素坐标。



1823
1824
1825
# File 'lib/v20181119/models.rb', line 1823

def Name
  @Name
end

#RectObject

税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。

Parameters:

  • Name:

    识别出的字段名称(关键字),支持以下字段:

  • Value:

    识别出的字段名称对应的值,也就是字段Name对应的字符串结果。

  • Rect:

    文本行在旋转纠正之后的图像中的像素坐标。



1823
1824
1825
# File 'lib/v20181119/models.rb', line 1823

def Rect
  @Rect
end

#ValueObject

税号 、纳税人识别号 、纳税人名称 、金额合计大写 、金额合计小写 、填发日期 、税务机关 、填票人。

Parameters:

  • Name:

    识别出的字段名称(关键字),支持以下字段:

  • Value:

    识别出的字段名称对应的值,也就是字段Name对应的字符串结果。

  • Rect:

    文本行在旋转纠正之后的图像中的像素坐标。



1823
1824
1825
# File 'lib/v20181119/models.rb', line 1823

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



1831
1832
1833
1834
1835
1836
1837
1838
# File 'lib/v20181119/models.rb', line 1831

def deserialize(params)
  @Name = params['Name']
  @Value = params['Value']
  unless params['Rect'].nil?
    @Rect = Rect.new
    @Rect.deserialize(params['Rect'])
  end
end