public class CreatePersonSampleRequest extends AbstractModel
skipSign
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 Description of a sample.
|
String[] |
getFaceContents()
Get String generated after the sample image is encoded by [Base64](https://tools.ietf.org/html/rfc4648).
|
String |
getName()
Get Name of a sample.
|
Long |
getSubAppId()
Get The VOD [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID.
|
String[] |
getTags()
Get Tags of a sample
Array length limit: 20 tags
Length limit of a tag: 128 characters
|
String[] |
getUsages()
Get Usage of a sample.
|
void |
setDescription(String Description)
Set Description of a sample.
|
void |
setFaceContents(String[] FaceContents)
Set String generated after the sample image is encoded by [Base64](https://tools.ietf.org/html/rfc4648).
|
void |
setName(String Name)
Set Name of a sample.
|
void |
setSubAppId(Long SubAppId)
Set The VOD [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID.
|
void |
setTags(String[] Tags)
Set Tags of a sample
Array length limit: 20 tags
Length limit of a tag: 128 characters
|
void |
setUsages(String[] Usages)
Set Usage of a sample.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, getSkipSign, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public CreatePersonSampleRequest()
public CreatePersonSampleRequest(CreatePersonSampleRequest source)
public String getName()
public void setName(String Name)
Name
- Name of a sample. Length limit: 20 characters.public String[] getUsages()
public void setUsages(String[] Usages)
Usages
- Usage of a sample. 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+2.public Long getSubAppId()
public void setSubAppId(Long SubAppId)
SubAppId
- The VOD [subapplication](https://intl.cloud.tencent.com/document/product/266/14574?from_cn_redirect=1) ID. If you need to access a resource in a subapplication, set this parameter to the subapplication ID; otherwise, leave it empty.public String getDescription()
public void setDescription(String Description)
Description
- Description of a sample. Length limit: 1024 characters.public String[] getFaceContents()
public void setFaceContents(String[] FaceContents)
FaceContents
- String generated after the sample image is encoded by [Base64](https://tools.ietf.org/html/rfc4648). Only JPEG and PNG images are supported. Array length limit: 5 images.
Note: the image must be a relatively clear full-face photo of a person and has a resolution of no less than 200 x 200.public String[] getTags()
public void setTags(String[] Tags)
Tags
- Tags of a sample
Copyright © 2023. All rights reserved.