public class OcrResult extends AbstractModel
header, skipSign
Constructor and Description |
---|
OcrResult() |
OcrResult(OcrResult 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 |
---|---|
OcrTextDetail[] |
getDetails()
Get This field is used to return the details of the OCR recognition result, such as text content, tag, and recognition frame position.
|
String |
getLabel()
Get This field is used to return the maliciousness tag with the highest priority in the OCR detection result, which represents the moderation result suggested by the model.
|
String |
getScene()
Get This field indicates the recognition scenario.
|
Long |
getScore()
Get This field is used to return the confidence under the current tag (Label).
|
String |
getSubLabel()
Get This field is used to return the detection result for a subtag under the current tag (Label), such as *Porn-SexBehavior*.
|
String |
getSuggestion()
Get This field is used to return the operation suggestion for the maliciousness tag with the highest priority.
|
String |
getText()
Get This field is used to return the text information recognized by OCR.
|
void |
setDetails(OcrTextDetail[] Details)
Set This field is used to return the details of the OCR recognition result, such as text content, tag, and recognition frame position.
|
void |
setLabel(String Label)
Set This field is used to return the maliciousness tag with the highest priority in the OCR detection result, which represents the moderation result suggested by the model.
|
void |
setScene(String Scene)
Set This field indicates the recognition scenario.
|
void |
setScore(Long Score)
Set This field is used to return the confidence under the current tag (Label).
|
void |
setSubLabel(String SubLabel)
Set This field is used to return the detection result for a subtag under the current tag (Label), such as *Porn-SexBehavior*.
|
void |
setSuggestion(String Suggestion)
Set This field is used to return the operation suggestion for the maliciousness tag with the highest priority.
|
void |
setText(String Text)
Set This field is used to return the text information recognized by OCR.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public OcrResult()
public OcrResult(OcrResult source)
public String getScene()
public void setScene(String Scene)
Scene
- This field indicates the recognition scenario. Default value: OCR (image OCR).public String getSuggestion()
public void setSuggestion(String Suggestion)
Suggestion
- This field is used to return the operation suggestion for the maliciousness tag with the highest priority. When you get the determination result, the returned value indicates the operation suggested by the system. We recommend you handle different types of violations and suggestions according to your business needs. public String getLabel()
public void setLabel(String Label)
Label
- This field is used to return the maliciousness tag with the highest priority in the OCR detection result, which represents the moderation result suggested by the model. We recommend you handle different types of violations and suggestions according to your business needs. public String getSubLabel()
public void setSubLabel(String SubLabel)
SubLabel
- This field is used to return the detection result for a subtag under the current tag (Label), such as *Porn-SexBehavior*.public Long getScore()
public void setScore(Long Score)
Score
- This field is used to return the confidence under the current tag (Label). Value range: 0 (**the lowest confidence**)–100 (**the highest confidence**), where a higher value indicates that the text is more likely to fall into the category of the current returned tag; for example, *Porn 99* indicates that the text is highly likely to be pornographic, while *Porn 0* indicates that the text is not pornographic.public OcrTextDetail[] getDetails()
public void setDetails(OcrTextDetail[] Details)
Details
- This field is used to return the details of the OCR recognition result, such as text content, tag, and recognition frame position.
Note: this field may return null, indicating that no valid values can be obtained.public String getText()
public void setText(String Text)
Text
- This field is used to return the text information recognized by OCR.Copyright © 2024. All rights reserved.