public class MergeInfo extends AbstractModel
header, skipSign
Constructor and Description |
---|
MergeInfo() |
MergeInfo(MergeInfo 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 |
getImage()
Get Enter the image Base64 code.
|
FaceRect |
getInputImageFaceRect()
Get Face position information (face box) on the uploaded image
Width and height are no less than 30.
|
String |
getTemplateFaceID()
Get Material face ID.
|
FaceRect |
getTemplateFaceRect()
Get Face position information (face box) on the template.
|
String |
getUrl()
Get Enter the image URL.
|
void |
setImage(String Image)
Set Enter the image Base64 code.
|
void |
setInputImageFaceRect(FaceRect InputImageFaceRect)
Set Face position information (face box) on the uploaded image
Width and height are no less than 30.
|
void |
setTemplateFaceID(String TemplateFaceID)
Set Material face ID.
|
void |
setTemplateFaceRect(FaceRect TemplateFaceRect)
Set Face position information (face box) on the template.
|
void |
setUrl(String Url)
Set Enter the image URL.
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public MergeInfo()
public MergeInfo(MergeInfo source)
public String getImage()
public void setImage(String Image)
Image
- Enter the image Base64 code.
●Either the Base64 code or URL must be provided. If both are provided, URL prevails.
●Material image limitation: face size in the image greater than 34×34 pixels; image size greater than 64×64 pixels. (After encoding, the image size may increase by about 30%. It is recommended to control the image size reasonably.)
●Supported image format: JPG or PNGpublic String getUrl()
public void setUrl(String Url)
Url
- Enter the image URL.
●Either the Base64 code or URL must be provided. If both are provided, URL prevails.
●Material image limitation: face size in the image greater than 34×34 pixels; image size greater than 64×64 pixels. (After encoding, the image size may increase by about 30%. It is recommended to control the image size reasonably.)
●Supported image format: JPG or PNGpublic FaceRect getInputImageFaceRect()
public void setInputImageFaceRect(FaceRect InputImageFaceRect)
InputImageFaceRect
- Face position information (face box) on the uploaded image
Width and height are no less than 30.public String getTemplateFaceID()
public void setTemplateFaceID(String TemplateFaceID)
TemplateFaceID
- Material face ID. If this parameter is left blank, the largest face is used by default.public FaceRect getTemplateFaceRect()
public void setTemplateFaceRect(FaceRect TemplateFaceRect)
TemplateFaceRect
- Face position information (face box) on the template. If this parameter is left blank, the largest face is used by default. This parameter applies to scenes where custom material templates are used for fusion.
Width and height are no less than 30.Copyright © 2024. All rights reserved.