
com.tencentcloudapi.facefusion.v20220927.models.FuseFaceRequest Maven / Gradle / Ivy
/*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.tencentcloudapi.facefusion.v20220927.models;
import com.tencentcloudapi.common.AbstractModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;
public class FuseFaceRequest extends AbstractModel{
/**
* 活动 ID,请在人脸融合控制台查看。
*/
@SerializedName("ProjectId")
@Expose
private String ProjectId;
/**
* 素材 ID,请在人脸融合控制台查看。
*/
@SerializedName("ModelId")
@Expose
private String ModelId;
/**
* 返回图像方式(url 或 base64) ,二选一。url有效期为7天。
*/
@SerializedName("RspImgType")
@Expose
private String RspImgType;
/**
* 用户人脸图片、素材模板图的人脸位置信息。
*/
@SerializedName("MergeInfos")
@Expose
private MergeInfo [] MergeInfos;
/**
* 脸型融合比例,数值越高,融合后的脸型越像素材人物。取值范围[0,100]
若此参数不填写,则使用人脸融合控制台中脸型参数数值。(换脸版算法暂不支持此参数调整)
*/
@SerializedName("FuseProfileDegree")
@Expose
private Long FuseProfileDegree;
/**
* 五官融合比例,数值越高,融合后的五官越像素材人物。取值范围[0,100]
若此参数不填写,则使用人脸融合控制台中五官参数数值。(换脸版算法暂不支持此参数调整)
*/
@SerializedName("FuseFaceDegree")
@Expose
private Long FuseFaceDegree;
/**
* 为融合结果图添加合成标识的开关,默认为1。
1:添加标识。
0:不添加标识。
其他数值:默认按1处理。
建议您使用显著标识来提示结果图使用了人脸融合技术,是AI合成的图片。
*/
@SerializedName("LogoAdd")
@Expose
private Long LogoAdd;
/**
* 标识内容设置。
默认在融合结果图右下角添加“本图片为AI合成图片”字样,您可根据自身需要替换为其他的Logo图片。
*/
@SerializedName("LogoParam")
@Expose
private LogoParam LogoParam;
/**
* Get 活动 ID,请在人脸融合控制台查看。
* @return ProjectId 活动 ID,请在人脸融合控制台查看。
*/
public String getProjectId() {
return this.ProjectId;
}
/**
* Set 活动 ID,请在人脸融合控制台查看。
* @param ProjectId 活动 ID,请在人脸融合控制台查看。
*/
public void setProjectId(String ProjectId) {
this.ProjectId = ProjectId;
}
/**
* Get 素材 ID,请在人脸融合控制台查看。
* @return ModelId 素材 ID,请在人脸融合控制台查看。
*/
public String getModelId() {
return this.ModelId;
}
/**
* Set 素材 ID,请在人脸融合控制台查看。
* @param ModelId 素材 ID,请在人脸融合控制台查看。
*/
public void setModelId(String ModelId) {
this.ModelId = ModelId;
}
/**
* Get 返回图像方式(url 或 base64) ,二选一。url有效期为7天。
* @return RspImgType 返回图像方式(url 或 base64) ,二选一。url有效期为7天。
*/
public String getRspImgType() {
return this.RspImgType;
}
/**
* Set 返回图像方式(url 或 base64) ,二选一。url有效期为7天。
* @param RspImgType 返回图像方式(url 或 base64) ,二选一。url有效期为7天。
*/
public void setRspImgType(String RspImgType) {
this.RspImgType = RspImgType;
}
/**
* Get 用户人脸图片、素材模板图的人脸位置信息。
* @return MergeInfos 用户人脸图片、素材模板图的人脸位置信息。
*/
public MergeInfo [] getMergeInfos() {
return this.MergeInfos;
}
/**
* Set 用户人脸图片、素材模板图的人脸位置信息。
* @param MergeInfos 用户人脸图片、素材模板图的人脸位置信息。
*/
public void setMergeInfos(MergeInfo [] MergeInfos) {
this.MergeInfos = MergeInfos;
}
/**
* Get 脸型融合比例,数值越高,融合后的脸型越像素材人物。取值范围[0,100]
若此参数不填写,则使用人脸融合控制台中脸型参数数值。(换脸版算法暂不支持此参数调整)
* @return FuseProfileDegree 脸型融合比例,数值越高,融合后的脸型越像素材人物。取值范围[0,100]
若此参数不填写,则使用人脸融合控制台中脸型参数数值。(换脸版算法暂不支持此参数调整)
*/
public Long getFuseProfileDegree() {
return this.FuseProfileDegree;
}
/**
* Set 脸型融合比例,数值越高,融合后的脸型越像素材人物。取值范围[0,100]
若此参数不填写,则使用人脸融合控制台中脸型参数数值。(换脸版算法暂不支持此参数调整)
* @param FuseProfileDegree 脸型融合比例,数值越高,融合后的脸型越像素材人物。取值范围[0,100]
若此参数不填写,则使用人脸融合控制台中脸型参数数值。(换脸版算法暂不支持此参数调整)
*/
public void setFuseProfileDegree(Long FuseProfileDegree) {
this.FuseProfileDegree = FuseProfileDegree;
}
/**
* Get 五官融合比例,数值越高,融合后的五官越像素材人物。取值范围[0,100]
若此参数不填写,则使用人脸融合控制台中五官参数数值。(换脸版算法暂不支持此参数调整)
* @return FuseFaceDegree 五官融合比例,数值越高,融合后的五官越像素材人物。取值范围[0,100]
若此参数不填写,则使用人脸融合控制台中五官参数数值。(换脸版算法暂不支持此参数调整)
*/
public Long getFuseFaceDegree() {
return this.FuseFaceDegree;
}
/**
* Set 五官融合比例,数值越高,融合后的五官越像素材人物。取值范围[0,100]
若此参数不填写,则使用人脸融合控制台中五官参数数值。(换脸版算法暂不支持此参数调整)
* @param FuseFaceDegree 五官融合比例,数值越高,融合后的五官越像素材人物。取值范围[0,100]
若此参数不填写,则使用人脸融合控制台中五官参数数值。(换脸版算法暂不支持此参数调整)
*/
public void setFuseFaceDegree(Long FuseFaceDegree) {
this.FuseFaceDegree = FuseFaceDegree;
}
/**
* Get 为融合结果图添加合成标识的开关,默认为1。
1:添加标识。
0:不添加标识。
其他数值:默认按1处理。
建议您使用显著标识来提示结果图使用了人脸融合技术,是AI合成的图片。
* @return LogoAdd 为融合结果图添加合成标识的开关,默认为1。
1:添加标识。
0:不添加标识。
其他数值:默认按1处理。
建议您使用显著标识来提示结果图使用了人脸融合技术,是AI合成的图片。
*/
public Long getLogoAdd() {
return this.LogoAdd;
}
/**
* Set 为融合结果图添加合成标识的开关,默认为1。
1:添加标识。
0:不添加标识。
其他数值:默认按1处理。
建议您使用显著标识来提示结果图使用了人脸融合技术,是AI合成的图片。
* @param LogoAdd 为融合结果图添加合成标识的开关,默认为1。
1:添加标识。
0:不添加标识。
其他数值:默认按1处理。
建议您使用显著标识来提示结果图使用了人脸融合技术,是AI合成的图片。
*/
public void setLogoAdd(Long LogoAdd) {
this.LogoAdd = LogoAdd;
}
/**
* Get 标识内容设置。
默认在融合结果图右下角添加“本图片为AI合成图片”字样,您可根据自身需要替换为其他的Logo图片。
* @return LogoParam 标识内容设置。
默认在融合结果图右下角添加“本图片为AI合成图片”字样,您可根据自身需要替换为其他的Logo图片。
*/
public LogoParam getLogoParam() {
return this.LogoParam;
}
/**
* Set 标识内容设置。
默认在融合结果图右下角添加“本图片为AI合成图片”字样,您可根据自身需要替换为其他的Logo图片。
* @param LogoParam 标识内容设置。
默认在融合结果图右下角添加“本图片为AI合成图片”字样,您可根据自身需要替换为其他的Logo图片。
*/
public void setLogoParam(LogoParam LogoParam) {
this.LogoParam = LogoParam;
}
public FuseFaceRequest() {
}
/**
* 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.
*/
public FuseFaceRequest(FuseFaceRequest source) {
if (source.ProjectId != null) {
this.ProjectId = new String(source.ProjectId);
}
if (source.ModelId != null) {
this.ModelId = new String(source.ModelId);
}
if (source.RspImgType != null) {
this.RspImgType = new String(source.RspImgType);
}
if (source.MergeInfos != null) {
this.MergeInfos = new MergeInfo[source.MergeInfos.length];
for (int i = 0; i < source.MergeInfos.length; i++) {
this.MergeInfos[i] = new MergeInfo(source.MergeInfos[i]);
}
}
if (source.FuseProfileDegree != null) {
this.FuseProfileDegree = new Long(source.FuseProfileDegree);
}
if (source.FuseFaceDegree != null) {
this.FuseFaceDegree = new Long(source.FuseFaceDegree);
}
if (source.LogoAdd != null) {
this.LogoAdd = new Long(source.LogoAdd);
}
if (source.LogoParam != null) {
this.LogoParam = new LogoParam(source.LogoParam);
}
}
/**
* Internal implementation, normal users should not use it.
*/
public void toMap(HashMap map, String prefix) {
this.setParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.setParamSimple(map, prefix + "ModelId", this.ModelId);
this.setParamSimple(map, prefix + "RspImgType", this.RspImgType);
this.setParamArrayObj(map, prefix + "MergeInfos.", this.MergeInfos);
this.setParamSimple(map, prefix + "FuseProfileDegree", this.FuseProfileDegree);
this.setParamSimple(map, prefix + "FuseFaceDegree", this.FuseFaceDegree);
this.setParamSimple(map, prefix + "LogoAdd", this.LogoAdd);
this.setParamObj(map, prefix + "LogoParam.", this.LogoParam);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy