/*
* 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.Mps.V20190612.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class FaceConfigureInfoForUpdate : AbstractModel
{
///
/// 人脸识别任务开关,可选值:
/// ON:开启智能人脸识别任务;
/// OFF:关闭智能人脸识别任务。
///
[JsonProperty("Switch")]
public string Switch{ get; set; }
///
/// 人脸识别过滤分数,当识别结果达到该分数以上,返回识别结果。取值范围:0-100。
///
[JsonProperty("Score")]
public float? Score{ get; set; }
///
/// 默认人物过滤标签,指定需要返回的默认人物的标签。如果未填或者为空,则全部默认人物结果都返回。标签可选值:
/// entertainment:娱乐明星;
/// sport:体育明星;
/// politician:政治人物。
///
[JsonProperty("DefaultLibraryLabelSet")]
public string[] DefaultLibraryLabelSet{ get; set; }
///
/// 用户自定义人物过滤标签,指定需要返回的用户自定义人物的标签。如果未填或者为空,则全部自定义人物结果都返回。
/// 标签个数最多 10 个,每个标签长度最多 16 个字符。
///
[JsonProperty("UserDefineLibraryLabelSet")]
public string[] UserDefineLibraryLabelSet{ get; set; }
///
/// 人物库选择,可选值:
/// Default:使用默认人物库;
/// UserDefine:使用用户自定义人物库。
/// All:同时使用默认人物库和用户自定义人物库。
///
[JsonProperty("FaceLibrary")]
public string FaceLibrary{ get; set; }
///
/// For internal usage only. DO NOT USE IT.
///
internal override void ToMap(Dictionary map, string prefix)
{
this.SetParamSimple(map, prefix + "Switch", this.Switch);
this.SetParamSimple(map, prefix + "Score", this.Score);
this.SetParamArraySimple(map, prefix + "DefaultLibraryLabelSet.", this.DefaultLibraryLabelSet);
this.SetParamArraySimple(map, prefix + "UserDefineLibraryLabelSet.", this.UserDefineLibraryLabelSet);
this.SetParamSimple(map, prefix + "FaceLibrary", this.FaceLibrary);
}
}
}