Class: TencentCloud::Cii::V20210408::ResultObject

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

Overview

用于返回结构化任务结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(quality = nil, structureresult = nil, reporttype = nil) ⇒ ResultObject

Returns a new instance of ResultObject.



1156
1157
1158
1159
1160
# File 'lib/v20210408/models.rb', line 1156

def initialize(quality=nil, structureresult=nil, reporttype=nil)
  @Quality = quality
  @StructureResult = structureresult
  @ReportType = reporttype
end

Instance Attribute Details

#QualityObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Quality:

    图片质量分

  • StructureResult:

    由结构化算法结构化json转换的字符串,具体协议参见算法结构化结果协议

  • ReportType:

    报告分类信息



1154
1155
1156
# File 'lib/v20210408/models.rb', line 1154

def Quality
  @Quality
end

#ReportTypeObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Quality:

    图片质量分

  • StructureResult:

    由结构化算法结构化json转换的字符串,具体协议参见算法结构化结果协议

  • ReportType:

    报告分类信息



1154
1155
1156
# File 'lib/v20210408/models.rb', line 1154

def ReportType
  @ReportType
end

#StructureResultObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Quality:

    图片质量分

  • StructureResult:

    由结构化算法结构化json转换的字符串,具体协议参见算法结构化结果协议

  • ReportType:

    报告分类信息



1154
1155
1156
# File 'lib/v20210408/models.rb', line 1154

def StructureResult
  @StructureResult
end

Instance Method Details

#deserialize(params) ⇒ Object



1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
# File 'lib/v20210408/models.rb', line 1162

def deserialize(params)
  @Quality = params['Quality']
  @StructureResult = params['StructureResult']
  unless params['ReportType'].nil?
    @ReportType = []
    params['ReportType'].each do |i|
      classifyinfo_tmp = ClassifyInfo.new
      classifyinfo_tmp.deserialize(i)
      @ReportType << classifyinfo_tmp
    end
  end
end