Class: TencentCloud::Vm::V20210922::OcrHitInfo

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

Overview

Ocr命中信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type = nil, keyword = nil, libname = nil, positions = nil) ⇒ OcrHitInfo

Returns a new instance of OcrHitInfo.



1098
1099
1100
1101
1102
1103
# File 'lib/v20210922/models.rb', line 1098

def initialize(type=nil, keyword=nil, libname=nil, positions=nil)
  @Type = type
  @Keyword = keyword
  @LibName = libname
  @Positions = positions
end

Instance Attribute Details

#KeywordObject

Parameters:

  • Type:

    关键词

  • Keyword:

    关键词内容

  • LibName:

    自定义库名

  • Positions:

    位置信息



1096
1097
1098
# File 'lib/v20210922/models.rb', line 1096

def Keyword
  @Keyword
end

#LibNameObject

Parameters:

  • Type:

    关键词

  • Keyword:

    关键词内容

  • LibName:

    自定义库名

  • Positions:

    位置信息



1096
1097
1098
# File 'lib/v20210922/models.rb', line 1096

def LibName
  @LibName
end

#PositionsObject

Parameters:

  • Type:

    关键词

  • Keyword:

    关键词内容

  • LibName:

    自定义库名

  • Positions:

    位置信息



1096
1097
1098
# File 'lib/v20210922/models.rb', line 1096

def Positions
  @Positions
end

#TypeObject

Parameters:

  • Type:

    关键词

  • Keyword:

    关键词内容

  • LibName:

    自定义库名

  • Positions:

    位置信息



1096
1097
1098
# File 'lib/v20210922/models.rb', line 1096

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
# File 'lib/v20210922/models.rb', line 1105

def deserialize(params)
  @Type = params['Type']
  @Keyword = params['Keyword']
  @LibName = params['LibName']
  unless params['Positions'].nil?
    @Positions = []
    params['Positions'].each do |i|
      textposition_tmp = TextPosition.new
      textposition_tmp.deserialize(i)
      @Positions << textposition_tmp
    end
  end
end