public class CreatePersonSampleRequest extends AbstractModel
Constructor and Description |
---|
CreatePersonSampleRequest() |
CreatePersonSampleRequest(CreatePersonSampleRequest 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 |
getDescription()
Get Image description.
|
String[] |
getFaceContents()
Get [Base64](https://tools.ietf.org/html/rfc4648) string converted from an image.
|
String |
getName()
Get Name of an image.
|
String[] |
getTags()
Get Image tag
Array length limit: 20 tags
Tag length limit: 128 characters
|
String[] |
getUsages()
Get Image usage.
|
void |
setDescription(String Description)
Set Image description.
|
void |
setFaceContents(String[] FaceContents)
Set [Base64](https://tools.ietf.org/html/rfc4648) string converted from an image.
|
void |
setName(String Name)
Set Name of an image.
|
void |
setTags(String[] Tags)
Set Image tag
Array length limit: 20 tags
Tag length limit: 128 characters
|
void |
setUsages(String[] Usages)
Set Image usage.
|
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 CreatePersonSampleRequest()
public CreatePersonSampleRequest(CreatePersonSampleRequest source)
public String getName()
public void setName(String Name)
Name
- Name of an image. Length limit: 20 characterspublic String[] getUsages()
public void setUsages(String[] Usages)
Usages
- Image usage. Valid values:
1. Recognition: used for content recognition; equivalent to `Recognition.Face`
2. Review: used for inappropriate information recognition; equivalent to `Review.Face`
3. All: equivalent to 1+2public String getDescription()
public void setDescription(String Description)
Description
- Image description. Length limit: 1,024 characterspublic String[] getFaceContents()
public void setFaceContents(String[] FaceContents)
FaceContents
- [Base64](https://tools.ietf.org/html/rfc4648) string converted from an image. Only JPEG and PNG images are supported. Array length limit: 5 images
Note: the image must be a relatively clear facial feature photo of one person with a size of at least 200 x 200 pixels.public String[] getTags()
public void setTags(String[] Tags)
Tags
- Image tag
Copyright © 2023. All rights reserved.