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

com.ibm.watson.visual_recognition.v3.model.FaceGender Maven / Gradle / Ivy

There is a newer version: 9.3.1
Show newest version
/*
 * Copyright 2018 IBM Corp. 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.ibm.watson.visual_recognition.v3.model;

import com.google.gson.annotations.SerializedName;
import com.ibm.cloud.sdk.core.service.model.GenericModel;

/**
 * Information about the gender of the face.
 */
public class FaceGender extends GenericModel {

  private String gender;
  @SerializedName("gender_label")
  private String genderLabel;
  private Float score;

  /**
   * Gets the gender.
   *
   * Gender identified by the face. For example, `MALE` or `FEMALE`.
   *
   * @return the gender
   */
  public String getGender() {
    return gender;
  }

  /**
   * Gets the genderLabel.
   *
   * The word for "male" or "female" in the language defined by the **Accept-Language** request header.
   *
   * @return the genderLabel
   */
  public String getGenderLabel() {
    return genderLabel;
  }

  /**
   * Gets the score.
   *
   * Confidence score in the range of 0 to 1. A higher score indicates greater confidence in the estimated value for the
   * property.
   *
   * @return the score
   */
  public Float getScore() {
    return score;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy