Class: TencentCloud::Ocr::V20181119::WaybillOCRResponse

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

Overview

WaybillOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(textdetections = nil, requestid = nil) ⇒ WaybillOCRResponse

Returns a new instance of WaybillOCRResponse.



14773
14774
14775
14776
# File 'lib/v20181119/models.rb', line 14773

def initialize(textdetections=nil, requestid=nil)
  @TextDetections = textdetections
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TextDetections:

    检测到的文本信息,具体内容请点击左侧链接。

  • RequestId:

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



14771
14772
14773
# File 'lib/v20181119/models.rb', line 14771

def RequestId
  @RequestId
end

#TextDetectionsObject

Parameters:

  • TextDetections:

    检测到的文本信息,具体内容请点击左侧链接。

  • RequestId:

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



14771
14772
14773
# File 'lib/v20181119/models.rb', line 14771

def TextDetections
  @TextDetections
end

Instance Method Details

#deserialize(params) ⇒ Object



14778
14779
14780
14781
14782
14783
14784
# File 'lib/v20181119/models.rb', line 14778

def deserialize(params)
  unless params['TextDetections'].nil?
    @TextDetections = TextWaybill.new
    @TextDetections.deserialize(params['TextDetections'])
  end
  @RequestId = params['RequestId']
end