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.



1079
1080
1081
1082
1083
1084
# File 'lib/v20210922/models.rb', line 1079

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:

    位置信息



1077
1078
1079
# File 'lib/v20210922/models.rb', line 1077

def Keyword
  @Keyword
end

#LibNameObject

Parameters:

  • Type:

    关键词

  • Keyword:

    关键词内容

  • LibName:

    自定义库名

  • Positions:

    位置信息



1077
1078
1079
# File 'lib/v20210922/models.rb', line 1077

def LibName
  @LibName
end

#PositionsObject

Parameters:

  • Type:

    关键词

  • Keyword:

    关键词内容

  • LibName:

    自定义库名

  • Positions:

    位置信息



1077
1078
1079
# File 'lib/v20210922/models.rb', line 1077

def Positions
  @Positions
end

#TypeObject

Parameters:

  • Type:

    关键词

  • Keyword:

    关键词内容

  • LibName:

    自定义库名

  • Positions:

    位置信息



1077
1078
1079
# File 'lib/v20210922/models.rb', line 1077

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
# File 'lib/v20210922/models.rb', line 1086

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