/*
* Copyright (c) 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.
*/
namespace TencentCloud.Facefusion.V20181201.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class FuseFaceRequest : AbstractModel
{
///
/// 活动 ID,请在人脸融合控制台查看。
///
[JsonProperty("ProjectId")]
public string ProjectId{ get; set; }
///
/// 素材 ID,请在人脸融合控制台查看。
///
[JsonProperty("ModelId")]
public string ModelId{ get; set; }
///
/// 返回图像方式(url 或 base64) ,二选一。url有效期为30天。
///
[JsonProperty("RspImgType")]
public string RspImgType{ get; set; }
///
/// 用户人脸图片、素材模板图的人脸位置信息。
///
[JsonProperty("MergeInfos")]
public MergeInfo[] MergeInfos{ get; set; }
///
/// 脸型融合比例,数值越高,融合后的脸型越像素材人物。取值范围[0,100]
/// 若此参数不填写,则使用人脸融合控制台中脸型参数数值。(换脸版算法暂不支持此参数调整)
///
[JsonProperty("FuseProfileDegree")]
public long? FuseProfileDegree{ get; set; }
///
/// 五官融合比例,数值越高,融合后的五官越像素材人物。取值范围[0,100]
/// 若此参数不填写,则使用人脸融合控制台中五官参数数值。(换脸版算法暂不支持此参数调整)
///
[JsonProperty("FuseFaceDegree")]
public long? FuseFaceDegree{ get; set; }
///
/// 0表示不需要鉴政,1表示需要鉴政。默认值为0。
/// 请注意,鉴政服务开启后,您需要根据返回结果自行判断是否调整您的业务逻辑。例如提示您的用户图片非法,请更换图片。
///
[JsonProperty("CelebrityIdentify")]
public long? CelebrityIdentify{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary 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 + "CelebrityIdentify", this.CelebrityIdentify);
}
}
}