public class ImageResultResult extends AbstractModel
Constructor and Description |
---|
ImageResultResult() |
ImageResultResult(ImageResultResult 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 |
---|---|
ImageResultsResultDetail[] |
getDetails()
Get This field is used to return other detailed information of the image moderation sub-result, such as text position and custom library.
|
Long |
getHitFlag()
Get This parameter indicates whether the moderated content hit a maliciousness tag.
|
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[] |
getNames()
Get This field is used to return the list of specific object names hit by the moderated image in a sensitive scenario.
|
String |
getScene()
Get This field is used to return the maliciousness scenario in the detection result.
|
Long |
getScore()
Get This field is used to return the confidence under the current tag.
|
String |
getSubLabel()
Get This field is used to return the detection result for a subtag under the maliciousness tag, such as *Porn-SexBehavior*.
|
String |
getSuggestion()
Get This field is used to return the operation suggestion.
|
String |
getText()
Get This field is used to return the OCR result of an image.
|
void |
setDetails(ImageResultsResultDetail[] Details)
Set This field is used to return other detailed information of the image moderation sub-result, such as text position and custom library.
|
void |
setHitFlag(Long HitFlag)
Set This parameter indicates whether the moderated content hit a maliciousness tag.
|
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 |
setNames(String[] Names)
Set This field is used to return the list of specific object names hit by the moderated image in a sensitive scenario.
|
void |
setScene(String Scene)
Set This field is used to return the maliciousness scenario in the detection result.
|
void |
setScore(Long Score)
Set This field is used to return the confidence under the current tag.
|
void |
setSubLabel(String SubLabel)
Set This field is used to return the detection result for a subtag under the maliciousness tag, such as *Porn-SexBehavior*.
|
void |
setSuggestion(String Suggestion)
Set This field is used to return the operation suggestion.
|
void |
setText(String Text)
Set This field is used to return the OCR result of an image.
|
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 ImageResultResult()
public ImageResultResult(ImageResultResult source)
public String getScene()
public void setScene(String Scene)
Scene
- This field is used to return the maliciousness scenario in the detection result. Returned values: **Normal**: normal; **Porn**: pornographic; **Abuse**: abusive; **AppLogo**: advertising logo; **Custom**: custom type of non-compliant content and other offensive, unsafe, or inappropriate types of content.
Note: this field may return null, indicating that no valid values can be obtained.public Long getHitFlag()
public void setHitFlag(Long HitFlag)
HitFlag
- This parameter indicates whether the moderated content hit a maliciousness tag. Valid values: 0 (**no**), 1 (**yes**).
Note: this field may return null, indicating that no valid values can be obtained.public String getSuggestion()
public void setSuggestion(String Suggestion)
Suggestion
- This field is used to return the operation suggestion. When you get the determination result, the returned value indicates the suggested operation.public String getLabel()
public void setLabel(String Label)
Label
- This field is used to return the maliciousness tag in the detection result.public String getSubLabel()
public void setSubLabel(String SubLabel)
SubLabel
- This field is used to return the detection result for a subtag under the maliciousness tag, such as *Porn-SexBehavior*.
Note: this field may return null, indicating that no valid values can be obtained.public Long getScore()
public void setScore(Long Score)
Score
- This field is used to return the confidence under the current tag. 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-SexBehavior 99* indicates that the text is highly likely to fall into the category of content involving sexual behaviors.
Note: this field may return null, indicating that no valid values can be obtained.public String[] getNames()
public void setNames(String[] Names)
Names
- This field is used to return the list of specific object names hit by the moderated image in a sensitive scenario.
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 OCR result of an image. OCR can recognize text of **up to 5,000 bytes**.
Note: this field may return null, indicating that no valid values can be obtained.public ImageResultsResultDetail[] getDetails()
public void setDetails(ImageResultsResultDetail[] Details)
Details
- This field is used to return other detailed information of the image moderation sub-result, such as text position and custom library. For the detailed returned content, see the description of the `ImageResultsResultDetail` data structure.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.