public class FmuClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
Constructor and Description |
---|
FmuClient(Credential credential,
String region) |
FmuClient(Credential credential,
String region,
ClientProfile profile) |
Modifier and Type | Method and Description |
---|---|
BeautifyPicResponse |
BeautifyPic(BeautifyPicRequest req)
用户上传一张人脸图片,精准定位五官,实现美肤、亮肤、祛痘等美颜功能。
|
BeautifyVideoResponse |
BeautifyVideo(BeautifyVideoRequest req)
视频美颜
|
CancelBeautifyVideoJobResponse |
CancelBeautifyVideoJob(CancelBeautifyVideoJobRequest req)
撤销视频美颜任务请求
|
CreateModelResponse |
CreateModel(CreateModelRequest req)
在使用LUT素材的modelid实现试唇色前,您需要先上传 LUT 格式的cube文件注册唇色ID。查看 [LUT文件的使用说明](https://cloud.tencent.com/document/product/1172/41701)。
注:您也可以直接使用 [试唇色接口](https://cloud.tencent.com/document/product/1172/40706),通过输入RGBA模型数值的方式指定唇色,更简单易用。
|
DeleteModelResponse |
DeleteModel(DeleteModelRequest req)
删除已注册的唇色素材。
|
GetModelListResponse |
GetModelList(GetModelListRequest req)
查询已注册的唇色素材。
|
QueryBeautifyVideoJobResponse |
QueryBeautifyVideoJob(QueryBeautifyVideoJobRequest req)
查询视频美颜处理进度
|
StyleImageResponse |
StyleImage(StyleImageRequest req)
上传一张照片,输出滤镜处理后的图片。
|
StyleImageProResponse |
StyleImagePro(StyleImageProRequest req)
上传一张照片,输出滤镜处理后的图片。
|
TryLipstickPicResponse |
TryLipstickPic(TryLipstickPicRequest req)
对图片中的人脸嘴唇进行着色,最多支持同时对一张图中的3张人脸进行试唇色。
您可以通过事先注册在腾讯云的唇色素材(LUT文件)改变图片中的人脸唇色,也可以输入RGBA模型数值。
为了更好的效果,建议您使用事先注册在腾讯云的唇色素材(LUT文件)。
>
- 公共参数中的签名方式请使用V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
call, callOctetStream, getClientProfile, getCredential, getRegion, internalRequest, retry, setClientProfile, setCredential, setRegion
public FmuClient(Credential credential, String region)
public FmuClient(Credential credential, String region, ClientProfile profile)
public BeautifyPicResponse BeautifyPic(BeautifyPicRequest req) throws TencentCloudSDKException
req
- BeautifyPicRequestTencentCloudSDKException
public BeautifyVideoResponse BeautifyVideo(BeautifyVideoRequest req) throws TencentCloudSDKException
req
- BeautifyVideoRequestTencentCloudSDKException
public CancelBeautifyVideoJobResponse CancelBeautifyVideoJob(CancelBeautifyVideoJobRequest req) throws TencentCloudSDKException
req
- CancelBeautifyVideoJobRequestTencentCloudSDKException
public CreateModelResponse CreateModel(CreateModelRequest req) throws TencentCloudSDKException
req
- CreateModelRequestTencentCloudSDKException
public DeleteModelResponse DeleteModel(DeleteModelRequest req) throws TencentCloudSDKException
req
- DeleteModelRequestTencentCloudSDKException
public GetModelListResponse GetModelList(GetModelListRequest req) throws TencentCloudSDKException
req
- GetModelListRequestTencentCloudSDKException
public QueryBeautifyVideoJobResponse QueryBeautifyVideoJob(QueryBeautifyVideoJobRequest req) throws TencentCloudSDKException
req
- QueryBeautifyVideoJobRequestTencentCloudSDKException
public StyleImageResponse StyleImage(StyleImageRequest req) throws TencentCloudSDKException
req
- StyleImageRequestTencentCloudSDKException
public StyleImageProResponse StyleImagePro(StyleImageProRequest req) throws TencentCloudSDKException
req
- StyleImageProRequestTencentCloudSDKException
public TryLipstickPicResponse TryLipstickPic(TryLipstickPicRequest req) throws TencentCloudSDKException
req
- TryLipstickPicRequestTencentCloudSDKException
Copyright © 2022. All rights reserved.