public class ImageResult extends AbstractModel
Constructor and Description |
---|
ImageResult() |
ImageResult(ImageResult 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 |
getExtra()
Get This field is used to return the additional information (Extra) in the input parameters.
|
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. |
ImageResultResult[] |
getResults()
Get This field is used to return the sub-result of the image moderation 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 a subtag under the current tag (Lable).
|
String |
getSuggestion()
Get This field is used to return the operation suggestion.
|
String |
getUrl()
Get This field is used to return the access URL of the moderation result.
|
void |
setExtra(String Extra)
Set This field is used to return the additional information (Extra) in the input parameters.
|
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 |
setResults(ImageResultResult[] Results)
Set This field is used to return the sub-result of the image moderation 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 a subtag under the current tag (Lable).
|
void |
setSuggestion(String Suggestion)
Set This field is used to return the operation suggestion.
|
void |
setUrl(String Url)
Set This field is used to return the access URL of the moderation result.
|
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 ImageResult()
public ImageResult(ImageResult source)
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 getLabel()
public void setLabel(String Label)
Label
- This field is used to return the maliciousness tag in the detection result.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 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 ImageResultResult[] getResults()
public void setResults(ImageResultResult[] Results)
Results
- This field is used to return the sub-result of the image moderation result. For details, see the description of the `ImageResultResult` data structure.
Note: this field may return null, indicating that no valid values can be obtained.public String getUrl()
public void setUrl(String Url)
Url
- This field is used to return the access URL of the moderation result. Supported image formats include PNG, JPG, JPEG, BMP, GIF, and WEBP.public String getExtra()
public void setExtra(String Extra)
Extra
- This field is used to return the additional information (Extra) in the input parameters. If it is not configured, an empty value will be returned by default.public String getSubLabel()
public void setSubLabel(String SubLabel)
SubLabel
- This field is used to return a subtag under the current tag (Lable).
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.