Class: TencentCloud::Tiia::V20190529::DetectLabelItem

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

Overview

图像标签检测结果。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, confidence = nil, firstcategory = nil, secondcategory = nil) ⇒ DetectLabelItem

Returns a new instance of DetectLabelItem.



975
976
977
978
979
980
# File 'lib/v20190529/models.rb', line 975

def initialize(name=nil, confidence=nil, firstcategory=nil, secondcategory=nil)
  @Name = name
  @Confidence = confidence
  @FirstCategory = firstcategory
  @SecondCategory = secondcategory
end

Instance Attribute Details

#ConfidenceObject

Parameters:

  • Name:

    图片中的物体名称。

  • Confidence:

    算法对于Name的置信度,0-100之间,值越高,表示对于Name越确定。

  • FirstCategory:

    标签的一级分类

  • SecondCategory:

    标签的二级分类



973
974
975
# File 'lib/v20190529/models.rb', line 973

def Confidence
  @Confidence
end

#FirstCategoryObject

Parameters:

  • Name:

    图片中的物体名称。

  • Confidence:

    算法对于Name的置信度,0-100之间,值越高,表示对于Name越确定。

  • FirstCategory:

    标签的一级分类

  • SecondCategory:

    标签的二级分类



973
974
975
# File 'lib/v20190529/models.rb', line 973

def FirstCategory
  @FirstCategory
end

#NameObject

Parameters:

  • Name:

    图片中的物体名称。

  • Confidence:

    算法对于Name的置信度,0-100之间,值越高,表示对于Name越确定。

  • FirstCategory:

    标签的一级分类

  • SecondCategory:

    标签的二级分类



973
974
975
# File 'lib/v20190529/models.rb', line 973

def Name
  @Name
end

#SecondCategoryObject

Parameters:

  • Name:

    图片中的物体名称。

  • Confidence:

    算法对于Name的置信度,0-100之间,值越高,表示对于Name越确定。

  • FirstCategory:

    标签的一级分类

  • SecondCategory:

    标签的二级分类



973
974
975
# File 'lib/v20190529/models.rb', line 973

def SecondCategory
  @SecondCategory
end

Instance Method Details

#deserialize(params) ⇒ Object



982
983
984
985
986
987
# File 'lib/v20190529/models.rb', line 982

def deserialize(params)
  @Name = params['Name']
  @Confidence = params['Confidence']
  @FirstCategory = params['FirstCategory']
  @SecondCategory = params['SecondCategory']
end