首次推送

This commit is contained in:
lym
2026-03-09 00:13:46 +08:00
commit b19613bb31
13974 changed files with 2767735 additions and 0 deletions

View File

@@ -0,0 +1,79 @@
/*
* 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 FaceFusionRequest : AbstractModel
{
/// <summary>
/// 活动 ID请在人脸融合控制台查看。
/// </summary>
[JsonProperty("ProjectId")]
public string ProjectId{ get; set; }
/// <summary>
/// 素材 ID请在人脸融合控制台查看。
/// </summary>
[JsonProperty("ModelId")]
public string ModelId{ get; set; }
/// <summary>
/// 图片 base64 数据。请确保人脸为正脸,无旋转。若某些手机拍摄后人脸被旋转,请使用图片的 EXIF 信息对图片进行旋转处理;请勿在 base64 数据中包含头部如“data:image/jpeg;base64,”。
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 返回图像方式url 或 base64) 二选一。url有效期为30天。
/// </summary>
[JsonProperty("RspImgType")]
public string RspImgType{ get; set; }
/// <summary>
/// 历史遗留字段,无需填写。因为融合只需提取人脸特征,不需要鉴黄。
/// </summary>
[JsonProperty("PornDetect")]
public long? PornDetect{ get; set; }
/// <summary>
/// 0表示不需要鉴政1表示需要鉴政。默认值为0。
/// 请注意,鉴政服务开启后,您需要根据返回结果自行判断是否调整您的业务逻辑。例如提示您的用户图片非法,请更换图片。
/// </summary>
[JsonProperty("CelebrityIdentify")]
public long? CelebrityIdentify{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "ProjectId", this.ProjectId);
this.SetParamSimple(map, prefix + "ModelId", this.ModelId);
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "RspImgType", this.RspImgType);
this.SetParamSimple(map, prefix + "PornDetect", this.PornDetect);
this.SetParamSimple(map, prefix + "CelebrityIdentify", this.CelebrityIdentify);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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 FaceFusionResponse : AbstractModel
{
/// <summary>
/// RspImgType 为 url 时,返回结果的 url RspImgType 为 base64 时返回 base64 数据。
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 鉴政结果
/// </summary>
[JsonProperty("ReviewResultSet")]
public FuseFaceReviewResult[] ReviewResultSet{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamArrayObj(map, prefix + "ReviewResultSet.", this.ReviewResultSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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 FaceRect : AbstractModel
{
/// <summary>
/// 人脸框左上角横坐标。
/// </summary>
[JsonProperty("X")]
public long? X{ get; set; }
/// <summary>
/// 人脸框左上角纵坐标。
/// </summary>
[JsonProperty("Y")]
public long? Y{ get; set; }
/// <summary>
/// 人脸框宽度。
/// </summary>
[JsonProperty("Width")]
public long? Width{ get; set; }
/// <summary>
/// 人脸框高度。
/// </summary>
[JsonProperty("Height")]
public long? Height{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "X", this.X);
this.SetParamSimple(map, prefix + "Y", this.Y);
this.SetParamSimple(map, prefix + "Width", this.Width);
this.SetParamSimple(map, prefix + "Height", this.Height);
}
}
}

View File

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

View File

@@ -0,0 +1,58 @@
/*
* 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 FuseFaceResponse : AbstractModel
{
/// <summary>
/// RspImgType 为 url 时,返回结果的 url RspImgType 为 base64 时返回 base64 数据。
/// </summary>
[JsonProperty("FusedImage")]
public string FusedImage{ get; set; }
/// <summary>
/// 鉴政结果。该数组的顺序和请求中mergeinfo的顺序一致一一对应
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("ReviewResultSet")]
public FuseFaceReviewResult[] ReviewResultSet{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "FusedImage", this.FusedImage);
this.SetParamArrayObj(map, prefix + "ReviewResultSet.", this.ReviewResultSet);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,70 @@
/*
* 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 FuseFaceReviewDetail : AbstractModel
{
/// <summary>
/// 保留字段
/// </summary>
[JsonProperty("Field")]
public string Field{ get; set; }
/// <summary>
/// 人员名称
/// </summary>
[JsonProperty("Label")]
public string Label{ get; set; }
/// <summary>
/// 对应识别label的置信度分数越高意味涉政可能性越大。
/// 0到70Suggestion建议为PASS
/// 70到80Suggestion建议为REVIEW
/// 80到100Suggestion建议为BLOCK。
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// 识别场景的审核结论:
/// PASS正常
/// REVIEW疑似
/// BLOCK违规
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Field", this.Field);
this.SetParamSimple(map, prefix + "Label", this.Label);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
}
}
}

View File

@@ -0,0 +1,78 @@
/*
* 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 FuseFaceReviewResult : AbstractModel
{
/// <summary>
/// 保留字段
/// </summary>
[JsonProperty("Category")]
public string Category{ get; set; }
/// <summary>
/// 状态码, 0为处理成功其他值为处理失败
/// </summary>
[JsonProperty("Code")]
public string Code{ get; set; }
/// <summary>
/// 对应状态码信息描述
/// </summary>
[JsonProperty("CodeDescription")]
public string CodeDescription{ get; set; }
/// <summary>
/// 保留字段
/// </summary>
[JsonProperty("Confidence")]
public float? Confidence{ get; set; }
/// <summary>
/// 保留字段
/// </summary>
[JsonProperty("Suggestion")]
public string Suggestion{ get; set; }
/// <summary>
/// 审核详细内容
/// </summary>
[JsonProperty("DetailSet")]
public FuseFaceReviewDetail[] DetailSet{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Category", this.Category);
this.SetParamSimple(map, prefix + "Code", this.Code);
this.SetParamSimple(map, prefix + "CodeDescription", this.CodeDescription);
this.SetParamSimple(map, prefix + "Confidence", this.Confidence);
this.SetParamSimple(map, prefix + "Suggestion", this.Suggestion);
this.SetParamArrayObj(map, prefix + "DetailSet.", this.DetailSet);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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 MergeInfo : AbstractModel
{
/// <summary>
/// 输入图片base64
/// </summary>
[JsonProperty("Image")]
public string Image{ get; set; }
/// <summary>
/// 输入图片url
/// </summary>
[JsonProperty("Url")]
public string Url{ get; set; }
/// <summary>
/// 上传的图片人脸位置信息(人脸框)
/// </summary>
[JsonProperty("InputImageFaceRect")]
public FaceRect InputImageFaceRect{ get; set; }
/// <summary>
/// 控制台上传的素材人脸ID
/// </summary>
[JsonProperty("TemplateFaceID")]
public string TemplateFaceID{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "Image", this.Image);
this.SetParamSimple(map, prefix + "Url", this.Url);
this.SetParamObj(map, prefix + "InputImageFaceRect.", this.InputImageFaceRect);
this.SetParamSimple(map, prefix + "TemplateFaceID", this.TemplateFaceID);
}
}
}