Class: TencentCloud::Vm::V20210922::ImageResultsResultDetail

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

Overview

具体场景下的图片识别结果

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, text = nil, location = nil, label = nil, libid = nil, libname = nil, keywords = nil, suggestion = nil, score = nil, sublabelcode = nil, sublabel = nil, ocrhitinfos = nil) ⇒ ImageResultsResultDetail

Returns a new instance of ImageResultsResultDetail.



862
863
864
865
866
867
868
869
870
871
872
873
874
875
# File 'lib/v20210922/models.rb', line 862

def initialize(name=nil, text=nil, location=nil, label=nil, libid=nil, libname=nil, keywords=nil, suggestion=nil, score=nil, sublabelcode=nil, sublabel=nil, ocrhitinfos=nil)
  @Name = name
  @Text = text
  @Location = location
  @Label = label
  @LibId = libid
  @LibName = libname
  @Keywords = keywords
  @Suggestion = suggestion
  @Score = score
  @SubLabelCode = sublabelcode
  @SubLabel = sublabel
  @OcrHitInfos = ocrhitinfos
end

Instance Attribute Details

#KeywordsObject

Parameters:

  • Name:

    任务名称

  • Text:

    OCR识别文本

  • Location:

    位置信息

  • Label:

    标签

  • LibId:

    库ID

  • LibName:

    库名称

  • Keywords:

    命中的关键词

  • Suggestion:

    建议

  • Score:

    得分

  • SubLabelCode:

    子标签码

  • SubLabel:

    子标签

  • OcrHitInfos:

    Ocr文本命中信息



860
861
862
# File 'lib/v20210922/models.rb', line 860

def Keywords
  @Keywords
end

#LabelObject

Parameters:

  • Name:

    任务名称

  • Text:

    OCR识别文本

  • Location:

    位置信息

  • Label:

    标签

  • LibId:

    库ID

  • LibName:

    库名称

  • Keywords:

    命中的关键词

  • Suggestion:

    建议

  • Score:

    得分

  • SubLabelCode:

    子标签码

  • SubLabel:

    子标签

  • OcrHitInfos:

    Ocr文本命中信息



860
861
862
# File 'lib/v20210922/models.rb', line 860

def Label
  @Label
end

#LibIdObject

Parameters:

  • Name:

    任务名称

  • Text:

    OCR识别文本

  • Location:

    位置信息

  • Label:

    标签

  • LibId:

    库ID

  • LibName:

    库名称

  • Keywords:

    命中的关键词

  • Suggestion:

    建议

  • Score:

    得分

  • SubLabelCode:

    子标签码

  • SubLabel:

    子标签

  • OcrHitInfos:

    Ocr文本命中信息



860
861
862
# File 'lib/v20210922/models.rb', line 860

def LibId
  @LibId
end

#LibNameObject

Parameters:

  • Name:

    任务名称

  • Text:

    OCR识别文本

  • Location:

    位置信息

  • Label:

    标签

  • LibId:

    库ID

  • LibName:

    库名称

  • Keywords:

    命中的关键词

  • Suggestion:

    建议

  • Score:

    得分

  • SubLabelCode:

    子标签码

  • SubLabel:

    子标签

  • OcrHitInfos:

    Ocr文本命中信息



860
861
862
# File 'lib/v20210922/models.rb', line 860

def LibName
  @LibName
end

#LocationObject

Parameters:

  • Name:

    任务名称

  • Text:

    OCR识别文本

  • Location:

    位置信息

  • Label:

    标签

  • LibId:

    库ID

  • LibName:

    库名称

  • Keywords:

    命中的关键词

  • Suggestion:

    建议

  • Score:

    得分

  • SubLabelCode:

    子标签码

  • SubLabel:

    子标签

  • OcrHitInfos:

    Ocr文本命中信息



860
861
862
# File 'lib/v20210922/models.rb', line 860

def Location
  @Location
end

#NameObject

Parameters:

  • Name:

    任务名称

  • Text:

    OCR识别文本

  • Location:

    位置信息

  • Label:

    标签

  • LibId:

    库ID

  • LibName:

    库名称

  • Keywords:

    命中的关键词

  • Suggestion:

    建议

  • Score:

    得分

  • SubLabelCode:

    子标签码

  • SubLabel:

    子标签

  • OcrHitInfos:

    Ocr文本命中信息



860
861
862
# File 'lib/v20210922/models.rb', line 860

