Class: TencentCloud::Ocr::V20181119::ShipInvoiceInfo

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

Returns a new instance of ShipInvoiceInfo.



9574
9575
9576
9577
9578
# File 'lib/v20181119/models.rb', line 9574

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

Instance Attribute Details

#NameObject

发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。

Parameters:

  • Name:

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

  • Value:

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

  • Rect:

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



9572
9573
9574
# File 'lib/v20181119/models.rb', line 9572

def Name
  @Name
end

#RectObject

发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。

Parameters:

  • Name:

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

  • Value:

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

  • Rect:

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



9572
9573
9574
# File 'lib/v20181119/models.rb', line 9572

def Rect
  @Rect
end

#ValueObject

发票代码、发票号码、日期、票价、始发地、目的地、姓名、时间、发票消费类型、省、市、币种。

Parameters:

  • Name:

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

  • Value:

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

  • Rect:

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



9572
9573
9574
# File 'lib/v20181119/models.rb', line 9572

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



9580
9581
9582
9583
9584
9585
9586
9587
# File 'lib/v20181119/models.rb', line 9580

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