Class OcrTextDetail
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.ims.v20200713.models.OcrTextDetail
-
public class OcrTextDetail extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description OcrTextDetail()OcrTextDetail(OcrTextDetail source)NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]getKeywords()Get 该标签下命中的关键词StringgetLabel()Get 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。 以及令人反感、不安全或不适宜的内容类型。StringgetLibId()Get 仅当Label为Custom自定义关键词时有效,表示自定义库idStringgetLibName()Get 仅当Label为Custom自定义关键词时有效,表示自定义库名称LocationgetLocation()Get OCR位置LonggetRate()Get OCR文本识别置信度LonggetScore()Get 该标签模型命中的分值StringgetSubLabel()Get OCR文本命中的二级标签StringgetText()Get OCR文本内容voidsetKeywords(String[] Keywords)Set 该标签下命中的关键词voidsetLabel(String Label)Set 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。 以及令人反感、不安全或不适宜的内容类型。voidsetLibId(String LibId)Set 仅当Label为Custom自定义关键词时有效,表示自定义库idvoidsetLibName(String LibName)Set 仅当Label为Custom自定义关键词时有效,表示自定义库名称voidsetLocation(Location Location)Set OCR位置voidsetRate(Long Rate)Set OCR文本识别置信度voidsetScore(Long Score)Set 该标签模型命中的分值voidsetSubLabel(String SubLabel)Set OCR文本命中的二级标签voidsetText(String Text)Set OCR文本内容voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
OcrTextDetail
public OcrTextDetail()
-
OcrTextDetail
public OcrTextDetail(OcrTextDetail source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy, and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
-
-
Method Detail
-
getText
public String getText()
Get OCR文本内容- Returns:
- Text OCR文本内容
-
setText
public void setText(String Text)
Set OCR文本内容- Parameters:
Text- OCR文本内容
-
getLabel
public String getLabel()
Get 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。 以及令人反感、不安全或不适宜的内容类型。- Returns:
- Label 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。 以及令人反感、不安全或不适宜的内容类型。
-
setLabel
public void setLabel(String Label)
Set 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。 以及令人反感、不安全或不适宜的内容类型。- Parameters:
Label- 恶意标签,Normal:正常,Porn:色情,Abuse:谩骂,Ad:广告,Custom:自定义词库。 以及令人反感、不安全或不适宜的内容类型。
-
getLibId
public String getLibId()
Get 仅当Label为Custom自定义关键词时有效,表示自定义库id- Returns:
- LibId 仅当Label为Custom自定义关键词时有效,表示自定义库id
-
setLibId
public void setLibId(String LibId)
Set 仅当Label为Custom自定义关键词时有效,表示自定义库id- Parameters:
LibId- 仅当Label为Custom自定义关键词时有效,表示自定义库id
-
getLibName
public String getLibName()
Get 仅当Label为Custom自定义关键词时有效,表示自定义库名称- Returns:
- LibName 仅当Label为Custom自定义关键词时有效,表示自定义库名称
-
setLibName
public void setLibName(String LibName)
Set 仅当Label为Custom自定义关键词时有效,表示自定义库名称- Parameters:
LibName- 仅当Label为Custom自定义关键词时有效,表示自定义库名称
-
getKeywords
public String[] getKeywords()
Get 该标签下命中的关键词- Returns:
- Keywords 该标签下命中的关键词
-
setKeywords
public void setKeywords(String[] Keywords)
Set 该标签下命中的关键词- Parameters:
Keywords- 该标签下命中的关键词
-
getScore
public Long getScore()
Get 该标签模型命中的分值- Returns:
- Score 该标签模型命中的分值
-
setScore
public void setScore(Long Score)
Set 该标签模型命中的分值- Parameters:
Score- 该标签模型命中的分值
-
getLocation
public Location getLocation()
Get OCR位置- Returns:
- Location OCR位置
-
setLocation
public void setLocation(Location Location)
Set OCR位置- Parameters:
Location- OCR位置
-
getRate
public Long getRate()
Get OCR文本识别置信度- Returns:
- Rate OCR文本识别置信度
-
setRate
public void setRate(Long Rate)
Set OCR文本识别置信度- Parameters:
Rate- OCR文本识别置信度
-
getSubLabel
public String getSubLabel()
Get OCR文本命中的二级标签- Returns:
- SubLabel OCR文本命中的二级标签
-
setSubLabel
public void setSubLabel(String SubLabel)
Set OCR文本命中的二级标签- Parameters:
SubLabel- OCR文本命中的二级标签
-
-