Class: TencentCloud::Ims::V20201229::RecognitionResult

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

Overview

识别类型标签结果信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label = nil, tags = nil) ⇒ RecognitionResult

Returns a new instance of RecognitionResult.



748
749
750
751
# File 'lib/v20201229/models.rb', line 748

def initialize(label=nil, tags=nil)
  @Label = label
  @Tags = tags
end

Instance Attribute Details

#LabelObject

Parameters:

  • Label:

    当前可能的取值:Scene(图片场景模型)

  • Tags:

    Label对应模型下的识别标签信息



746
747
748
# File 'lib/v20201229/models.rb', line 746

def Label
  @Label
end

#TagsObject

Parameters:

  • Label:

    当前可能的取值:Scene(图片场景模型)

  • Tags:

    Label对应模型下的识别标签信息



746
747
748
# File 'lib/v20201229/models.rb', line 746

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



753
754
755
756
757
758
759
760
761
762
763
# File 'lib/v20201229/models.rb', line 753

def deserialize(params)
  @Label = params['Label']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      recognitiontag_tmp = RecognitionTag.new
      recognitiontag_tmp.deserialize(i)
      @Tags << recognitiontag_tmp
    end
  end
end