Class: TencentCloud::Mps::V20190612::LiveStreamOcrWordsRecognitionResult

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

Overview

直播 AI Ocr 单词识别结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(word = nil, startptstime = nil, endptstime = nil, confidence = nil, areacoords = nil) ⇒ LiveStreamOcrWordsRecognitionResult

Returns a new instance of LiveStreamOcrWordsRecognitionResult.



19648
19649
19650
19651
19652
19653
19654
# File 'lib/v20190612/models.rb', line 19648

def initialize(word=nil, startptstime=nil, endptstime=nil, confidence=nil, areacoords=nil)
  @Word = word
  @StartPtsTime = startptstime
  @EndPtsTime = endptstime
  @Confidence = confidence
  @AreaCoords = areacoords
end

Instance Attribute Details

#AreaCoordsObject

Parameters:

  • Word:

    文本关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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

  • AreaCoords:

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



19646
19647
19648
# File 'lib/v20190612/models.rb', line 19646

def AreaCoords
  @AreaCoords
end

#ConfidenceObject

Parameters:

  • Word:

    文本关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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

  • AreaCoords:

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



19646
19647
19648
# File 'lib/v20190612/models.rb', line 19646

def Confidence
  @Confidence
end

#EndPtsTimeObject

Parameters:

  • Word:

    文本关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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

  • AreaCoords:

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



19646
19647
19648
# File 'lib/v20190612/models.rb', line 19646

def EndPtsTime
  @EndPtsTime
end

#StartPtsTimeObject

Parameters:

  • Word:

    文本关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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

  • AreaCoords:

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



19646
19647
19648
# File 'lib/v20190612/models.rb', line 19646

def StartPtsTime
  @StartPtsTime
end

#WordObject

Parameters:

  • Word:

    文本关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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

  • AreaCoords:

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



19646
19647
19648
# File 'lib/v20190612/models.rb', line 19646

def Word
  @Word
end

Instance Method Details

#deserialize(params) ⇒ Object



19656
19657
19658
19659
19660
19661
19662
# File 'lib/v20190612/models.rb', line 19656

def deserialize(params)
  @Word = params['Word']
  @StartPtsTime = params['StartPtsTime']
  @EndPtsTime = params['EndPtsTime']
  @Confidence = params['Confidence']
  @AreaCoords = params['AreaCoords']
end