Class: TencentCloud::Ocr::V20181119::SmartStructuralOCRV2Response

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

Overview

SmartStructuralOCRV2返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(angle = nil, structurallist = nil, wordlist = nil, requestid = nil) ⇒ SmartStructuralOCRV2Response

Returns a new instance of SmartStructuralOCRV2Response.



10156
10157
10158
10159
10160
10161
# File 'lib/v20181119/models.rb', line 10156

def initialize(angle=nil, structurallist=nil, wordlist=nil, requestid=nil)
  @Angle = angle
  @StructuralList = structurallist
  @WordList = wordlist
  @RequestId = requestid
end

Instance Attribute Details

#AngleObject

为 0;顺时针为正,逆时针为负

Parameters:

  • Angle:

    图片旋转角度(角度制),文本的水平方向

  • StructuralList:

    配置结构化文本信息

  • WordList:

    还原文本信息

  • RequestId:

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



10154
10155
10156
# File 'lib/v20181119/models.rb', line 10154

def Angle
  @Angle
end

#RequestIdObject

为 0;顺时针为正,逆时针为负

Parameters:

  • Angle:

    图片旋转角度(角度制),文本的水平方向

  • StructuralList:

    配置结构化文本信息

  • WordList:

    还原文本信息

  • RequestId:

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



10154
10155
10156
# File 'lib/v20181119/models.rb', line 10154

def RequestId
  @RequestId
end

#StructuralListObject

为 0;顺时针为正,逆时针为负

Parameters:

  • Angle:

    图片旋转角度(角度制),文本的水平方向

  • StructuralList:

    配置结构化文本信息

  • WordList:

    还原文本信息

  • RequestId:

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



10154
10155
10156
# File 'lib/v20181119/models.rb', line 10154

def StructuralList
  @StructuralList
end

#WordListObject

为 0;顺时针为正,逆时针为负

Parameters:

  • Angle:

    图片旋转角度(角度制),文本的水平方向

  • StructuralList:

    配置结构化文本信息

  • WordList:

    还原文本信息

  • RequestId:

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



10154
10155
10156
# File 'lib/v20181119/models.rb', line 10154

def WordList
  @WordList
end

Instance Method Details

#deserialize(params) ⇒ Object



10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
# File 'lib/v20181119/models.rb', line 10163

def deserialize(params)
  @Angle = params['Angle']
  unless params['StructuralList'].nil?
    @StructuralList = []
    params['StructuralList'].each do |i|
      groupinfo_tmp = GroupInfo.new
      groupinfo_tmp.deserialize(i)
      @StructuralList << groupinfo_tmp
    end
  end
  unless params['WordList'].nil?
    @WordList = []
    params['WordList'].each do |i|
      worditem_tmp = WordItem.new
      worditem_tmp.deserialize(i)
      @WordList << worditem_tmp
    end
  end
  @RequestId = params['RequestId']
end