代码修改后的版本,全部提交
This commit is contained in:
148
TencentCloud/Facefusion/V20181201/FacefusionClient.cs
Normal file
148
TencentCloud/Facefusion/V20181201/FacefusionClient.cs
Normal file
@@ -0,0 +1,148 @@
|
||||
/*
|
||||
* 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
|
||||
{
|
||||
|
||||
using Newtonsoft.Json;
|
||||
using System.Threading.Tasks;
|
||||
using TencentCloud.Common;
|
||||
using TencentCloud.Common.Profile;
|
||||
using TencentCloud.Facefusion.V20181201.Models;
|
||||
|
||||
public class FacefusionClient : AbstractClient{
|
||||
|
||||
private const string endpoint = "facefusion.tencentcloudapi.com";
|
||||
private const string version = "2018-12-01";
|
||||
|
||||
/// <summary>
|
||||
/// Client constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
public FacefusionClient(Credential credential, string region)
|
||||
: this(credential, region, new ClientProfile())
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Client Constructor.
|
||||
/// </summary>
|
||||
/// <param name="credential">Credentials.</param>
|
||||
/// <param name="region">Region name, such as "ap-guangzhou".</param>
|
||||
/// <param name="profile">Client profiles.</param>
|
||||
public FacefusionClient(Credential credential, string region, ClientProfile profile)
|
||||
: base(endpoint, version, credential, region, profile)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用于人脸融合,用户上传人脸图片,获取与模板融合后的人脸图片。未发布的活动请求频率限制为1次/秒,已发布的活动请求频率限制50次/秒。如有需要提高活动的请求频率限制,请在控制台中申请。
|
||||
/// >
|
||||
/// - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="FaceFusionRequest"/></param>
|
||||
/// <returns><see cref="FaceFusionResponse"/></returns>
|
||||
public async Task<FaceFusionResponse> FaceFusion(FaceFusionRequest req)
|
||||
{
|
||||
JsonResponseModel<FaceFusionResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "FaceFusion");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<FaceFusionResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用于人脸融合,用户上传人脸图片,获取与模板融合后的人脸图片。未发布的活动请求频率限制为1次/秒,已发布的活动请求频率限制50次/秒。如有需要提高活动的请求频率限制,请在控制台中申请。
|
||||
/// >
|
||||
/// - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="FaceFusionRequest"/></param>
|
||||
/// <returns><see cref="FaceFusionResponse"/></returns>
|
||||
public FaceFusionResponse FaceFusionSync(FaceFusionRequest req)
|
||||
{
|
||||
JsonResponseModel<FaceFusionResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "FaceFusion");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<FaceFusionResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用于单脸、多脸融合,用户上传人脸图片,获取与模板融合后的人脸图片。查看 <a href="https://cloud.tencent.com/document/product/670/38247" target="_blank">选脸融合接入指引</a>。
|
||||
///
|
||||
/// 未发布的活动请求频率限制为1次/秒,已发布的活动请求频率限制50次/秒。如有需要提高活动的请求频率限制,请在控制台中申请。
|
||||
/// >
|
||||
/// - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="FuseFaceRequest"/></param>
|
||||
/// <returns><see cref="FuseFaceResponse"/></returns>
|
||||
public async Task<FuseFaceResponse> FuseFace(FuseFaceRequest req)
|
||||
{
|
||||
JsonResponseModel<FuseFaceResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = await this.InternalRequest(req, "FuseFace");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<FuseFaceResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 本接口用于单脸、多脸融合,用户上传人脸图片,获取与模板融合后的人脸图片。查看 <a href="https://cloud.tencent.com/document/product/670/38247" target="_blank">选脸融合接入指引</a>。
|
||||
///
|
||||
/// 未发布的活动请求频率限制为1次/秒,已发布的活动请求频率限制50次/秒。如有需要提高活动的请求频率限制,请在控制台中申请。
|
||||
/// >
|
||||
/// - 公共参数中的签名方式必须指定为V3版本,即配置SignatureMethod参数为TC3-HMAC-SHA256。
|
||||
/// </summary>
|
||||
/// <param name="req"><see cref="FuseFaceRequest"/></param>
|
||||
/// <returns><see cref="FuseFaceResponse"/></returns>
|
||||
public FuseFaceResponse FuseFaceSync(FuseFaceRequest req)
|
||||
{
|
||||
JsonResponseModel<FuseFaceResponse> rsp = null;
|
||||
try
|
||||
{
|
||||
var strResp = this.InternalRequestSync(req, "FuseFace");
|
||||
rsp = JsonConvert.DeserializeObject<JsonResponseModel<FuseFaceResponse>>(strResp);
|
||||
}
|
||||
catch (JsonSerializationException e)
|
||||
{
|
||||
throw new TencentCloudSDKException(e.Message);
|
||||
}
|
||||
return rsp.Response;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
TencentCloud/Facefusion/V20181201/Models/FaceRect.cs
Normal file
64
TencentCloud/Facefusion/V20181201/Models/FaceRect.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
88
TencentCloud/Facefusion/V20181201/Models/FuseFaceRequest.cs
Normal file
88
TencentCloud/Facefusion/V20181201/Models/FuseFaceRequest.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
58
TencentCloud/Facefusion/V20181201/Models/FuseFaceResponse.cs
Normal file
58
TencentCloud/Facefusion/V20181201/Models/FuseFaceResponse.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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到70,Suggestion建议为PASS;
|
||||
/// 70到80,Suggestion建议为REVIEW;
|
||||
/// 80到100,Suggestion建议为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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
64
TencentCloud/Facefusion/V20181201/Models/MergeInfo.cs
Normal file
64
TencentCloud/Facefusion/V20181201/Models/MergeInfo.cs
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user