Class: TencentCloud::Ocr::V20181119::TollInvoiceInfo

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) ⇒ TollInvoiceInfo

Returns a new instance of TollInvoiceInfo.



11446
11447
11448
11449
11450
# File 'lib/v20181119/models.rb', line 11446

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

Instance Attribute Details

#NameObject

发票代码、发票号码、日期、金额、入口、出口、时间、发票消费类型、高速标志。

Parameters:

  • Name:

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

  • Value:

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

  • Rect:

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



11444
11445
11446
# File 'lib/v20181119/models.rb', line 11444

def Name
  @Name
end

#RectObject

发票代码、发票号码、日期、金额、入口、出口、时间、发票消费类型、高速标志。

Parameters:

  • Name:

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

  • Value:

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

  • Rect:

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



11444
11445
11446
# File 'lib/v20181119/models.rb', line 11444

def Rect
  @Rect
end

#ValueObject

发票代码、发票号码、日期、金额、入口、出口、时间、发票消费类型、高速标志。

Parameters:

  • Name:

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

  • Value:

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

  • Rect:

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



11444
11445
11446
# File 'lib/v20181119/models.rb', line 11444

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



11452
11453
11454
11455
11456
11457
11458
11459
# File 'lib/v20181119/models.rb', line 11452

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