Class: TencentCloud::Iotexplorer::V20190423::VisionDetectedObject

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

Overview

目标检测算法检测到的目标详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(time = nil, classname = nil, boundingbox = nil, confidence = nil) ⇒ VisionDetectedObject

Returns a new instance of VisionDetectedObject.



14589
14590
14591
14592
14593
14594
# File 'lib/v20190423/models.rb', line 14589

def initialize(time=nil, classname=nil, boundingbox=nil, confidence=nil)
  @Time = time
  @ClassName = classname
  @BoundingBox = boundingbox
  @Confidence = confidence
end

Instance Attribute Details

#BoundingBoxObject

Parameters:

  • Time:

    目标出现的媒体时间戳(以图片为输入时始终取值 0)

  • ClassName:

    目标类别名

  • BoundingBox:

    目标边界框(坐标顺序为 x1, y1, x2, y2)

  • Confidence:

    置信度(取值范围 0.0 至 1.0)



14587
14588
14589
# File 'lib/v20190423/models.rb', line 14587

def BoundingBox
  @BoundingBox
end

#ClassNameObject

Parameters:

  • Time:

    目标出现的媒体时间戳(以图片为输入时始终取值 0)

  • ClassName:

    目标类别名

  • BoundingBox:

    目标边界框(坐标顺序为 x1, y1, x2, y2)

  • Confidence:

    置信度(取值范围 0.0 至 1.0)



14587
14588
14589
# File 'lib/v20190423/models.rb', line 14587

def ClassName
  @ClassName
end

#ConfidenceObject

Parameters:

  • Time:

    目标出现的媒体时间戳(以图片为输入时始终取值 0)

  • ClassName:

    目标类别名

  • BoundingBox:

    目标边界框(坐标顺序为 x1, y1, x2, y2)

  • Confidence:

    置信度(取值范围 0.0 至 1.0)



14587
14588
14589
# File 'lib/v20190423/models.rb', line 14587

def Confidence
  @Confidence
end

#TimeObject

Parameters:

  • Time:

    目标出现的媒体时间戳(以图片为输入时始终取值 0)

  • ClassName:

    目标类别名

  • BoundingBox:

    目标边界框(坐标顺序为 x1, y1, x2, y2)

  • Confidence:

    置信度(取值范围 0.0 至 1.0)



14587
14588
14589
# File 'lib/v20190423/models.rb', line 14587

def Time
  @Time
end

Instance Method Details

#deserialize(params) ⇒ Object



14596
14597
14598
14599
14600
14601
# File 'lib/v20190423/models.rb', line 14596

def deserialize(params)
  @Time = params['Time']
  @ClassName = params['ClassName']
  @BoundingBox = params['BoundingBox']
  @Confidence = params['Confidence']
end