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.



17205
17206
17207
17208
17209
17210
17211
# File 'lib/v20190612/models.rb', line 17205

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],依次表示区域左上点、右下点的横纵坐标。



17203
17204
17205
# File 'lib/v20190612/models.rb', line 17203

def AreaCoords
  @AreaCoords
end

#ConfidenceObject

Parameters:

  • Word:

    文本关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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

  • AreaCoords:

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



17203
17204
17205
# File 'lib/v20190612/models.rb', line 17203

def Confidence
  @Confidence
end

#EndPtsTimeObject

Parameters:

  • Word:

    文本关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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

  • AreaCoords:

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



17203
17204
17205
# File 'lib/v20190612/models.rb', line 17203

def EndPtsTime
  @EndPtsTime
end

#StartPtsTimeObject

Parameters:

  • Word:

    文本关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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

  • AreaCoords:

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



17203
17204
17205
# File 'lib/v20190612/models.rb', line 17203

def StartPtsTime
  @StartPtsTime
end

#WordObject

Parameters:

  • Word:

    文本关键词。

  • StartPtsTime:

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

  • EndPtsTime:

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

  • Confidence:

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

  • AreaCoords:

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



17203
17204
17205
# File 'lib/v20190612/models.rb', line 17203

def Word
  @Word
end

Instance Method Details

#deserialize(params) ⇒ Object



17213
17214
17215
17216
17217
17218
17219
# File 'lib/v20190612/models.rb', line 17213

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