Class: TencentCloud::Ocr::V20181119::SmartStructuralOCRResponse

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

Overview

SmartStructuralOCR返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(angle = nil, structuralitems = nil, requestid = nil) ⇒ SmartStructuralOCRResponse

Returns a new instance of SmartStructuralOCRResponse.



10819
10820
10821
10822
10823
# File 'lib/v20181119/models.rb', line 10819

def initialize(angle=nil, structuralitems=nil, requestid=nil)
  @Angle = angle
  @StructuralItems = structuralitems
  @RequestId = requestid
end

Instance Attribute Details

#AngleObject

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

Parameters:

  • Angle:

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

  • StructuralItems:

    识别信息

  • RequestId:

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



10817
10818
10819
# File 'lib/v20181119/models.rb', line 10817

def Angle
  @Angle
end

#RequestIdObject

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

Parameters:

  • Angle:

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

  • StructuralItems:

    识别信息

  • RequestId:

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



10817
10818
10819
# File 'lib/v20181119/models.rb', line 10817

def RequestId
  @RequestId
end

#StructuralItemsObject

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

Parameters:

  • Angle:

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

  • StructuralItems:

    识别信息

  • RequestId:

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



10817
10818
10819
# File 'lib/v20181119/models.rb', line 10817

def StructuralItems
  @StructuralItems
end

Instance Method Details

#deserialize(params) ⇒ Object



10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
# File 'lib/v20181119/models.rb', line 10825

def deserialize(params)
  @Angle = params['Angle']
  unless params['StructuralItems'].nil?
    @StructuralItems = []
    params['StructuralItems'].each do |i|
      structuralitem_tmp = StructuralItem.new
      structuralitem_tmp.deserialize(i)
      @StructuralItems << structuralitem_tmp
    end
  end
  @RequestId = params['RequestId']
end