public class ObjectResult extends AbstractModel
Constructor and Description |
---|
ObjectResult() |
ObjectResult(ObjectResult 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 |
---|---|
ObjectDetail[] |
getDetails()
Get This field is used to return the details of the recognized object, such as number, hit tag name, and position coordinates.
|
String |
getLabel()
Get This field is used to return the maliciousness tag in the detection result, which represents the moderation result suggested by the model.
|
String[] |
getNames()
Get This field is used to return the name of the recognized object.
|
String |
getScene()
Get This field is used to return the recognized object scenario result, such as QR code, logo, and image OCR.
|
Long |
getScore()
Get This field is used to return the hit score of a subtag under the current maliciousness tag.
|
String |
getSubLabel()
Get This field is used to return the detection result for a subtag under the current maliciousness tag, such as *Porn-SexBehavior*.
|
String |
getSuggestion()
Get This field is used to return the operation suggestion for the current maliciousness tag.
|
void |
setDetails(ObjectDetail[] Details)
Set This field is used to return the details of the recognized object, such as number, hit tag name, and position coordinates.
|
void |
setLabel(String Label)
Set This field is used to return the maliciousness tag in the detection result, which represents the moderation result suggested by the model.
|
void |
setNames(String[] Names)
Set This field is used to return the name of the recognized object.
|
void |
setScene(String Scene)
Set This field is used to return the recognized object scenario result, such as QR code, logo, and image OCR.
|
void |
setScore(Long Score)
Set This field is used to return the hit score of a subtag under the current maliciousness tag.
|
void |
setSubLabel(String SubLabel)
Set This field is used to return the detection result for a subtag under the current maliciousness tag, such as *Porn-SexBehavior*.
|
void |
setSuggestion(String Suggestion)
Set This field is used to return the operation suggestion for the current maliciousness 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 ObjectResult()
public ObjectResult(ObjectResult source)
public String getScene()
public void setScene(String Scene)
Scene
- This field is used to return the recognized object scenario result, such as QR code, logo, and image OCR.public String getSuggestion()
public void setSuggestion(String Suggestion)
Suggestion
- This field is used to return the operation suggestion for the current maliciousness 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 in the detection result, 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 detection result for a subtag under the current maliciousness tag, such as *Porn-SexBehavior*.public Long getScore()
public void setScore(Long Score)
Score
- This field is used to return the hit score of a subtag under the current maliciousness tag. Value range: **0–100**; for example, *Porn-SexBehavior 99* indicates that the hit score of the *Porn-SexBehavior* tag for the recognized content is 99.public String[] getNames()
public void setNames(String[] Names)
Names
- This field is used to return the name of the recognized object.
Note: this field may return null, indicating that no valid values can be obtained.public ObjectDetail[] getDetails()
public void setDetails(ObjectDetail[] Details)
Details
- This field is used to return the details of the recognized object, such as number, hit tag name, and position coordinates. For more information on the returned value, see the description of the [ObjectDetail](https://intl.cloud.tencent.com/document/api/1125/53274?from_cn_redirect=1#ObjectDetail) data structure.
Note: this field may return null, indicating that no valid values can be obtained.Copyright © 2023. All rights reserved.