Class: TencentCloud::Mps::V20190612::LiveStreamObjectRecognitionResult

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

Overview

直播 AI 物体识别结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, startptsoffset = nil, endptsoffset = nil, confidence = nil, areacoordset = nil, url = nil) ⇒ LiveStreamObjectRecognitionResult

Returns a new instance of LiveStreamObjectRecognitionResult.



16957
16958
16959
16960
16961
16962
16963
16964
# File 'lib/v20190612/models.rb', line 16957

def initialize(name=nil, startptsoffset=nil, endptsoffset=nil, confidence=nil, areacoordset=nil, url=nil)
  @Name = name
  @StartPtsOffset = startptsoffset
  @EndPtsOffset = endptsoffset
  @Confidence = confidence
  @AreaCoordSet = areacoordset
  @Url = url
end

Instance Attribute Details

#AreaCoordSetObject

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

Parameters:

  • Name:

    识别的物体名称。

  • StartPtsOffset:

    识别片段起始的 PTS 时间,单位:秒。

  • EndPtsOffset:

    识别片段终止的 PTS 时间,单位:秒。

  • Confidence:

    识别片段置信度。取值:0~100。

  • AreaCoordSet:

    识别结果的区域坐标。数组包含 4 个元素 [x1,y1,x2,y2],依次表示区域左上点、右下点的横纵坐标。

  • Url:

    截图链接。



16955
16956
16957
# File 'lib/v20190612/models.rb', line 16955

def AreaCoordSet
  @AreaCoordSet
end

#ConfidenceObject

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

Parameters:

  • Name:

    识别的物体名称。

  • StartPtsOffset:

    识别片段起始的 PTS 时间,单位:秒。

  • EndPtsOffset:

    识别片段终止的 PTS 时间,单位:秒。

  • Confidence:

    识别片段置信度。取值:0~100。

  • AreaCoordSet:

    识别结果的区域坐标。数组包含 4 个元素 [x1,y1,x2,y2],依次表示区域左上点、右下点的横纵坐标。

  • Url:

    截图链接。



16955
16956
16957
# File 'lib/v20190612/models.rb', line 16955

def Confidence
  @Confidence
end

#EndPtsOffsetObject

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

Parameters:

  • Name:

    识别的物体名称。

  • StartPtsOffset:

    识别片段起始的 PTS 时间,单位:秒。

  • EndPtsOffset:

    识别片段终止的 PTS 时间,单位:秒。

  • Confidence:

    识别片段置信度。取值:0~100。

  • AreaCoordSet:

    识别结果的区域坐标。数组包含 4 个元素 [x1,y1,x2,y2],依次表示区域左上点、右下点的横纵坐标。

  • Url:

    截图链接。



16955
16956
16957
# File 'lib/v20190612/models.rb', line 16955

def EndPtsOffset
  @EndPtsOffset
end

#NameObject

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

Parameters:

  • Name:

    识别的物体名称。

  • StartPtsOffset:

    识别片段起始的 PTS 时间,单位:秒。

  • EndPtsOffset:

    识别片段终止的 PTS 时间,单位:秒。

  • Confidence:

    识别片段置信度。取值:0~100。

  • AreaCoordSet:

    识别结果的区域坐标。数组包含 4 个元素 [x1,y1,x2,y2],依次表示区域左上点、右下点的横纵坐标。

  • Url:

    截图链接。



16955
16956
16957
# File 'lib/v20190612/models.rb', line 16955

def Name
  @Name
end

#StartPtsOffsetObject

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

Parameters:

  • Name:

    识别的物体名称。

  • StartPtsOffset:

    识别片段起始的 PTS 时间,单位:秒。

  • EndPtsOffset:

    识别片段终止的 PTS 时间,单位:秒。

  • Confidence:

    识别片段置信度。取值:0~100。

  • AreaCoordSet:

    识别结果的区域坐标。数组包含 4 个元素 [x1,y1,x2,y2],依次表示区域左上点、右下点的横纵坐标。

  • Url:

    截图链接。



16955
16956
16957
# File 'lib/v20190612/models.rb', line 16955

def StartPtsOffset
  @StartPtsOffset
end

#UrlObject

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

Parameters:

  • Name:

    识别的物体名称。

  • StartPtsOffset:

    识别片段起始的 PTS 时间,单位:秒。

  • EndPtsOffset:

    识别片段终止的 PTS 时间,单位:秒。

  • Confidence:

    识别片段置信度。取值:0~100。

  • AreaCoordSet:

    识别结果的区域坐标。数组包含 4 个元素 [x1,y1,x2,y2],依次表示区域左上点、右下点的横纵坐标。

  • Url:

    截图链接。



16955
16956
16957
# File 'lib/v20190612/models.rb', line 16955

def Url
  @Url
end

Instance Method Details

#deserialize(params) ⇒ Object



16966
16967
16968
16969
16970
16971
16972
16973
# File 'lib/v20190612/models.rb', line 16966

def deserialize(params)
  @Name = params['Name']
  @StartPtsOffset = params['StartPtsOffset']
  @EndPtsOffset = params['EndPtsOffset']
  @Confidence = params['Confidence']
  @AreaCoordSet = params['AreaCoordSet']
  @Url = params['Url']
end