public class LibResult extends AbstractModel
Constructor and Description |
---|
LibResult() |
LibResult(LibResult 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 |
---|---|
LibDetail[] |
getDetails()
Get This field is used to return the detailed result of the comparison with the blocklist/allowlist, such as number, library name, and 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 |
getScene()
Get This field indicates the scenario recognition result of the model.
|
Long |
getScore()
Get This field is used to return the recognition score of the image search model.
|
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.
|
void |
setDetails(LibDetail[] Details)
Set This field is used to return the detailed result of the comparison with the blocklist/allowlist, such as number, library name, and 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 |
setScene(String Scene)
Set This field indicates the scenario recognition result of the model.
|
void |
setScore(Long Score)
Set This field is used to return the recognition score of the image search model.
|
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 |
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 LibResult()
public LibResult(LibResult source)
public String getScene()
public void setScene(String Scene)
Scene
- This field indicates the scenario recognition result of the model. Default value: Similar.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 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 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 recognition score of the image search model. Value range: **0–100**. It indicates the score for the similarity between the moderated image **and the samples in the library**. A higher score indicates that the content is more likely to hit a sample in the library of similar images.public LibDetail[] getDetails()
public void setDetails(LibDetail[] Details)
Details
- This field is used to return the detailed result of the comparison with the blocklist/allowlist, such as number, library name, and maliciousness tag. For more information on the returned value, see the description of the [LibDetail](https://intl.cloud.tencent.com/document/product/1125/53274?from_cn_redirect=1#LibDetail) data structure.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.