def Name
  @Name
end

#OcrHitInfosObject

Parameters:

  • Name:

    任务名称

  • Text:

    OCR识别文本

  • Location:

    位置信息

  • Label:

    标签

  • LibId:

    库ID

  • LibName:

    库名称

  • Keywords:

    命中的关键词

  • Suggestion:

    建议

  • Score:

    得分

  • SubLabelCode:

    子标签码

  • SubLabel:

    子标签

  • OcrHitInfos:

    Ocr文本命中信息



860
861
862
# File 'lib/v20210922/models.rb', line 860

def OcrHitInfos
  @OcrHitInfos
end

#ScoreObject

Parameters:

  • Name:

    任务名称

  • Text:

    OCR识别文本

  • Location:

    位置信息

  • Label:

    标签

  • LibId:

    库ID

  • LibName:

    库名称

  • Keywords:

    命中的关键词

  • Suggestion:

    建议

  • Score:

    得分

  • SubLabelCode:

    子标签码

  • SubLabel:

    子标签

  • OcrHitInfos:

    Ocr文本命中信息



860
861
862
# File 'lib/v20210922/models.rb', line 860

def Score
  @Score
end

#SubLabelObject

Parameters:

  • Name:

    任务名称

  • Text:

    OCR识别文本

  • Location:

    位置信息

  • Label:

    标签

  • LibId:

    库ID

  • LibName:

    库名称

  • Keywords:

    命中的关键词

  • Suggestion:

    建议

  • Score:

    得分

  • SubLabelCode:

    子标签码

  • SubLabel:

    子标签

  • OcrHitInfos:

    Ocr文本命中信息



860
861
862
# File 'lib/v20210922/models.rb', line 860

def SubLabel
  @SubLabel
end

#SubLabelCodeObject

Parameters:

  • Name:

    任务名称

  • Text:

    OCR识别文本

  • Location:

    位置信息

  • Label:

    标签

  • LibId:

    库ID

  • LibName:

    库名称

  • Keywords:

    命中的关键词

  • Suggestion:

    建议

  • Score:

    得分

  • SubLabelCode:

    子标签码

  • SubLabel:

    子标签

  • OcrHitInfos:

    Ocr文本命中信息



860
861
862
# File 'lib/v20210922/models.rb', line 860

def SubLabelCode
  @SubLabelCode
end

#SuggestionObject

Parameters:

  • Name:

    任务名称

  • Text:

    OCR识别文本

  • Location:

    位置信息

  • Label:

    标签

  • LibId:

    库ID

  • LibName:

    库名称

  • Keywords:

    命中的关键词

  • Suggestion:

    建议

  • Score:

    得分

  • SubLabelCode:

    子标签码

  • SubLabel:

    子标签

  • OcrHitInfos:

    Ocr文本命中信息



860
861
862
# File 'lib/v20210922/models.rb', line 860

def Suggestion
  @Suggestion
end

#TextObject

Parameters:

  • Name:

    任务名称

  • Text:

    OCR识别文本

  • Location:

    位置信息

  • Label:

    标签

  • LibId:

    库ID

  • LibName:

    库名称

  • Keywords:

    命中的关键词

  • Suggestion:

    建议

  • Score:

    得分

  • SubLabelCode:

    子标签码

  • SubLabel:

    子标签

  • OcrHitInfos:

    Ocr文本命中信息



860
861
862
# File 'lib/v20210922/models.rb', line 860

def Text
  @Text
end

Instance Method Details

#deserialize(params) ⇒ Object



877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
# File 'lib/v20210922/models.rb', line 877

def deserialize(params)
  @Name = params['Name']
  @Text = params['Text']
  unless params['Location'].nil?
    @Location = ImageResultsResultDetailLocation.new
    @Location.deserialize(params['Location'])
  end
  @Label = params['Label']
  @LibId = params['LibId']
  @LibName = params['LibName']
  @Keywords = params['Keywords']
  @Suggestion = params['Suggestion']
  @Score = params['Score']
  @SubLabelCode = params['SubLabelCode']
  @SubLabel = params['SubLabel']
  unless params['OcrHitInfos'].nil?
    @OcrHitInfos = []
    params['OcrHitInfos'].each do |i|
      ocrhitinfo_tmp = OcrHitInfo.new
      ocrhitinfo_tmp.deserialize(i)
      @OcrHitInfos << ocrhitinfo_tmp
    end
  end
end