Class: TencentCloud::Ims::V20200713::OcrTextDetail

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

Overview

OCR文本结果详情

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text = nil, label = nil, libid = nil, libname = nil, keywords = nil, score = nil, location = nil, rate = nil, sublabel = nil) ⇒ OcrTextDetail

Returns a new instance of OcrTextDetail.



604
605
606
607
608
609
610
611
612
613
614
# File 'lib/v20200713/models.rb', line 604

def initialize(text=nil, label=nil, libid=nil, libname=nil, keywords=nil, score=nil, location=nil, rate=nil, sublabel=nil)
  @Text = text
  @Label = label
  @LibId = libid
  @LibName = libname
  @Keywords = keywords
  @Score = score
  @Location = location
  @Rate = rate
  @SubLabel = sublabel
end

Instance Attribute Details

#KeywordsObject

以及令人反感、不安全或不适宜的内容类型。

Parameters:

  • Text:

    OCR文本内容

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • Keywords:

    该标签下命中的关键词

  • Score:

    该标签模型命中的分值

  • Location:

    OCR位置

  • Rate:

    OCR文本识别置信度

  • SubLabel:

    OCR文本命中的二级标签



602
603
604
# File 'lib/v20200713/models.rb', line 602

def Keywords
  @Keywords
end

#LabelObject

以及令人反感、不安全或不适宜的内容类型。

Parameters:

  • Text:

    OCR文本内容

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • Keywords:

    该标签下命中的关键词

  • Score:

    该标签模型命中的分值

  • Location:

    OCR位置

  • Rate:

    OCR文本识别置信度

  • SubLabel:

    OCR文本命中的二级标签



602
603
604
# File 'lib/v20200713/models.rb', line 602

def Label
  @Label
end

#LibIdObject

以及令人反感、不安全或不适宜的内容类型。

Parameters:

  • Text:

    OCR文本内容

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • Keywords:

    该标签下命中的关键词

  • Score:

    该标签模型命中的分值

  • Location:

    OCR位置

  • Rate:

    OCR文本识别置信度

  • SubLabel:

    OCR文本命中的二级标签



602
603
604
# File 'lib/v20200713/models.rb', line 602

def LibId
  @LibId
end

#LibNameObject

以及令人反感、不安全或不适宜的内容类型。

Parameters:

  • Text:

    OCR文本内容

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • Keywords:

    该标签下命中的关键词

  • Score:

    该标签模型命中的分值

  • Location:

    OCR位置

  • Rate:

    OCR文本识别置信度

  • SubLabel:

    OCR文本命中的二级标签



602
603
604
# File 'lib/v20200713/models.rb', line 602

def LibName
  @LibName
end

#LocationObject

以及令人反感、不安全或不适宜的内容类型。

Parameters:

  • Text:

    OCR文本内容

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • Keywords:

    该标签下命中的关键词

  • Score:

    该标签模型命中的分值

  • Location:

    OCR位置

  • Rate:

    OCR文本识别置信度

  • SubLabel:

    OCR文本命中的二级标签



602
603
604
# File 'lib/v20200713/models.rb', line 602

def Location
  @Location
end

#RateObject

以及令人反感、不安全或不适宜的内容类型。

Parameters:

  • Text:

    OCR文本内容

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • Keywords:

    该标签下命中的关键词

  • Score:

    该标签模型命中的分值

  • Location:

    OCR位置

  • Rate:

    OCR文本识别置信度

  • SubLabel:

    OCR文本命中的二级标签



602
603
604
# File 'lib/v20200713/models.rb', line 602

def Rate
  @Rate
end

#ScoreObject

以及令人反感、不安全或不适宜的内容类型。

Parameters:

  • Text:

    OCR文本内容

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • Keywords:

    该标签下命中的关键词

  • Score:

    该标签模型命中的分值

  • Location:

    OCR位置

  • Rate:

    OCR文本识别置信度

  • SubLabel:

    OCR文本命中的二级标签



602
603
604
# File 'lib/v20200713/models.rb', line 602

def Score
  @Score
end

#SubLabelObject

以及令人反感、不安全或不适宜的内容类型。

Parameters:

  • Text:

    OCR文本内容

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • Keywords:

    该标签下命中的关键词

  • Score:

    该标签模型命中的分值

  • Location:

    OCR位置

  • Rate:

    OCR文本识别置信度

  • SubLabel:

    OCR文本命中的二级标签



602
603
604
# File 'lib/v20200713/models.rb', line 602

def SubLabel
  @SubLabel
end

#TextObject

以及令人反感、不安全或不适宜的内容类型。

Parameters:

  • Text:

    OCR文本内容

  • Label:

    恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。

  • LibId:

    仅当Label为Custom自定义关键词时有效,表示自定义库id

  • LibName:

    仅当Label为Custom自定义关键词时有效,表示自定义库名称

  • Keywords:

    该标签下命中的关键词

  • Score:

    该标签模型命中的分值

  • Location:

    OCR位置

  • Rate:

    OCR文本识别置信度

  • SubLabel:

    OCR文本命中的二级标签



602
603
604
# File 'lib/v20200713/models.rb', line 602

def Text
  @Text
end

Instance Method Details

#deserialize(params) ⇒ Object



616
617
618
619
620
621
622
623
624
625
626
627
628
629
# File 'lib/v20200713/models.rb', line 616

def deserialize(params)
  @Text = params['Text']
  @Label = params['Label']
  @LibId = params['LibId']
  @LibName = params['LibName']
  @Keywords = params['Keywords']
  @Score = params['Score']
  unless params['Location'].nil?
    @Location = Location.new
    @Location.deserialize(params['Location'])
  end
  @Rate = params['Rate']
  @SubLabel = params['SubLabel']
end