All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencentcloudapi.mps.v20190612.models.FaceConfigureInfo Maven / Gradle / Ivy

There is a newer version: 3.0.1034
Show newest version
/*
 * 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.mps.v20190612.models;

import com.tencentcloudapi.common.AbstractModel;
import com.tencentcloudapi.common.SSEResponseModel;
import com.google.gson.annotations.SerializedName;
import com.google.gson.annotations.Expose;
import java.util.HashMap;

public class FaceConfigureInfo extends AbstractModel {

    /**
    * Switch of a face recognition task. Valid values:
  • ON: Enables an intelligent face recognition task;
  • OFF: Disables an intelligent face recognition task.
  • */ @SerializedName("Switch") @Expose private String Switch; /** * Face recognition filter score. If this score is reached or exceeded, a recognition result will be returned. Value range: 0-100. Default value: 95. */ @SerializedName("Score") @Expose private Float Score; /** * The default face filter labels, which specify the types of faces to return. If this parameter is left empty, the detection results for all labels are returned. Valid values:
  • entertainment (people in the entertainment industry)
  • sport (sports celebrities)
  • politician
  • */ @SerializedName("DefaultLibraryLabelSet") @Expose private String [] DefaultLibraryLabelSet; /** * Custom face tags for filter, which specify the face recognition results to return. If this parameter is not specified or left empty, the recognition results for all custom face tags are returned. Up to 100 tags are allowed, each containing no more than 16 characters. */ @SerializedName("UserDefineLibraryLabelSet") @Expose private String [] UserDefineLibraryLabelSet; /** * Figure library. Valid values:
  • Default: Default figure library;
  • UserDefine: Custom figure library.
  • All: Both default and custom figure libraries will be used.
  • Default value: All (both default and custom figure libraries will be used.) */ @SerializedName("FaceLibrary") @Expose private String FaceLibrary; /** * Get Switch of a face recognition task. Valid values:
  • ON: Enables an intelligent face recognition task;
  • OFF: Disables an intelligent face recognition task.
  • * @return Switch Switch of a face recognition task. Valid values:
  • ON: Enables an intelligent face recognition task;
  • OFF: Disables an intelligent face recognition task.
  • */ public String getSwitch() { return this.Switch; } /** * Set Switch of a face recognition task. Valid values:
  • ON: Enables an intelligent face recognition task;
  • OFF: Disables an intelligent face recognition task.
  • * @param Switch Switch of a face recognition task. Valid values:
  • ON: Enables an intelligent face recognition task;
  • OFF: Disables an intelligent face recognition task.
  • */ public void setSwitch(String Switch) { this.Switch = Switch; } /** * Get Face recognition filter score. If this score is reached or exceeded, a recognition result will be returned. Value range: 0-100. Default value: 95. * @return Score Face recognition filter score. If this score is reached or exceeded, a recognition result will be returned. Value range: 0-100. Default value: 95. */ public Float getScore() { return this.Score; } /** * Set Face recognition filter score. If this score is reached or exceeded, a recognition result will be returned. Value range: 0-100. Default value: 95. * @param Score Face recognition filter score. If this score is reached or exceeded, a recognition result will be returned. Value range: 0-100. Default value: 95. */ public void setScore(Float Score) { this.Score = Score; } /** * Get The default face filter labels, which specify the types of faces to return. If this parameter is left empty, the detection results for all labels are returned. Valid values:
  • entertainment (people in the entertainment industry)
  • sport (sports celebrities)
  • politician
  • * @return DefaultLibraryLabelSet The default face filter labels, which specify the types of faces to return. If this parameter is left empty, the detection results for all labels are returned. Valid values:
  • entertainment (people in the entertainment industry)
  • sport (sports celebrities)
  • politician
  • */ public String [] getDefaultLibraryLabelSet() { return this.DefaultLibraryLabelSet; } /** * Set The default face filter labels, which specify the types of faces to return. If this parameter is left empty, the detection results for all labels are returned. Valid values:
  • entertainment (people in the entertainment industry)
  • sport (sports celebrities)
  • politician
  • * @param DefaultLibraryLabelSet The default face filter labels, which specify the types of faces to return. If this parameter is left empty, the detection results for all labels are returned. Valid values:
  • entertainment (people in the entertainment industry)
  • sport (sports celebrities)
  • politician
  • */ public void setDefaultLibraryLabelSet(String [] DefaultLibraryLabelSet) { this.DefaultLibraryLabelSet = DefaultLibraryLabelSet; } /** * Get Custom face tags for filter, which specify the face recognition results to return. If this parameter is not specified or left empty, the recognition results for all custom face tags are returned. Up to 100 tags are allowed, each containing no more than 16 characters. * @return UserDefineLibraryLabelSet Custom face tags for filter, which specify the face recognition results to return. If this parameter is not specified or left empty, the recognition results for all custom face tags are returned. Up to 100 tags are allowed, each containing no more than 16 characters. */ public String [] getUserDefineLibraryLabelSet() { return this.UserDefineLibraryLabelSet; } /** * Set Custom face tags for filter, which specify the face recognition results to return. If this parameter is not specified or left empty, the recognition results for all custom face tags are returned. Up to 100 tags are allowed, each containing no more than 16 characters. * @param UserDefineLibraryLabelSet Custom face tags for filter, which specify the face recognition results to return. If this parameter is not specified or left empty, the recognition results for all custom face tags are returned. Up to 100 tags are allowed, each containing no more than 16 characters. */ public void setUserDefineLibraryLabelSet(String [] UserDefineLibraryLabelSet) { this.UserDefineLibraryLabelSet = UserDefineLibraryLabelSet; } /** * Get Figure library. Valid values:
  • Default: Default figure library;
  • UserDefine: Custom figure library.
  • All: Both default and custom figure libraries will be used.
  • Default value: All (both default and custom figure libraries will be used.) * @return FaceLibrary Figure library. Valid values:
  • Default: Default figure library;
  • UserDefine: Custom figure library.
  • All: Both default and custom figure libraries will be used.
  • Default value: All (both default and custom figure libraries will be used.) */ public String getFaceLibrary() { return this.FaceLibrary; } /** * Set Figure library. Valid values:
  • Default: Default figure library;
  • UserDefine: Custom figure library.
  • All: Both default and custom figure libraries will be used.
  • Default value: All (both default and custom figure libraries will be used.) * @param FaceLibrary Figure library. Valid values:
  • Default: Default figure library;
  • UserDefine: Custom figure library.
  • All: Both default and custom figure libraries will be used.
  • Default value: All (both default and custom figure libraries will be used.) */ public void setFaceLibrary(String FaceLibrary) { this.FaceLibrary = FaceLibrary; } public FaceConfigureInfo() { } /** * 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 FaceConfigureInfo(FaceConfigureInfo source) { if (source.Switch != null) { this.Switch = new String(source.Switch); } if (source.Score != null) { this.Score = new Float(source.Score); } if (source.DefaultLibraryLabelSet != null) { this.DefaultLibraryLabelSet = new String[source.DefaultLibraryLabelSet.length]; for (int i = 0; i < source.DefaultLibraryLabelSet.length; i++) { this.DefaultLibraryLabelSet[i] = new String(source.DefaultLibraryLabelSet[i]); } } if (source.UserDefineLibraryLabelSet != null) { this.UserDefineLibraryLabelSet = new String[source.UserDefineLibraryLabelSet.length]; for (int i = 0; i < source.UserDefineLibraryLabelSet.length; i++) { this.UserDefineLibraryLabelSet[i] = new String(source.UserDefineLibraryLabelSet[i]); } } if (source.FaceLibrary != null) { this.FaceLibrary = new String(source.FaceLibrary); } } /** * Internal implementation, normal users should not use it. */ public void toMap(HashMap 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); } }




    © 2015 - 2024 Weber Informatics LLC | Privacy Policy