Class: TencentCloud::Ocr::V20181119::TollInvoiceOCRResponse

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

Overview

TollInvoiceOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tollinvoiceinfos = nil, angle = nil, requestid = nil) ⇒ TollInvoiceOCRResponse

Returns a new instance of TollInvoiceOCRResponse.



12773
12774
12775
12776
12777
# File 'lib/v20181119/models.rb', line 12773

def initialize(tollinvoiceinfos=nil, angle=nil, requestid=nil)
  @TollInvoiceInfos = tollinvoiceinfos
  @Angle = angle
  @RequestId = requestid
end

Instance Attribute Details

#AngleObject

Parameters:

  • TollInvoiceInfos:

    过路过桥费发票识别结果,具体内容请点击左侧链接。

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



12771
12772
12773
# File 'lib/v20181119/models.rb', line 12771

def Angle
  @Angle
end

#RequestIdObject

Parameters:

  • TollInvoiceInfos:

    过路过桥费发票识别结果,具体内容请点击左侧链接。

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



12771
12772
12773
# File 'lib/v20181119/models.rb', line 12771

def RequestId
  @RequestId
end

#TollInvoiceInfosObject

Parameters:

  • TollInvoiceInfos:

    过路过桥费发票识别结果,具体内容请点击左侧链接。

  • Angle:

    图片旋转角度(角度制),文本的水平方向为0°,顺时针为正,逆时针为负。

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



12771
12772
12773
# File 'lib/v20181119/models.rb', line 12771

def TollInvoiceInfos
  @TollInvoiceInfos
end

Instance Method Details

#deserialize(params) ⇒ Object



12779
12780
12781
12782
12783
12784
12785
12786
12787
12788
12789
12790
# File 'lib/v20181119/models.rb', line 12779

def deserialize(params)
  unless params['TollInvoiceInfos'].nil?
    @TollInvoiceInfos = []
    params['TollInvoiceInfos'].each do |i|
      tollinvoiceinfo_tmp = TollInvoiceInfo.new
      tollinvoiceinfo_tmp.deserialize(i)
      @TollInvoiceInfos << tollinvoiceinfo_tmp
    end
  end
  @Angle = params['Angle']
  @RequestId = params['RequestId']
end