Class: TencentCloud::Iss::V20230517::BaseAIResultInfo

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

Overview

通用AI识别结果信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, score = nil, location = nil) ⇒ BaseAIResultInfo

Returns a new instance of BaseAIResultInfo.



1210
1211
1212
1213
1214
# File 'lib/v20230517/models.rb', line 1210

def initialize(name=nil, score=nil, location=nil)
  @Name = name
  @Score = score
  @Location = location
end

Instance Attribute Details

#LocationObject

Parameters:

  • Name:

    名称。返回值有人体识别结果名称(person)、宠物识别结果名称(cat和dog) 、车辆车牌识别结果名称(vehicle)

  • Score:

    置信度

  • Location:

    截图中坐标信息



1208
1209
1210
# File 'lib/v20230517/models.rb', line 1208

def Location
  @Location
end

#NameObject

Parameters:

  • Name:

    名称。返回值有人体识别结果名称(person)、宠物识别结果名称(cat和dog) 、车辆车牌识别结果名称(vehicle)

  • Score:

    置信度

  • Location:

    截图中坐标信息



1208
1209
1210
# File 'lib/v20230517/models.rb', line 1208

def Name
  @Name
end

#ScoreObject

Parameters:

  • Name:

    名称。返回值有人体识别结果名称(person)、宠物识别结果名称(cat和dog) 、车辆车牌识别结果名称(vehicle)

  • Score:

    置信度

  • Location:

    截图中坐标信息



1208
1209
1210
# File 'lib/v20230517/models.rb', line 1208

def Score
  @Score
end

Instance Method Details

#deserialize(params) ⇒ Object



1216
1217
1218
1219
1220
1221
1222
1223
# File 'lib/v20230517/models.rb', line 1216

def deserialize(params)
  @Name = params['Name']
  @Score = params['Score']
  unless params['Location'].nil?
    @Location = Location.new
    @Location.deserialize(params['Location'])
  end
end