public class OcrTextDetail extends AbstractModel
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String[] |
getKeywords()
Get This parameter is used to return the hit keyword under the current tag (label).
|
String |
getLabel()
Get This field is used to return the maliciousness tag in the detection result.
Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content. |
String |
getLibId()
Get This field is **valid only when `Label` is `Custom` (custom keyword)**.
|
String |
getLibName()
Get This field is **valid only when `Label` is `Custom` (custom keyword)**.
|
Location |
getLocation()
Get This parameter is used to return the position (X and Y coordinates of the top-left corner, length, width, and rotation angle) of the OCR detection frame in the image for quick location of the recognized text.
|
Long |
getRate()
Get This parameter is used to return the confidence of the text OCR result.
|
Long |
getScore()
Get This parameter is used to return the model hit score of the current maliciousness tag.
|
String |
getSubLabel()
Get This field is used to return the maliciousness subtag that corresponds to the detection result.
|
String |
getText()
Get This field is used to return the text content recognized by OCR.
Note: OCR can recognize text of **up to 5,000 bytes**. |
void |
setKeywords(String[] Keywords)
Set This parameter is used to return the hit keyword under the current tag (label).
|
void |
setLabel(String Label)
Set This field is used to return the maliciousness tag in the detection result.
Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **Ad**: advertising; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content. |
void |
setLibId(String LibId)
Set This field is **valid only when `Label` is `Custom` (custom keyword)**.
|
void |
setLibName(String LibName)
Set This field is **valid only when `Label` is `Custom` (custom keyword)**.
|
void |
setLocation(Location Location)
Set This parameter is used to return the position (X and Y coordinates of the top-left corner, length, width, and rotation angle) of the OCR detection frame in the image for quick location of the recognized text.
|
void |
setRate(Long Rate)
Set This parameter is used to return the confidence of the text OCR result.
|
void |
setScore(Long Score)
Set This parameter is used to return the model hit score of the current maliciousness tag.
|
void |
setSubLabel(String SubLabel)
Set This field is used to return the maliciousness subtag that corresponds to the detection result.
|
void |
setText(String Text)
Set This field is used to return the text content recognized by OCR.
Note: OCR can recognize text of **up to 5,000 bytes**. |
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public OcrTextDetail()
public OcrTextDetail(OcrTextDetail source)
public String getText()
public void setText(String Text)
Text
- This field is used to return the text content recognized by OCR.public String getLabel()
public void setLabel(String Label)
Label
- This field is used to return the maliciousness tag in the detection result.public String getLibId()
public void setLibId(String LibId)
LibId
- This field is **valid only when `Label` is `Custom` (custom keyword)**. It is used to return the ID of the custom library for easier custom library management and configuration.public String getLibName()
public void setLibName(String LibName)
LibName
- This field is **valid only when `Label` is `Custom` (custom keyword)**. It is used to return the name of the custom library for easier custom library management and configuration.public String[] getKeywords()
public void setKeywords(String[] Keywords)
Keywords
- This parameter is used to return the hit keyword under the current tag (label).public Long getScore()
public void setScore(Long Score)
Score
- This parameter is used to return the model hit score of the current maliciousness tag. Value range: **0–100**, where a higher value indicates that the current scenario agrees more with the scenario represented by the maliciousness tag.public Location getLocation()
public void setLocation(Location Location)
Location
- This parameter is used to return the position (X and Y coordinates of the top-left corner, length, width, and rotation angle) of the OCR detection frame in the image for quick location of the recognized text.public Long getRate()
public void setRate(Long Rate)
Rate
- This parameter is used to return the confidence of the text OCR result. Valid values: **0** (**the lowest confidence**)–**100** (**the highest confidence**), where a higher value indicates that it is more likely that the image contains the recognized text; for example, *Hello 99* indicates that it is highly likely that the text in the OCR recognition frame is "Hello".public String getSubLabel()
public void setSubLabel(String SubLabel)
SubLabel
- This field is used to return the maliciousness subtag that corresponds to the detection result.Copyright © 2023. All rights reserved.