public class ImageModerationResponse extends AbstractModel
Constructor and Description |
---|
ImageModerationResponse() |
ImageModerationResponse(ImageModerationResponse 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 |
getBizType()
Get This field is used to return the `BizType` in the request parameters that correspond to the detected object.
|
String |
getDataId()
Get This field is used to return the `DataId` in the request parameters that correspond to the detected object.
|
String |
getExtra()
Get This field is used to return the additional information (Extra) configured based on your needs.
|
String |
getFileMD5()
Get This field is used to return the MD5 checksum of the detected object for easier verification of the file integrity.
|
String |
getLabel()
Get This field is used to return the **maliciousness tag with the highest priority** in the detection result (LabelResults), which represents the moderation result suggested by the model.
|
LabelResult[] |
getLabelResults()
Get This field is used to return the detailed recognition result for the maliciousness tag hit by the categorization model, such as porn, advertising, or any other offensive, unsafe, or inappropriate type of content.
|
LibResult[] |
getLibResults()
Get This field is used to return the result of recognition based on image risk libraries (blocklist and allowlist).
|
ObjectResult[] |
getObjectResults()
Get This field is used to return the detailed detection result of the object detection model, including the tag name hit by the content such as object, advertising logo, or QR code, tag score, coordinate information, scenario recognition result, and operation suggestion.
|
OcrResult[] |
getOcrResults()
Get This field is used to return the detailed text OCR result, including the text coordinate information, text recognition result, and operation suggestion.
|
RecognitionResult[] |
getRecognitionResults()
Get Image recognition result, including the hit tags, confidence and location.
|
String |
getRequestId()
Get The unique request ID, which is returned for each request.
|
Long |
getScore()
Get Confidence score of the under the current label.
|
String |
getSubLabel()
Get This field is used to return the subtag name under the maliciousness tag with the highest priority hit by the detection result, such as *Porn-SexBehavior*.
|
String |
getSuggestion()
Get This field is used to return the operation suggestion for the `Label` tag.
|
void |
setBizType(String BizType)
Set This field is used to return the `BizType` in the request parameters that correspond to the detected object.
|
void |
setDataId(String DataId)
Set This field is used to return the `DataId` in the request parameters that correspond to the detected object.
|
void |
setExtra(String Extra)
Set This field is used to return the additional information (Extra) configured based on your needs.
|
void |
setFileMD5(String FileMD5)
Set This field is used to return the MD5 checksum of the detected object for easier verification of the file integrity.
|
void |
setLabel(String Label)
Set This field is used to return the **maliciousness tag with the highest priority** in the detection result (LabelResults), which represents the moderation result suggested by the model.
|
void |
setLabelResults(LabelResult[] LabelResults)
Set This field is used to return the detailed recognition result for the maliciousness tag hit by the categorization model, such as porn, advertising, or any other offensive, unsafe, or inappropriate type of content.
|
void |
setLibResults(LibResult[] LibResults)
Set This field is used to return the result of recognition based on image risk libraries (blocklist and allowlist).
|
void |
setObjectResults(ObjectResult[] ObjectResults)
Set This field is used to return the detailed detection result of the object detection model, including the tag name hit by the content such as object, advertising logo, or QR code, tag score, coordinate information, scenario recognition result, and operation suggestion.
|
void |
setOcrResults(OcrResult[] OcrResults)
Set This field is used to return the detailed text OCR result, including the text coordinate information, text recognition result, and operation suggestion.
|
void |
setRecognitionResults(RecognitionResult[] RecognitionResults)
Set Image recognition result, including the hit tags, confidence and location.
|
void |
setRequestId(String RequestId)
Set The unique request ID, which is returned for each request.
|
void |
setScore(Long Score)
Set Confidence score of the under the current label.
|
void |
setSubLabel(String SubLabel)
Set This field is used to return the subtag name under the maliciousness tag with the highest priority hit by the detection result, such as *Porn-SexBehavior*.
|
void |
setSuggestion(String Suggestion)
Set This field is used to return the operation suggestion for the `Label` tag.
|
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 ImageModerationResponse()
public ImageModerationResponse(ImageModerationResponse source)
public String getSuggestion()
public void setSuggestion(String Suggestion)
Suggestion
- This field is used to return the operation suggestion for the `Label` tag. 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 detection result (LabelResults), 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 subtag name under the maliciousness tag with the highest priority hit by the detection result, such as *Porn-SexBehavior*. If no subtag is hit, an empty string will be returned.public Long getScore()
public void setScore(Long Score)
Score
- Confidence score of the under the current label. Value range: 0 (**the lowest confidence**) to 100 (**the highest confidence**). For example, *Porn 99* indicates that the image is highly likely to be pornographic, while *Porn 0* indicates that the image is not pornographic.public LabelResult[] getLabelResults()
public void setLabelResults(LabelResult[] LabelResults)
LabelResults
- This field is used to return the detailed recognition result for the maliciousness tag hit by the categorization model, such as porn, advertising, or any other offensive, unsafe, or inappropriate type of content.
Note: this field may return null, indicating that no valid values can be obtained.public ObjectResult[] getObjectResults()
public void setObjectResults(ObjectResult[] ObjectResults)
ObjectResults
- This field is used to return the detailed detection result of the object detection model, including the tag name hit by the content such as object, advertising logo, or QR code, tag score, coordinate information, scenario recognition result, and operation suggestion. For more information on the returned value, see the description of the `ObjectResults` data structure.
Note: this field may return null, indicating that no valid values can be obtained.public OcrResult[] getOcrResults()
public void setOcrResults(OcrResult[] OcrResults)
OcrResults
- This field is used to return the detailed text OCR result, including the text coordinate information, text recognition result, and operation suggestion. For more information on the returned value, see the description of the `OcrResults` data structure.
Note: this field may return null, indicating that no valid values can be obtained.public LibResult[] getLibResults()
public void setLibResults(LibResult[] LibResults)
LibResults
- This field is used to return the result of recognition based on image risk libraries (blocklist and allowlist). For more information on the returned value, see the description of the `LibResults` data structure.public String getDataId()
public void setDataId(String DataId)
DataId
- This field is used to return the `DataId` in the request parameters that correspond to the detected object.public String getBizType()
public void setBizType(String BizType)
BizType
- This field is used to return the `BizType` in the request parameters that correspond to the detected object.public String getExtra()
public void setExtra(String Extra)
Extra
- This field is used to return the additional information (Extra) configured based on your needs. If it is not configured, an empty value will be returned by default.public String getFileMD5()
public void setFileMD5(String FileMD5)
FileMD5
- This field is used to return the MD5 checksum of the detected object for easier verification of the file integrity.public RecognitionResult[] getRecognitionResults()
public void setRecognitionResults(RecognitionResult[] RecognitionResults)
RecognitionResults
- Image recognition result, including the hit tags, confidence and location.
Note: This field may return `null`, indicating that no valid values can be obtained.public String getRequestId()
public void setRequestId(String RequestId)
RequestId
- The unique request ID, which is returned for each request. RequestId is required for locating a problem.Copyright © 2023. All rights reserved.