public class ImageResultsResultDetail extends AbstractModel
| Constructor and Description | 
|---|
| ImageResultsResultDetail() | 
| ImageResultsResultDetail(ImageResultsResultDetail 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 field is used to return the keyword information hit by the detected text and indicate the specific cause of text non-compliance (such as *Friend me*). | 
| 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)**. | 
| ImageResultsResultDetailLocation | getLocation()Get This field is used to return the detailed position information of the image moderation sub-result, such as coordinates, size, and rotation angle. | 
| String | getName()Get This field is used to return the task name in the `TaskInput` parameter passed in when the video moderation API is called for easier task identification and management. | 
| Long | getScore()Get This field is used to return the confidence under the current tag. | 
| String | getSubLabelCode()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 | setKeywords(String[] Keywords)Set This field is used to return the keyword information hit by the detected text and indicate the specific cause of text non-compliance (such as *Friend me*). | 
| 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(ImageResultsResultDetailLocation Location)Set This field is used to return the detailed position information of the image moderation sub-result, such as coordinates, size, and rotation angle. | 
| void | setName(String Name)Set This field is used to return the task name in the `TaskInput` parameter passed in when the video moderation API is called for easier task identification and management. | 
| void | setScore(Long Score)Set This field is used to return the confidence under the current tag. | 
| void | setSubLabelCode(String SubLabelCode)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, toJsonStringpublic ImageResultsResultDetail()
public ImageResultsResultDetail(ImageResultsResultDetail source)
public String getName()
public void setName(String Name)
Name - This field is used to return the task name in the `TaskInput` parameter passed in when the video moderation API is called for easier task identification and management.
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 ImageResultsResultDetailLocation getLocation()
public void setLocation(ImageResultsResultDetailLocation Location)
Location - This field is used to return the detailed position information of the image moderation sub-result, such as coordinates, size, and rotation angle. For the detailed returned content, see the description of the `ImageResultsResultDetailLocation` data structure.
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 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.
Note: this field may return null, indicating that no valid values can be obtained.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.
Note: this field may return null, indicating that no valid values can be obtained.public String[] getKeywords()
public void setKeywords(String[] Keywords)
Keywords - This field is used to return the keyword information hit by the detected text and indicate the specific cause of text non-compliance (such as *Friend me*). This parameter may have multiple returned values representing multiple hit keywords. If the returned value is empty, but `Score` is not empty, the maliciousness tag (Label) that corresponds to the recognition result derives from the returned value determined by the semantic model.
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 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 99* indicates that the text is highly likely to be pornographic.
Note: this field may return null, indicating that no valid values can be obtained.public String getSubLabelCode()
public void setSubLabelCode(String SubLabelCode)
SubLabelCode - 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.Copyright © 2022. All rights reserved.