Class: TencentCloud::Ocr::V20181119::TextDetectionEn

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

Overview

英文识别结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(detectedtext = nil, confidence = nil, polygon = nil, advancedinfo = nil, wordcoordpoint = nil, candword = nil, words = nil) ⇒ TextDetectionEn

Returns a new instance of TextDetectionEn.



10924
10925
10926
10927
10928
10929
10930
10931
10932
# File 'lib/v20181119/models.rb', line 10924

def initialize(detectedtext=nil, confidence=nil, polygon=nil, advancedinfo=nil, wordcoordpoint=nil, candword=nil, words=nil)
  @DetectedText = detectedtext
  @Confidence = confidence
  @Polygon = polygon
  @AdvancedInfo = advancedinfo
  @WordCoordPoint = wordcoordpoint
  @CandWord = candword
  @Words = words
end

Instance Attribute Details

#AdvancedInfoObject

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

Parameters:

  • DetectedText:

    识别出的文本行内容。

  • Confidence:

    置信度 0 ~100。

  • Polygon:

    文本行在原图中的四点坐标。

  • AdvancedInfo:

    此字段为扩展字段。目前EnglishOCR接口返回内容为空。

  • WordCoordPoint:

    英文单词在原图中的四点坐标。

  • CandWord:

    候选字符集(包含候选字Character以及置信度Confidence)。

  • Words:

    识别出来的单词信息(包括单词Character和单词置信度confidence)



10922
10923
10924
# File 'lib/v20181119/models.rb', line 10922

def AdvancedInfo
  @AdvancedInfo
end

#CandWordObject

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

Parameters:

  • DetectedText:

    识别出的文本行内容。

  • Confidence:

    置信度 0 ~100。

  • Polygon:

    文本行在原图中的四点坐标。

  • AdvancedInfo:

    此字段为扩展字段。目前EnglishOCR接口返回内容为空。

  • WordCoordPoint:

    英文单词在原图中的四点坐标。

  • CandWord:

    候选字符集(包含候选字Character以及置信度Confidence)。

  • Words:

    识别出来的单词信息(包括单词Character和单词置信度confidence)



10922
10923
10924
# File 'lib/v20181119/models.rb', line 10922

def CandWord
  @CandWord
end

#ConfidenceObject

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

Parameters:

  • DetectedText:

    识别出的文本行内容。

  • Confidence:

    置信度 0 ~100。

  • Polygon:

    文本行在原图中的四点坐标。

  • AdvancedInfo:

    此字段为扩展字段。目前EnglishOCR接口返回内容为空。

  • WordCoordPoint:

    英文单词在原图中的四点坐标。

  • CandWord:

    候选字符集(包含候选字Character以及置信度Confidence)。

  • Words:

    识别出来的单词信息(包括单词Character和单词置信度confidence)



10922
10923
10924
# File 'lib/v20181119/models.rb', line 10922

def Confidence
  @Confidence
end

#DetectedTextObject

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

Parameters:

  • DetectedText:

    识别出的文本行内容。

  • Confidence:

    置信度 0 ~100。

  • Polygon:

    文本行在原图中的四点坐标。

  • AdvancedInfo:

    此字段为扩展字段。目前EnglishOCR接口返回内容为空。

  • WordCoordPoint:

    英文单词在原图中的四点坐标。

  • CandWord:

    候选字符集(包含候选字Character以及置信度Confidence)。

  • Words:

    识别出来的单词信息(包括单词Character和单词置信度confidence)



10922
10923
10924
# File 'lib/v20181119/models.rb', line 10922

def DetectedText
  @DetectedText
end

#PolygonObject

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

Parameters:

  • DetectedText:

    识别出的文本行内容。

  • Confidence:

    置信度 0 ~100。

  • Polygon:

    文本行在原图中的四点坐标。

  • AdvancedInfo:

    此字段为扩展字段。目前EnglishOCR接口返回内容为空。

  • WordCoordPoint:

    英文单词在原图中的四点坐标。

  • CandWord:

    候选字符集(包含候选字Character以及置信度Confidence)。

  • Words:

    识别出来的单词信息(包括单词Character和单词置信度confidence)



10922
10923
10924
# File 'lib/v20181119/models.rb', line 10922

def Polygon
  @Polygon
end

#WordCoordPointObject

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

Parameters:

  • DetectedText:

    识别出的文本行内容。

  • Confidence:

    置信度 0 ~100。

  • Polygon:

    文本行在原图中的四点坐标。

  • AdvancedInfo:

    此字段为扩展字段。目前EnglishOCR接口返回内容为空。

  • WordCoordPoint:

    英文单词在原图中的四点坐标。

  • CandWord:

    候选字符集(包含候选字Character以及置信度Confidence)。

  • Words:

    识别出来的单词信息(包括单词Character和单词置信度confidence)



10922
10923
10924
# File 'lib/v20181119/models.rb', line 10922

def WordCoordPoint
  @WordCoordPoint
end

#WordsObject

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

Parameters:

  • DetectedText:

    识别出的文本行内容。

  • Confidence:

    置信度 0 ~100。

  • Polygon:

    文本行在原图中的四点坐标。

  • AdvancedInfo:

    此字段为扩展字段。目前EnglishOCR接口返回内容为空。

  • WordCoordPoint:

    英文单词在原图中的四点坐标。

  • CandWord:

    候选字符集(包含候选字Character以及置信度Confidence)。

  • Words:

    识别出来的单词信息(包括单词Character和单词置信度confidence)



10922
10923
10924
# File 'lib/v20181119/models.rb', line 10922

def Words
  @Words
end

Instance Method Details

#deserialize(params) ⇒ Object



10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949
10950
10951
10952
10953
10954
10955
10956
10957
10958
10959
10960
10961
10962
10963
10964
10965
10966
10967
10968
10969
10970
# File 'lib/v20181119/models.rb', line 10934

def deserialize(params)
  @DetectedText = params['DetectedText']
  @Confidence = params['Confidence']
  unless params['Polygon'].nil?
    @Polygon = []
    params['Polygon'].each do |i|
      coord_tmp = Coord.new
      coord_tmp.deserialize(i)
      @Polygon << coord_tmp
    end
  end
  @AdvancedInfo = params['AdvancedInfo']
  unless params['WordCoordPoint'].nil?
    @WordCoordPoint = []
    params['WordCoordPoint'].each do |i|
      wordcoordpoint_tmp = WordCoordPoint.new
      wordcoordpoint_tmp.deserialize(i)
      @WordCoordPoint << wordcoordpoint_tmp
    end
  end
  unless params['CandWord'].nil?
    @CandWord = []
    params['CandWord'].each do |i|
      candword_tmp = CandWord.new
      candword_tmp.deserialize(i)
      @CandWord << candword_tmp
    end
  end
  unless params['Words'].nil?
    @Words = []
    params['Words'].each do |i|
      words_tmp = Words.new
      words_tmp.deserialize(i)
      @Words << words_tmp
    end
  end
end